Bug 76387 - pdftoppm crash
Summary: pdftoppm crash
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: utils (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-20 10:01 UTC by jam.bambois
Modified: 2014-03-26 20:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
An example .pdf document that causes a pdftoppm crash (107.72 KB, text/plain)
2014-03-20 10:01 UTC, jam.bambois
Details

Description jam.bambois 2014-03-20 10:01:04 UTC
Created attachment 96089 [details]
An example .pdf document that causes a pdftoppm crash

pdftoppm 0.24.5 crashes, when processing the attached file with the following parameters:

  pdftoppm -scale-to-x 768 -scale-to-y 992 crash.pdf crash

When compiled with DEBUG_MEM enabled, the following error message is shown:

  Overwrite past end of block xxx at address yyy

The .pdf contains a single image of size 67x1 within a Form XObject. The crash occurs only for certain -scale-to-x and -scale-to-y values. Presumably, for such scalings, the amount of memory allocated is incorrect.
Comment 1 Albert Astals Cid 2014-03-22 16:31:23 UTC
Fixed in master for next release
Comment 2 jam.bambois 2014-03-26 10:15:24 UTC
(In reply to comment #1)
> Fixed in master for next release

Thank you! You made the fix in Splash::arbitraryTransformImage. There seems to be a similar test rect in Splash::arbitraryTransformMask. Is that incorrect, as well?
Comment 3 Albert Astals Cid 2014-03-26 20:54:21 UTC
It may be, but without a document that exercises it i prefer to be cautios in this kind of changes.


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.