mirror of
https://github.com/opnsense/src.git
synced 2026-03-02 21:31:02 -05:00
or "+" (these are invalid, because there is no preceding operand). When bsdgrep attempts to emulate GNU grep in discarding and ignoring the invalid ? or + operators, some later logic in tre_compile_fast() goes beyond the end of the buffer, leading to a crash. Fix this by bailing out, and reporting a bad pattern instead. Reported by: Steve Kargl MFC after: 1 week |
||
|---|---|---|
| .. | ||
| fastmatch.c | ||
| fastmatch.h | ||
| glue.h | ||
| hashtable.c | ||
| hashtable.h | ||
| tre-compile.c | ||
| tre-fastmatch.c | ||
| tre-fastmatch.h | ||
| xmalloc.c | ||
| xmalloc.h | ||