mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Strengthen assert to indicate that q->end is less than q->cur
Coverity CID-167665
This commit is contained in:
parent
8b9328fe9e
commit
b30e5021f1
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user