]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: jfs - avoid undefined shift
authorMilan Broz <gmazyland@gmail.com>
Sun, 4 Jun 2023 17:15:55 +0000 (19:15 +0200)
committerMilan Broz <gmazyland@gmail.com>
Sun, 4 Jun 2023 17:18:57 +0000 (19:18 +0200)
commit16d8b1e2a62f81ac368438a730d5e57cd2778f55
treea0ddb30d12c091a29bbd5e783429adb883a44d97
parent91a484febae74588517226c6e0870562ca430651
libblkid: jfs - avoid undefined shift

Fix previous commit 04a0717b0b0faa1a8078dc6fad05183b8bada395
to avoid undefined shift if value is exactly 32.

  libblkid/src/superblocks/jfs.c:46:39: runtime error:
  shift exponent 32 is too large for 32-bit type 'unsigned int'

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

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