Skip to content

Commit 375ab30

Browse files
jsc-semichalvasko
authored andcommitted
src/xpath.c: coverity fix - overflowed constant
1 parent 0da9655 commit 375ab30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/xpath.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8256,6 +8256,7 @@ eval_name_test_with_predicate(const struct lyxp_expr *exp, uint32_t *tok_idx, en
82568256

82578257
if (set->used) {
82588258
i = set->used;
8259+
assert(i);
82598260
do {
82608261
--i;
82618262
if (set->val.scnodes[i].in_ctx > LYXP_SET_SCNODE_ATOM_NODE) {

0 commit comments

Comments
 (0)