| Summary: | Segfault at sweep_line_delete on video playback | ||
|---|---|---|---|
| Product: | cairo | Reporter: | David <sidicas2> |
| Component: | general | Assignee: | Chris Wilson <chris> |
| Status: | RESOLVED DUPLICATE | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
| Severity: | normal | ||
| Priority: | medium | CC: | rcoe |
| Version: | 1.12.16 | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
| Attachments: |
prevent cairo crash on null-pointers
prevent cairo crash on null-pointers (minor fix) |
||
|
Description
David
2014-03-17 15:00:38 UTC
sweep_line_delete is calling sweep_line_delete_edge which is deleting an edge from a double linked list without checking for null prev/next. As built by _cairo_bentley_ottmann_tessellate_rectangular(), there are null prev/next pointers in the edge list. Created attachment 103204 [details] [review] prevent cairo crash on null-pointers Here is a patch that prevents the crash and allows videos to play for me. As the null-terminated double linked list is built by cairo, it makes sense that cairo be able to navigate it's own list. Created attachment 103444 [details] [review] prevent cairo crash on null-pointers (minor fix) Added needed code back in taken out to make previous patch as small as possible. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.