Skip to content

Commit ca0a98e

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/schema_compile_node.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,7 @@ lys_compile_pattern_chblocks_xmlschema2perl(const struct ly_ctx *ctx, const char
12291229
++idx;
12301230
}
12311231
if ((perl_regex[idx2] == ']') && (!idx2 || (perl_regex[idx2 - 1] != '\\'))) {
1232+
assert(idx);
12321233
--idx;
12331234
}
12341235
}

0 commit comments

Comments
 (0)