diff options
author | Pacho Ramos <pacho@gentoo.org> | 2016-07-02 14:48:05 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2016-07-02 15:30:33 +0200 |
commit | 8cdc8c876e8dd460e7749511d8c5478104e14246 (patch) | |
tree | 76dc0b8110d5448b7e0c1136dd2072fa8f63f817 /gnome-base/librsvg/files | |
parent | gnome-base/gnome-shell: Version bump (diff) | |
download | gentoo-8cdc8c876e8dd460e7749511d8c5478104e14246.tar.gz gentoo-8cdc8c876e8dd460e7749511d8c5478104e14246.tar.bz2 gentoo-8cdc8c876e8dd460e7749511d8c5478104e14246.zip |
gnome-base/librsvg: Drop old
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'gnome-base/librsvg/files')
-rw-r--r-- | gnome-base/librsvg/files/librsvg-2.40.13-filters-crash.patch | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/gnome-base/librsvg/files/librsvg-2.40.13-filters-crash.patch b/gnome-base/librsvg/files/librsvg-2.40.13-filters-crash.patch deleted file mode 100644 index f5503d1dd143..000000000000 --- a/gnome-base/librsvg/files/librsvg-2.40.13-filters-crash.patch +++ /dev/null @@ -1,53 +0,0 @@ -From d937c691678803ceda6be701587d997ccd03a1da Mon Sep 17 00:00:00 2001 -From: Benjamin Otte <otte@redhat.com> -Date: Fri, 29 Jan 2016 12:49:55 +0100 -Subject: Don't crash when filters don't exist - -We put a new surface on the stack if a filter existed by name but we -didn't pop it if the name didn't resolve to a real filter. - -New test: crash/bug759084.svg - -https://bugzilla.gnome.org/show_bug.cgi?id=759084 ---- - rsvg-cairo-draw.c | 6 +++--- - tests/fixtures/crash/bug759084.svg | 9 +++++++++ - 2 files changed, 12 insertions(+), 3 deletions(-) - create mode 100644 tests/fixtures/crash/bug759084.svg - -diff --git a/rsvg-cairo-draw.c b/rsvg-cairo-draw.c -index 4d8fbc2..4152cb7 100644 ---- a/rsvg-cairo-draw.c -+++ b/rsvg-cairo-draw.c -@@ -819,10 +819,10 @@ rsvg_cairo_pop_render_stack (RsvgDrawingCtx * ctx) - cairo_surface_t *output; - - filter = rsvg_acquire_node (ctx, state->filter); -- if (filter && RSVG_NODE_TYPE (filter) == RSVG_NODE_TYPE_FILTER) { -- output = render->surfaces_stack->data; -- render->surfaces_stack = g_list_delete_link (render->surfaces_stack, render->surfaces_stack); -+ output = render->surfaces_stack->data; -+ render->surfaces_stack = g_list_delete_link (render->surfaces_stack, render->surfaces_stack); - -+ if (filter && RSVG_NODE_TYPE (filter) == RSVG_NODE_TYPE_FILTER) { - needs_destroy = TRUE; - surface = rsvg_filter_render ((RsvgFilter *) filter, output, ctx, &render->bbox, "2103"); - /* Don't destroy the output surface, it's owned by child_cr */ -diff --git a/tests/fixtures/crash/bug759084.svg b/tests/fixtures/crash/bug759084.svg -new file mode 100644 -index 0000000..9e8f8f1 ---- /dev/null -+++ b/tests/fixtures/crash/bug759084.svg -@@ -0,0 +1,9 @@ -+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"> -+ <defs> -+ <filter id="filter"> -+ </filter> -+ </defs> -+ <g filter="url(#filter)"> -+ <rect fill="red" width="10" height="10" filter="url(#doesnotexist)" /> -+ </g> -+</svg> --- -cgit v0.12 - |