Merge branch 'bentley-ottmann-init-28apr25' into 'master'

Fix a NULL access in active_edges_to_traps().

See merge request cairo/cairo!621
This commit is contained in:
William Bader 2026-05-07 16:10:10 +00:00
commit 5ec346e402

View file

@ -847,6 +847,8 @@ _cairo_bentley_ottmann_tessellate_boxes (const cairo_boxes_t *in,
rectangles[j].left.x = box[i].p2.x;
rectangles[j].left.dir = -1;
}
if (unlikely (rectangles[j].left.x == INT32_MAX)) rectangles[j].left.x = INT32_MAX-1;
if (unlikely (rectangles[j].right.x == INT32_MAX)) rectangles[j].right.x = INT32_MAX-1;
rectangles[j].left.right = NULL;
rectangles[j].right.right = NULL;