Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check length before reading in
stringmatchlen
(valkey-io#1431)
Fixes four cases where `stringmatchlen` could overrun the pattern if it is not terminated with NUL. These commits are cherry-picked from my [fork](https://github.com/thaliaarchi/antirez-stringmatch) which extracts `stringmatch` as a library and compares it to other projects by antirez which use the same matcher. Signed-off-by: Thalia Archibald <[email protected]>
- Loading branch information