Bug 691584

Summary: pdf file crash
Product: MuPDF Reporter: sylvain.bertrand
Component: mupdfAssignee: Tor Andersson <tor.andersson>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: guilty file

Description sylvain.bertrand 2010-09-01 10:06:37 UTC
producer or consumer side?
Comment 1 sylvain.bertrand 2010-09-01 10:08:08 UTC
Created attachment 6684 [details]
guilty file
Comment 2 Tor Andersson 2010-09-27 10:53:34 UTC
The file has an inline run-length encoded image, with garbage on the end: a '>' character. The '>' character is used as the end-of-data marker for ASCIIHex and ASCII85 decoding filters, but not for RunLength -- perhaps the generator is confused about the spec?
Comment 3 Tor Andersson 2010-09-27 10:57:21 UTC
I have added a workaround that ignores garbage at the end of inline images and scans for the EI keyword without using the lexer.
Comment 4 sylvain.bertrand 2010-09-27 11:04:30 UTC
damn... the pdf format has too many damaged producers, need an official validation tool.
thx for the help.