[Poppler-bugs] [Bug 94873] New: [PATCH] Segfault on certain PDF form item activation actions
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Apr 8 18:45:40 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=94873
Bug ID: 94873
Summary: [PATCH] Segfault on certain PDF form item activation
actions
Product: poppler
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: qt4 frontend
Assignee: poppler-bugs at lists.freedesktop.org
Reporter: arseniy at alumni.chalmers.se
Created attachment 122824
--> https://bugs.freedesktop.org/attachment.cgi?id=122824&action=edit
The patch
PageData::convertLinkActionToLink in qt4/src/poppler-page.cc, for
actionRendition link kind, calls copy() on LinkRendition::getMedia(). However,
LinkRendition constructor from Poppler core has several ways to leave the media
field at NULL. The situation I came across was operationCode = 5, but it looks
like the same would happen for 1 ≤ operationCode ≤ 3 and missing R field, which
isn't even considered an malformed PDF.
Anyway, I'm attaching a patch that fixes the segfault when
LinkRendition::getMedia() returns NULL for whatever reason. I'm not attaching
the test case because it's 150 MB large and copyrighted but I guess I can send
it privately to someone if really needed.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20160408/d7038ba1/attachment.html>
More information about the Poppler-bugs
mailing list