aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pppctl
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2023-11-29 21:48:50 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2023-11-29 21:49:38 +0000
commit621f45532c5887c96b708ce232c52878d0053325 (patch)
tree00ed1d1ce1fb47b1a7238f537320efbaf04b5a2a /usr.sbin/pppctl
parentb647615ede46af66cd0c8bd5a321d4a2cccdabe0 (diff)
tail: Fix heap overflow in -F case.
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
Diffstat (limited to 'usr.sbin/pppctl')
0 files changed, 0 insertions, 0 deletions