Summary: | I/O errors during checkheader() cause hang | ||
---|---|---|---|
Product: | poppler | Reporter: | Ben Timby <btimby> |
Component: | general | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | minor | ||
Priority: | medium | CC: | evangelos, jwilk |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=105674 | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Check return code of getChar(), abort reading on error. |
Description
Ben Timby
2018-01-05 14:57:41 UTC
Patch looks reasonable, after all we're not doing really much in that function. But it only makes failing faster right? I mean you can't really see the file either because your CIFS server is broken, no? Right, this just avoids 1023 additional reads that will fail. After this function returns the next read fails and pdftotext exits. Pushed, thanks :) For very small PDF files, EOF will be reached when reading the header. This patch causes spurious warnings when reading such (valid) files. So open a new bug and attach a patch? |
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.