Summary: | Crash with malformed file (jpeg posing as .pdf) | ||
---|---|---|---|
Product: | exempi | Reporter: | Sami Liedes <sami.liedes> |
Component: | Problems | Assignee: | Hubert Figuiere <hub> |
Status: | RESOLVED FIXED | QA Contact: | Hubert Figuiere <hub> |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | [release:2.4.3] | ||
i915 platform: | i915 features: | ||
Attachments: | test case |
Description
Sami Liedes
2017-03-25 23:00:18 UTC
I can reproduce also on master. Will fix in 2.4.x and master When build with AddressSanitizer, it catches a use of memcpy() with overlapping region. This in the Adobe code and it says call to memcpy is marked as "audited" or not overlapping. I stand corrected. While the errors occurs, the crash below still happens. BTW this is not even a valid PDF. file(2) identifies it as JPEG. It is a descent to the rabbit hole. First the file trigger memcpy of overlapped region Then it triggers the actual buffer overrun reported here. Fixing it cause a std::logic_error (NULL initialisation for a std::string) This logic_error cause a use-after-free in the error handling code Good news, all of this will be fixed in a moment. |
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.