From: Alex Coyte Date: Thu, 27 Apr 2017 03:58:55 +0000 (+1000) Subject: Strengthen assert to indicate that q->end is less than q->cur X-Git-Tag: v4.5.0^2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b30e5021f1bc3f8bbc127764fec1ca205e2f177c;p=thirdparty%2Fvectorscan.git Strengthen assert to indicate that q->end is less than q->cur Coverity CID-167665 --- 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) {