r17958 - in /desktop/unstable/librsvg/debian: changelog patches/rsvg-radius.patch

joss at users.alioth.debian.org joss at users.alioth.debian.org
Mon Dec 22 17:33:31 UTC 2008


Author: joss
Date: Mon Dec 22 17:33:30 2008
New Revision: 17958

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=17958
Log:
rsvg-radius.patch: new patch. Check radii against floating point 
underflow instead of comparing them to 0.0. Thanks a lot to Thomas 
Viehmann for all the testing and providing the patch.
Closes: #508443.

Added:
    desktop/unstable/librsvg/debian/patches/rsvg-radius.patch
Modified:
    desktop/unstable/librsvg/debian/changelog

Modified: desktop/unstable/librsvg/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/librsvg/debian/changelog?rev=17958&op=diff
==============================================================================
--- desktop/unstable/librsvg/debian/changelog (original)
+++ desktop/unstable/librsvg/debian/changelog Mon Dec 22 17:33:30 2008
@@ -1,3 +1,12 @@
+librsvg (2.22.2-4) unstable; urgency=low
+
+  * rsvg-radius.patch: new patch. Check radii against floating point 
+    underflow instead of comparing them to 0.0. Thanks a lot to Thomas 
+    Viehmann for all the testing and providing the patch.
+    Closes: #508443.
+
+ -- Josselin Mouette <joss at debian.org>  Mon, 22 Dec 2008 18:32:57 +0100
+
 librsvg (2.22.2-3) unstable; urgency=low
 
   * Build a dbg package. Closes: #496189.

Added: desktop/unstable/librsvg/debian/patches/rsvg-radius.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/librsvg/debian/patches/rsvg-radius.patch?rev=17958&op=file
==============================================================================
--- desktop/unstable/librsvg/debian/patches/rsvg-radius.patch (added)
+++ desktop/unstable/librsvg/debian/patches/rsvg-radius.patch Mon Dec 22 17:33:30 2008
@@ -1,0 +1,13 @@
+--- librsvg-2.22.2.orig/rsvg-path.c
++++ librsvg-2.22.2/rsvg-path.c
+@@ -114,8 +114,9 @@
+        cause divide by zero and subsequent NaNs.  We should
+        really do some ranged check ie -0.001 < x < 000.1 rather
+        can just a straight check again zero.
++       And now we even do! http://bugs.debian.org/508443
+      */
+-    if ((rx == 0.0) || (ry == 0.0))
++    if ((fabs(rx) < DBL_EPSILON) || (fabs(ry) < DBL_EPSILON))
+         return;
+
+     sin_th = sin (x_axis_rotation * (M_PI / 180.0));




More information about the pkg-gnome-commits mailing list