librsvg r1205 - trunk
- From: doml svn gnome org
- To: svn-commits-list gnome org
- Subject: librsvg r1205 - trunk
- Date: Thu, 19 Feb 2009 23:33:57 +0000 (UTC)
Author: doml
Date: Thu Feb 19 23:33:57 2009
New Revision: 1205
URL: http://svn.gnome.org/viewvc/librsvg?rev=1205&view=rev
Log:
2009-02-19 Josselin Mouette <joss malsain org>
* rsvg-path.c: Crashes on some architectures because of wrong zero check on doubles. Bug #565371
Modified:
trunk/ChangeLog
trunk/rsvg-path.c
Modified: trunk/rsvg-path.c
==============================================================================
--- trunk/rsvg-path.c (original)
+++ trunk/rsvg-path.c Thu Feb 19 23:33:57 2009
@@ -134,8 +134,9 @@
sinf = sin(f);
cosf = cos(f);
- /* Check the radius */
- if ((rx == 0.0) || (ry == 0.0))
+ /* Check the radius against floading point underflow.
+ See http://bugs.debian.org/508443 */
+ if ((fabs(rx) < DBL_EPSILON) || (fabs(ry) < DBL_EPSILON))
{
rsvg_bpath_def_lineto (ctx->bpath, x, y);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]