mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 20:48:03 +02:00
Add unlikely() to test for x == INT32_MAX for the NULL reference
in https://gitlab.freedesktop.org/poppler/poppler/-/issues/1579
This commit is contained in:
parent
9aaa95f248
commit
b3b2706880
1 changed files with 2 additions and 2 deletions
|
|
@ -847,8 +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 (rectangles[j].left.x == INT32_MAX) rectangles[j].left.x = INT32_MAX-1;
|
||||
if (rectangles[j].right.x == INT32_MAX) rectangles[j].right.x = INT32_MAX-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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue