]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: erofs - avoid undefined shift
authorMilan Broz <gmazyland@gmail.com>
Wed, 12 Oct 2022 21:02:27 +0000 (23:02 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Oct 2022 07:12:37 +0000 (09:12 +0200)
commit4e55759f50305eac0b1a398dd2c31dad188d173a
treedb1ee5e64f5cd02382807eebcf7564931115282c
parent240f2ea95724a2045afebef703f9a7e62326b603
libblkid: erofs - avoid undefined shift

Erofs probe can use undefined shift if blkszbits
is a bogus value. Avoid this by limiting shift size.

Reproducer found with OSS-Fuzz (issue 52298) running over
cryptsetup project (blkid is used in header init).

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/erofs.c