<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:olaf@aepfle.de" title="olaf@aepfle.de">olaf@aepfle.de</a>
</span> changed
              <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - segfault in cairo-polygon-intersect.c: active_edges()"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=59098">bug 59098</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>olaf@aepfle.de
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - segfault in cairo-polygon-intersect.c: active_edges()"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=59098#c14">Comment # 14</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - segfault in cairo-polygon-intersect.c: active_edges()"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=59098">bug 59098</a>
              from <span class="vcard"><a class="email" href="mailto:olaf@aepfle.de" title="olaf@aepfle.de">olaf@aepfle.de</a>
</span></b>
        <pre>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);</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>