]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: (bcachefs) fix size validation
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 23 Aug 2023 09:58:33 +0000 (11:58 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 22 Sep 2023 18:47:24 +0000 (20:47 +0200)
commit6b9fda87c4e5d0c6f945d7565197f157b9fa3d5f
treeedc05f69998a3fee0ad0bc40eea47d9495325b2c
parentacbf17ae8f8ee0f941fe98ed12f115f2b349bba8
libblkid: (bcachefs) fix size validation

Avoid signed shift out-of-bounds.

Also mark the constants explitly as unsigned instead of casting.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit befe455f59de8c7bc66b85ed52aae8cbc95325fa)
libblkid/src/superblocks/bcache.c