From b30e5021f1bc3f8bbc127764fec1ca205e2f177c Mon Sep 17 00:00:00 2001 From: Alex Coyte Date: Thu, 27 Apr 2017 13:58:55 +1000 Subject: [PATCH] Strengthen assert to indicate that q->end is less than q->cur Coverity CID-167665 --- src/rose/match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rose/match.c b/src/rose/match.c index 488ee5d5..daf81eac 100644 --- a/src/rose/match.c +++ b/src/rose/match.c @@ -150,7 +150,7 @@ hwlmcb_rv_t roseHandleChainMatch(const struct RoseEngine *t, } if (top_squash_distance) { - assert(q->cur != q->end); + assert(q->cur < q->end); struct mq_item *last = &q->items[q->end - 1]; if (last->type == event && last->location >= loc - (s64a)top_squash_distance) {