Summary: | Segmentation fault of pdfunite on certain files | ||
---|---|---|---|
Product: | poppler | Reporter: | Arseny Solokha <asolokha> |
Component: | general | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | gdb backtrace |
Description
Arseny Solokha
2012-01-10 20:10:36 UTC
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. (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; } Will be in next poppler 0.18 release |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.