freebsd-nq/usr.bin/vmstat
Elliott Mitchell e5c30ac930 vmstat: fix overflow of interrupt name buffer
sysctl() provides a count of number of bytes in the buffer.  That is the
actual buffer length.  Whereas looking for an interrupt entry with an
empty name could terminate too early, or overflow the end of the buffer.
The overflow will occur if the table of interrupt names is full.

Reviewed by:	kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D36628
2023-01-20 04:51:13 +02:00
..
tests
Makefile
Makefile.depend
vmstat.8 vmstat: correct history 2021-06-21 08:40:54 -06:00
vmstat.c vmstat: fix overflow of interrupt name buffer 2023-01-20 04:51:13 +02:00