Summary: | "/OCRPageInfo <</L /eng >> BDC" marked content causes abort | ||
---|---|---|---|
Product: | poppler | Reporter: | jmmorlan |
Component: | general | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
skip remainder of OC parsing code after "Unexpected MC Type" error
example PDF file to demonstrate bug |
Description
jmmorlan
2018-01-03 01:49:04 UTC
Can you please attach the document so we can make sure the change we make fixes the crash completely? I don't think I can disclose the document (confidentiality). If you attach a patch I can test it out though. Created attachment 136556 [details] [review] skip remainder of OC parsing code after "Unexpected MC Type" error Here's the patch we've been using. I don't know if it really makes sense to be trying to parse "OCRPageInfo"-tagged marked content as optional content, since the PDF spec says the tag should just be "OC". But at least this prevents poppler from crashing. I'm sorry but without a file i can't test if the thing is good or not. Created attachment 136578 [details]
example PDF file to demonstrate bug
Here's an example PDF file that demonstrates the bug.
Thanks for the file. I went with a different solution than the one you proposed since we're trying to have less goto not more :) |
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.