[Poppler-bugs] [Bug 44659] Segmentation fault of pdfunite on certain files
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jan 10 23:25:25 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=44659
--- Comment #2 from Arseny Solokha <asolokha at gmx.com> 2012-01-10 23:25:25 PST ---
(In reply to comment #1)
> That's not the correct fix, it is the pdfunite program that should instantiate
> the globalParams, i'll work on a fix later today if i have time.
OK, so the minimal fix (or workaround again?) is
--- a/utils/pdfunite.cc
+++ b/utils/pdfunite.cc
@@ -8,6 +8,7 @@
//
//========================================================================
#include <PDFDoc.h>
+#include <GlobalParams.h>
#include "parseargs.h"
#include "config.h"
#include <poppler-config.h>
@@ -66,6 +67,7 @@ int main (int argc, char *argv[])
return exitCode;
}
exitCode = 0;
+ globalParams = new GlobalParams();
for (i = 1; i < argc - 1; i++) {
GooString *gfileName = new GooString(argv[i]);
@@ -172,5 +174,6 @@ int main (int argc, char *argv[])
delete countRef;
for (j = 0; j < (int) pages.size (); j++) pages[j].free();
for (i = 0; i < (int) docs.size (); i++) delete docs[i];
+ delete globalParams;
return exitCode;
}
--
Configure bugmail: https://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