Skip to content

Fix crash when rendering SVGs that display nothing

Kaidan requested to merge imnotbad/librsvg:master into master

Fixed a crash caused by unwrapping a None value in Rust, which was caused by a function trying to parse an SVG image that contained no renderable parts. The image that produced the issue is shown below.

<?xml version="1.0" encoding="UTF-8" ?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<script>alert("please fix");</script>
</svg>

Merge request reports