summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2019-08-30 09:14:28 -0700
committerGitHub <noreply@github.com>2019-08-30 09:14:28 -0700
commitf727de338f15a02e07d2a79cf94940a9786e0864 (patch)
tree5782fe9ec89e928e0bead1d481b05bff43ef0640 /test
parent375731ea23fa7d139f1b0bdf6bed24d83c152e67 (diff)
Fix out-of-bounds access in regexp inclusion test (#3242)
If `re.*(re.allchar)` was at the end of a regular expression concatenation, the regular expression inclusion test could cause out-of-bound accesses. For `re.*(re.allchar)`, we were blindly adding the index after it to the set of indices being considered. Later in the loop, we were assuming that all the indices are smaller than the number of components in the concatenation, thus leading to out-of-bound accesses. This commit adds a check before adding the index to the set of indices. Signed-off-by: Andres Noetzli <andres.noetzli@gmail.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback