[cairo-bugs] [Bug 59098] segfault in cairo-polygon-intersect.c: active_edges()

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Oct 24 05:20:56 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=59098

olaf at aepfle.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |olaf at aepfle.de

--- Comment #14 from olaf at aepfle.de ---
Guys...

Index: cairo-1.14.2/src/cairo-polygon-intersect.c
===================================================================
--- cairo-1.14.2.orig/src/cairo-polygon-intersect.c
+++ cairo-1.14.2/src/cairo-polygon-intersect.c
@@ -1236,11 +1236,10 @@ active_edges (cairo_bo_edge_t           *left,
                    edges_end (right, top, polygon);

                winding[right->a_or_b] += right->edge.dir;
-               if (is_zero (winding)) {
-                   if (right->next == NULL ||
-                       ! edges_colinear (right, right->next))
+               if (!right->next)
+                       break;
+               if (is_zero (winding) && ! edges_colinear (right, right->next))
                        break;
-               }

                right = right->next;
            } while (1);

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20151024/2d6cd202/attachment.html>


More information about the cairo-bugs mailing list