[Poppler-bugs] [Bug 21713] New: faulty logic in goo/gfile.cc (openTempFile)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed May 13 00:30:35 PDT 2009
http://bugs.freedesktop.org/show_bug.cgi?id=21713
Summary: faulty logic in goo/gfile.cc (openTempFile)
Product: poppler
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: general
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: peb at mppmu.mpg.de
Contrary to xpdf, poppler tries to avoid the use of tmpnam() when mkstemp() is
found but mkstemps() is not found [never saw a description of mkstemps].
This results in using mkstemp with an argument "prefixXXXXXX.ext", which will
always fail -- at least with GNU libc 2.3.x and 2.4.
It seems there is no good way to safely create a temporary file with an
extension. Why would one need that. In xpdf and poppler the last argument of
openTempFile is always NULL, so this whole thing is broken but unused, i.e.,
superfluous.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Poppler-bugs
mailing list