mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 13:48:02 +02:00
[tessellator] Invalid conversion of list head to edge.
When scanning for collinear right edges, we need to check that we do not go beyond the end of the array.
This commit is contained in:
parent
f23ae97e30
commit
1c4f61ec50
1 changed files with 2 additions and 0 deletions
|
|
@ -380,6 +380,8 @@ _active_edges_to_traps (cairo_bo_sweep_line_t *sweep,
|
|||
break;
|
||||
}
|
||||
|
||||
if (right->link.next == &sweep->sweep)
|
||||
break;
|
||||
right = link_to_edge (right->link.next);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue