]> 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)
committerKarel Zak <kzak@redhat.com>
Mon, 5 Jun 2023 10:08:25 +0000 (12:08 +0200)
commit5004732d8ce0c1552b62340d93f75356492301be
treeaf8e948dd9f0cd857b79635269653fb66d89e3e1
parentc082e6182f3b965b3b8004545fa9cae12d0e3068
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