Bug 691127

Summary: dec2d(): overflow in 2d faxd
Product: MuPDF Reporter: Timo Juhani Lindfors <timo.lindfors>
Component: fitzAssignee: Tor Andersson <tor.andersson>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P4    
Version: unspecified   
Hardware: Other   
OS: Linux   
Customer: Word Size: ---

Description Timo Juhani Lindfors 2010-02-20 06:01:02 UTC
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.30.8066

causes

$ mupdf 10.1.1.30.8066.pdf 
ximage: mode 16/16 0000f800 000007e0 0000001f (11,5,0) lsb <swap>
ximage: ARGB8888 to RGB565
ximage: XShmPutImage
warning: no resource dictionary for type 3 font!
+ fitz/filt_faxd.c:225: dec2d(): overflow in 2d faxd
| fitz/stm_filter.c:32: fz_process(): cannot process filter
| fitz/stm_read.c:110: fz_readimp(): cannot process filter
| fitz/stm_read.c:281: fz_readbytex(): cannot read data
\ fitz/stm_open.c:45: fz_dropstream(): dropped unhandled ioerror
+ mupdf/pdf_interpret.c:258: runinlineimage(): syntax error after inline image
| mupdf/pdf_interpret.c:1380: pdf_runcsi(): cannot parse inline image
| mupdf/pdf_type3.c:27: loadcharproc(): cannot interpret glyph content stream
| mupdf/pdf_type3.c:237: pdf_loadtype3font(): cannot load type3 font
| mupdf/pdf_font.c:959: pdf_loadfont(): cannot load font
| mupdf/pdf_resources.c:171: preloadfont(): cannot load font resource (152 0 R)
| mupdf/pdf_resources.c:241: scanfontsandmasks(): cannot preload font resource
| mupdf/pdf_resources.c:408: pdf_loadresources(): cannot load font resources
| mupdf/pdf_page.c:218: pdf_loadpage(): cannot load page resources
\ apps/unix/x11pdf.c:86: winerror(): aborting
Comment 1 Tor Andersson 2010-05-25 20:18:41 UTC
I can't reproduce the bug.
Comment 2 Timo Juhani Lindfors 2010-05-25 20:43:26 UTC
Thanks. I can verify that the bug occurs with 20090707 build on debian stable but does not occur with today's 20100525 checkout on debian unstable.

(I was not able to test the new code on debian stable since it seems that JBIG code is now a build requirement and debian stable does not have it.)