Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28554 - [xfree-4/*_imake-tmpdir.patch]: imake doesn't handle long `$TMPDIR' properly
Summary: [xfree-4/*_imake-tmpdir.patch]: imake doesn't handle long `$TMPDIR' properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-12 14:54 UTC by bartron
Modified: 2003-09-22 00:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
imake-test.sh (imake-test.sh,1.29 KB, text/plain)
2003-09-12 14:56 UTC, bartron
Details
imake-tmpdir.patch (imake-tmpdir.patch,1.04 KB, patch)
2003-09-12 14:58 UTC, bartron
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bartron 2003-09-12 14:54:50 UTC
The `imake-tmpdir.patch' patch that is included in the
following patch tarballs creates a fixed-sized buffer, but
does not check the size of data it copies there.  If
`$TMPDIR' is longer than 242 bytes, imake will write past
the end of `aout[255]'.

XFree86-4.2.1-patches-1.2.tar.bz2
XFree86-4.2.99.4-patches-1.1.tar.bz2
  102_all_4.2.0-imake-tmpdir.patch.bz2

XFree86-4.3.0-patches-1.1.3.tar.bz2
XFree86-4.3.0-patches-1.1.7.tar.bz2
  092_all_4.2.0-imake-tmpdir.patch

XFree86-4.3.0-patches-2.1.6.tar.bz2
XFree86-4.3.0-patches-2.1.10.tar.bz2
  0128_all_4.2.0-imake-tmpdir.patch

XFree86-4.3.0-patches-2.1.11.tar.bz2
  0128_all_4.2.0-imake-tmpdir.patch

  There is no such patch in
`XFree86-4.3.99.11-patches-0.8.tar.bz2'
(but see bug #28482)
Comment 1 bartron 2003-09-12 14:56:20 UTC
Created attachment 17595 [details]
imake-test.sh

test case
Comment 2 bartron 2003-09-12 14:58:03 UTC
Created attachment 17596 [details, diff]
imake-tmpdir.patch

improved `imake-tmpdir.patch', with some extra checks added
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2003-09-22 00:09:13 UTC
Thanks much...added to 4.3.99.12 and 4.3.0-r{2,3}.