Bug 37784 - Incorrect handling of odd length ASCIIHexStream data
Summary: Incorrect handling of odd length ASCIIHexStream data
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
Depends on:
Reported: 2011-05-31 03:08 UTC by Ilya Gorenbein
Modified: 2018-08-21 10:38 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

Sample file (1.04 KB, application/pdf)
2011-05-31 03:08 UTC, Ilya Gorenbein
Patches the cases described in the bug (774 bytes, patch)
2011-05-31 06:54 UTC, Ilya Gorenbein
Details | Splinter Review

Description Ilya Gorenbein 2011-05-31 03:08:24 UTC
Created attachment 47352 [details]
Sample file

The number of symbols at ASCIIHexStream stream should be even. If the number of bytes is odd the last byte should be eliminated. Attached is a sample file. Adobe is able to run it, but alerts that there was a problem.
Comment 1 Ilya Gorenbein 2011-05-31 03:09:41 UTC
I tested it on version 0.16.0. But according to the code, version 0.16.6 has the same problem.
Comment 2 Ilya Gorenbein 2011-05-31 04:06:02 UTC
Moreover, if some "wrong" even length sequence occurs (for example: 6170702E616C6572742822746869732069732061207465737422293b0w, pay attention on '0w' at the end), Adobe eliminates it, and eliminates the code coming after it in the stream.
Comment 3 Ilya Gorenbein 2011-05-31 06:54:54 UTC
Created attachment 47362 [details] [review]
Patches the cases described in the bug
Comment 4 Albert Astals Cid 2011-05-31 14:41:32 UTC
Will run the regtest once i get my regtesting machine back. Thanks for the patch.
Comment 5 Albert Astals Cid 2011-07-18 15:13:56 UTC
Hi, i can not find any difference using the patch or not, what should be the improvement?
Comment 6 GitLab Migration User 2018-08-21 10:38:36 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/303.

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.