[Poppler-bugs] [Bug 24090] New: MemStream returns a NULL fileName which causes saveAs to segfault when saving a PDF created from a MemStream
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Sep 22 11:45:04 PDT 2009
http://bugs.freedesktop.org/show_bug.cgi?id=24090
Summary: MemStream returns a NULL fileName which causes saveAs to
segfault when saving a PDF created from a MemStream
Product: poppler
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: general
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: kovid at kovidgoyal.net
Patch to fix:
diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc
index b61a8e4..f48f2f5 100644
--- a/poppler/PDFDoc.cc
+++ b/poppler/PDFDoc.cc
@@ -817,7 +817,10 @@ void PDFDoc::writeTrailer (Guint uxrefOffset, int
uxrefSize, OutStream* outStr,
char buffer[256];
sprintf(buffer, "%i", (int)time(NULL));
message.append(buffer);
- message.append(fileName);
+ if (fileName)
+ message.append(fileName);
+ else
+ message.append("stream.pdf");
--
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