]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: fix potential bufer overflows
authorSebastian Krahmer <krahmer@suse.de>
Fri, 5 Dec 2014 09:06:42 +0000 (10:06 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 5 Dec 2014 10:37:05 +0000 (11:37 +0100)
commit109df14fad4e9570e26950913ebace6c79289400
treecca9a9f7fac162b3319821e56940ddf7b59925c7
parent764b697c56660d3d7207b985ff6b0730df387954
libblkid: fix potential bufer overflows

While digging deeper into libblk probing, I found that some
computations might wrap and allocate too few buffer space which then
overflows. In particular on 32bit systems (chromebook) where size_t is
32bit, this is problematic (for 64bit the result fits into the calloc
size_t).

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/partitions/gpt.c
libblkid/src/probe.c
libblkid/src/superblocks/zfs.c