Gentoo Archives: gentoo-commits

From: "Nirbheek Chauhan (nirbheek)" <nirbheek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-base/librsvg/files: librsvg-2.22.3-fix-segfault-with-firefox.patch
Date: Fri, 01 May 2009 23:53:05
Message-Id: E1M02XQ-0004od-4n@stork.gentoo.org
1 nirbheek 09/05/01 23:53:04
2
3 Added: librsvg-2.22.3-fix-segfault-with-firefox.patch
4 Log:
5 Add patch to workaround gcc-related segfault in firefox -- bug 239992
6 (Portage version: 2.2_rc31/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 gnome-base/librsvg/files/librsvg-2.22.3-fix-segfault-with-firefox.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/librsvg/files/librsvg-2.22.3-fix-segfault-with-firefox.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/librsvg/files/librsvg-2.22.3-fix-segfault-with-firefox.patch?rev=1.1&content-type=text/plain
13
14 Index: librsvg-2.22.3-fix-segfault-with-firefox.patch
15 ===================================================================
16 From: Xu Li <xu.li@×××××.com>
17 Date: Thu, 16 Apr 2009 22:52:32
18 Subject: [PATCH] A temporal patch to fix the crash issue when parse path element
19
20 Index: librsvg-2.26.0/rsvg-path.c
21 ===================================================================
22 --- librsvg-2.26.0.orig/rsvg-path.c
23 +++ librsvg-2.26.0/rsvg-path.c
24 @@ -142,8 +142,8 @@ rsvg_path_arc (RSVGParsePathCtx * ctx,
25 return;
26 }
27
28 - if(rx < 0)rx = -rx;
29 - if(ry < 0)ry = -ry;
30 + rx = fabs(rx);
31 + ry = fabs(ry);
32
33 k1 = (x1 - x2)/2;
34 k2 = (y1 - y2)/2;