Bug 689871 - jbig2dec fails to detect unconsumed data
Summary: jbig2dec fails to detect unconsumed data
Status: RESOLVED INVALID
Alias: None
Product: jbig2dec
Classification: Unclassified
Component: Rendering (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: Henry Stiles
URL:
Keywords: bountiable
Depends on:
Blocks:
 
Reported: 2008-05-26 12:22 UTC by Ralph Giles
Modified: 2012-09-26 07:05 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Giles 2008-05-26 12:22:16 UTC
In bug 689841, jbig2dec fails silently when it cannot read enough data to
satisfy the invalid data_length. There is code at the end of jbig2_data_in() to
complain about this, but it doesn't seem to be activated. Perhaps the EOF state
is never entered.

jbig2dec should throw an error if this happens. For the particular file in
question this is masked by the fixup in jbig2_page_complete() but the code in
jbig2_data_in() should be fixed for other cases.
Comment 1 Henry Stiles 2012-09-26 07:05:30 UTC
No test file so closing.