commit | 6db996ecbc3d9d48692180fe65f551169c8cafd3 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Jul 28 10:28:04 2022 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Jul 28 10:28:04 2022 +0200 |
tree | 57d91f6235965f25e2f9c50e42c503af2df8a60d | |
parent | 0009908c8b960d144967ab845ab7cfc4ebf3be20 [diff] |
xpath BUGFIX avoid integer overflow
diff --git a/src/xpath.c b/src/xpath.c index 25982e2..3cf8539 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -5064,7 +5064,8 @@ static LY_ERR xpath_substring(struct lyxp_set **args, uint16_t arg_count, struct lyxp_set *set, uint32_t options) { - int32_t start, len; + int64_t start; + int32_t len; uint16_t str_start, str_len, pos; struct lysc_node_leaf *sleaf; LY_ERR rc = LY_SUCCESS;