freebsd-dev/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 vmstat(8): Hook up NetBSD tests 2018-01-11 16:04:04 +00:00
Makefile vmstat(1): various nits 2018-06-13 08:52:04 +00:00
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