]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: ext - avoid undefined shift
authorMilan Broz <gmazyland@gmail.com>
Thu, 13 Oct 2022 12:59:15 +0000 (14:59 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Oct 2022 07:12:37 +0000 (09:12 +0200)
commit90eacdebd0d7d9ce0ff15317f2e10900b0aad4b3
tree78edcdfea1098f56c7f704d8ab5c4ffd57c240e0
parent4e55759f50305eac0b1a398dd2c31dad188d173a
libblkid: ext - avoid undefined shift

Ext filesystems probe can use undefined shift if s_log_block_size
is a bogus value. Avoid this by limiting shift size.

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

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