summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-09-29 03:01:37 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-09-29 03:03:51 +0100
commit1c4f61ec5068a5935eb6d5dd1d6f2c0275b70529 (patch)
treee1a7b8508fe07d7ca4f5394502602c46007f2679
parentf23ae97e307f00a79cbf2e01f9ca20da29ea87c3 (diff)
[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.
-rw-r--r--src/cairo-bentley-ottmann-rectangular.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-bentley-ottmann-rectangular.c b/src/cairo-bentley-ottmann-rectangular.c
index 53faba6b..9887b824 100644
--- a/src/cairo-bentley-ottmann-rectangular.c
+++ b/src/cairo-bentley-ottmann-rectangular.c
@@ -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);
}
}