[cairo-bugs] [Bug 74779] Segmentation fault when using a complex path for clip and stroke
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Aug 6 10:32:50 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=74779
--- Comment #5 from Massimo <sixtysix at inwind.it> ---
Created attachment 104163
--> https://bugs.freedesktop.org/attachment.cgi?id=104163&action=edit
quick hack
This is a patch that fixes the crashes in the three attached test cases on
my machine, it is meant to show what appears to me as the problem, the solution
probably should be decided by someone familiar with the code.
1) not returning the pointer difference as a signed int fixes the 'creduced'
test.
2) computing the IMHO correctly rounded quotient fixes the #93749 attachment
and inserting the new edge sorted at current_y+1 fixes the live data test.
This last fix could possibly introduce the same problem for the horizontally
specular case, that is with an edge having an intersection at the same y as
its starting end-point, but at a greater x, in that case the intersection event
would be added, that is the edge 'contains' the intersection, and when the
event is processed the edges would be correctly swapped preserving the order
in the active list.
HTH
--
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/20140806/b07f101f/attachment.html>
More information about the cairo-bugs
mailing list