[librsvg] Fix crash on malformed SVG file
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Fix crash on malformed SVG file
- Date: Sun, 6 Nov 2011 13:29:26 +0000 (UTC)
commit edbb480e5214f19e46d5aba89727202febae8857
Author: Bruno Girin <brunogirin gmail com>
Date: Sun Oct 2 14:08:36 2011 +0200
Fix crash on malformed SVG file
https://bugzilla.gnome.org/show_bug.cgi?id=626559
rsvg-paint-server.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/rsvg-paint-server.c b/rsvg-paint-server.c
index 7903684..84c0395 100644
--- a/rsvg-paint-server.c
+++ b/rsvg-paint-server.c
@@ -118,7 +118,7 @@ rsvg_paint_server_parse (gboolean * inherit, const RsvgDefs * defs, const char *
guint32 rgb;
if (inherit != NULL)
*inherit = 1;
- if (!strcmp (str, "none"))
+ if (str == NULL || !strcmp (str, "none"))
return NULL;
name = rsvg_get_url_string (str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]