Bug 689871

Summary: jbig2dec fails to detect unconsumed data
Product: jbig2dec Reporter: Ralph Giles <ralph.giles>
Component: RenderingAssignee: Henry Stiles <henry.stiles>
Status: RESOLVED INVALID    
Severity: normal CC: christinedelight.top85, masaki.ushizaka
Priority: P4 Keywords: bountiable
Version: master   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---

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.