mirror of
https://github.com/opnsense/src.git
synced 2026-02-09 22:06:55 -05:00
The number of events we track can vary over time, but we only allocate enough space for the exact number of events we are tracking when we first begin, resulting in a trivially reproducable heap overflow. Fix this by allocating enough space for the greatest possible number of events (two per file) and clean up the code a bit. Also add a test case which triggers the aforementioned heap overflow, although we don't currently have a way to detect it. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: allanjude, markj Differential Revision: https://reviews.freebsd.org/D42839 (cherry picked from commit 621f45532c5887c96b708ce232c52878d0053325) tail: Clean up error messages. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D42842 (cherry picked from commit b70e57be2cfe83ec9f410e2f317ea38aaac61a98) |
||
|---|---|---|
| .. | ||
| tests | ||
| extern.h | ||
| forward.c | ||
| Makefile | ||
| Makefile.depend | ||
| Makefile.depend.options | ||
| misc.c | ||
| read.c | ||
| reverse.c | ||
| tail.1 | ||
| tail.c | ||