]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: theoretical buffer overflow
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 26 Oct 2014 17:41:24 +0000 (18:41 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Nov 2014 10:38:21 +0000 (11:38 +0100)
commit6cbf75e56ef70f2213ae0c7f025289a176ed5039
tree836809bcdd28bc6b2c66399075f58fde4e1f403d
parent96f7a117b3b68ec0bc94a1aa165092fc8591ee6f
lscpu: theoretical buffer overflow

there is a theoretical buffer overflow possible in the hypervisor
parsing code of lscpu.  It would require a proc entry to return way more
than expected so it's no high priority.  But better be safe than sorry.

At first I thought about switching to fgets but there is another
code file that adds a format specifier.  The diff is less intrusive
that way, too.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.c