[librsvg/next: 31/31] Fix crash on malformed SVG file
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/next: 31/31] Fix crash on malformed SVG file
- Date: Fri, 21 Oct 2011 21:23:28 +0000 (UTC)
commit ab4199593f16b869edfff667ace85ab2fbac514e
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 4a05e46..a330d3c 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]