]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: jfs - avoid undefined shift
authorMilan Broz <gmazyland@gmail.com>
Thu, 27 Oct 2022 14:05:35 +0000 (16:05 +0200)
committerMilan Broz <gmazyland@gmail.com>
Thu, 27 Oct 2022 14:05:35 +0000 (16:05 +0200)
commit04a0717b0b0faa1a8078dc6fad05183b8bada395
treedde80ef09a529a862f6a3ce855cb5bc8ed0b6341
parent4e8a8d3598022aec301760f99f15e2a628a532b0
libblkid: jfs - avoid undefined shift

JFS probe can use undefined shift if stored log2 of block
size is a bogus value. Avoid this by limiting shift size.

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

Signed-off-by: Milan Broz <gmazyland@gmail.com>
libblkid/src/superblocks/jfs.c