Summary: | poppler: file parsing infinite loop encountered with docs containing image masks (sample attached) | ||
---|---|---|---|
Product: | poppler | Reporter: | Ed Porras <dev> |
Component: | general | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Sample document containing Image Mask causing poppler to get stuck in an infinite loop |
Description
Ed Porras
2013-04-03 20:23:13 UTC
Are you sure it's a core problem? I can see pdftohtml looping but all the other tools pdftops, pdftoppm, etc. work fine (In reply to comment #1) > Are you sure it's a core problem? I can see pdftohtml looping but all the > other tools pdftops, pdftoppm, etc. work fine You're true: all the other tools use OutputDevice's which implements tilingPatternFill, but HTMLOutputDev.cc / *.h doesn't implement it. And because the image mask is part of a pattern colorspace, it is outputted 2541 x 438 = 1112958, and that twice. I'm not familiar enough neither with HTML nor with CSS nor with pdftohtml to decide wether it is possible to render it only once and than run a javascript loop or define a CSS element around it like we do it in PSOutputDev or to render it as one image like we do it in SplashOutputDev, but the only solution I see is that someone with more knowhow implement the tilingPatternFill (and set useTilingPatternFill() to true) in HTMLOutputDev! (In reply to comment #1) > Are you sure it's a core problem? I can see pdftohtml looping but all the > other tools pdftops, pdftoppm, etc. work fine Ugh. Figures I would only try it with a device that would also happen to not work. Just my luck. Apologies about filing this bug. Next time I'll be sure to try it out with more than one output device. At least now you know there's a problem with the HtmlOutputDev. :/ Thank you. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/283. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.