<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [PATCH] Segfault on certain PDF form item activation actions"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94873">94873</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[PATCH] Segfault on certain PDF form item activation actions
</td>
</tr>
<tr>
<th>Product</th>
<td>poppler
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>qt4 frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>poppler-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>arseniy@alumni.chalmers.se
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=122824" name="attach_122824" title="The patch">attachment 122824</a> <a href="attachment.cgi?id=122824&action=edit" title="The patch">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>