<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - cairo_type1_subset.c: write_used_glyphs should check _cairo_winansi_to_glyphname return value"
href="https://bugs.freedesktop.org/show_bug.cgi?id=67324">67324</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>chris@chris-wilson.co.uk
</td>
</tr>
<tr>
<th>Summary</th>
<td>cairo_type1_subset.c: write_used_glyphs should check _cairo_winansi_to_glyphname return value
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>cairo-bugs@cairographics.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>salvador.ortiz@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>1.12.14
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>cairo
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=83008" name="attach_83008" title="A simple patch that fixed the issue.">attachment 83008</a> <a href="attachment.cgi?id=83008&action=edit" title="A simple patch that fixed the issue.">[details]</a></span>
A simple patch that fixed the issue.
After segmentation faults in inkscape and rsvg_convert, the backtrace points to
strlen called from write_used_glyphs in cairo.
Please see <a href="https://bugzilla.redhat.com/show_bug.cgi?id=957009">https://bugzilla.redhat.com/show_bug.cgi?id=957009</a> for the bug
reported to Fedora.
In some cases _cairo_winansi_to_glyphname can return null, so write_used_glyphs
should check that.
Attached a naive patch that fixed the problem.
Regards.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>