From 7e8bf7ef0bf38a637ea80b1af5529fc177de48a3 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Tue, 1 Jun 2010 21:35:20 +0000 Subject: [PATCH] * ./kite: - Bug: In RoutingEvent, Cs1Candidate::getConflicts() uses of out of bound index. Strangely shows only under recent distributions (Fedora 13). --- kite/src/RoutingEvent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kite/src/RoutingEvent.cpp b/kite/src/RoutingEvent.cpp index a00d2ee7..7bdc9c12 100644 --- a/kite/src/RoutingEvent.cpp +++ b/kite/src/RoutingEvent.cpp @@ -259,7 +259,7 @@ namespace { inline Interval Cs1Candidate::getConflict ( size_t i ) { - if (i > _conflicts.size()) return Interval(); + if (i >= _conflicts.size()) return Interval(); return _conflicts[i]; }