Summary: | poppler: use of uninitialized DCTScanInfo dcHuffTable / acHuffTable values | ||
---|---|---|---|
Product: | poppler | Reporter: | Tomas Hoger <thoger> |
Component: | general | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | minor | ||
Priority: | low | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Reproducer |
Description
Tomas Hoger
2010-09-16 06:50:30 UTC
Created attachment 38745 [details]
Reproducer
This crashes pdfimages from poppler build with --disable-libjpeg.
If you can provide a patch i can run it through my regression test and see if it breaks something, otherwise you are right that this is not very prioritary since libjpeg works I believe something like this should do: diff --git a/poppler/Stream.cc b/poppler/Stream.cc index 988f99a..399131b 100644 --- a/poppler/Stream.cc +++ b/poppler/Stream.cc @@ -3297,6 +3297,7 @@ GBool DCTStream::readScanInfo() { interleaved = scanInfo.numComps == numComps; for (j = 0; j < numComps; ++j) { scanInfo.comp[j] = gFalse; + scanInfo.dcHuffTable[j] = scanInfo.acHuffTable[j] = 0; } for (i = 0; i < scanInfo.numComps; ++i) { id = str->getChar(); This resolves the crash on the attached reproducer. Let's see if it doesn't break the regression test... BTW, may i ask if/why redhat builds poppler without libjpeg? (In reply to comment #5) > BTW, may i ask if/why redhat builds poppler without libjpeg? I was looking into a crash reported for older product version, where poppler does not use libjpeg. Current builds in Fedora and upcoming RHEL6 are configured with --enable-libjpeg and --enable-libopenjpeg. I decided to report this issue after confirming it affects current git too, knowing that you may prefer to wontfix due to reasons already mentioned. I've commited the patch, thanks :-) |
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.