Bug 691285

Summary: gs hangs with "warning: ignoring zlib error: incorrect data check"
Product: Ghostscript Reporter: keinbiervorvier <keinbiervorvier>
Component: PS InterpreterAssignee: Alex Cherepanov <alex>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: master   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: corrupted figure which makes gs hang
patch

Description keinbiervorvier 2010-05-05 22:22:03 UTC
Created attachment 6260 [details]
corrupted figure which makes gs hang

this applies to current HEAD.

gs hangs with the warning

warning: ignoring zlib error: incorrect data check

at very high (99%) CPU utilization and never returns. The figure is likely corrupted, but more graceful error handling would be good.

Cheers
T.
Comment 1 Alex Cherepanov 2010-05-08 16:56:57 UTC
Created attachment 6269 [details]
patch

Detect and break an infinite loop when some of the image data source are
at EOF, some are not, and the image code doesn't take more data.

This patch has been committed as a rev. 11206.
Regression testing shows no differences.