]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Strengthen assert to indicate that q->end is less than q->cur
authorAlex Coyte <a.coyte@intel.com>
Thu, 27 Apr 2017 03:58:55 +0000 (13:58 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Tue, 30 May 2017 03:58:59 +0000 (13:58 +1000)
Coverity CID-167665

src/rose/match.c

index 488ee5d57e51d1e0654167c61473e91d66856295..daf81eac0d0500bf30bf23ad7ca983cdf6e36f38 100644 (file)
@@ -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) {