aboutsummaryrefslogtreecommitdiff
path: root/handler.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-09 05:13:30 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-09 05:54:56 +0200
commit82c68c4a02cde36620ded494b1712b468748c3da (patch)
tree1b8bfe9400cf49dcb5a8e397b4d344909d9058d4 /handler.c
parentb5282b23653b3a46ab6ae2d84049abadcc8a8a1d (diff)
downloadslcl-82c68c4a02cde36620ded494b1712b468748c3da.tar.gz
wildcard_cmp.c: Fix out-of-bounds cmp
When the distance between '*' on a wildcard expression was larger than the string to compare with, this would cause an out-of-bounds read because `n` was not being limited to the strlen(3) from the input string. Example: - s="c", p="*cc*", casecmp=false Here, the distance between the first and second '*' is 2 bytes, which is longer than the input string itself (1 byte, not counting the terminating null byte '\0').
Diffstat (limited to 'handler.c')
0 files changed, 0 insertions, 0 deletions