mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-15 19:38:04 +02:00
Merge branch 'carlosgc/polygon-intersect-crash' into 'master'
polygon-intersect: add missing null checks See merge request cairo/cairo!250
This commit is contained in:
commit
7e6eaf9634
1 changed files with 5 additions and 0 deletions
|
|
@ -1167,6 +1167,9 @@ active_edges (cairo_bo_edge_t *left,
|
|||
} while (1);
|
||||
|
||||
right = left->next;
|
||||
if (! right)
|
||||
return;
|
||||
|
||||
do {
|
||||
if unlikely ((right->deferred.other))
|
||||
edges_end (right, top, polygon);
|
||||
|
|
@ -1179,6 +1182,8 @@ active_edges (cairo_bo_edge_t *left,
|
|||
}
|
||||
|
||||
right = right->next;
|
||||
if (! right)
|
||||
return;
|
||||
} while (1);
|
||||
|
||||
edges_start_or_continue (left, right, top, polygon);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue