From 66fb96064f2aa36302fcb77d5e8a2a99b6409781 Mon Sep 17 00:00:00 2001 From: Karl Semich <0xloem@gmail.com> Date: Thu, 27 Jan 2011 06:59:53 +0800 Subject: [PATCH] Fix off-by-two overflow in IR dot ordering --- src/ir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ir.c b/src/ir.c index b0bcba8..9a571d0 100644 --- a/src/ir.c +++ b/src/ir.c @@ -628,7 +628,7 @@ static void reorder_ir_dots(struct ir_dot_t* dot) { i = 0; for (; !dot[i].visible || dot[i].order; ++i) - if (i > 4) + if (i >= 3) return; for (j = 0; j < 4; ++j) {