]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: bcachefs: avoid overflow in address comparisions
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 25 Jan 2023 05:47:16 +0000 (05:47 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 25 Jan 2023 15:38:29 +0000 (15:38 +0000)
commit46ce48b6a5bf13f95318d579e2af4fde189d049a
treef08cc4177113710359182c8a8599262e8dfa0fa2
parente601773d39e173e5ebf1df0d5f78d35d92eb7181
libblkid: bcachefs: avoid overflow in address comparisions

Adding the offset to the address may overflow and break the comparision,
use substraction instead.

Addresses: #2030
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libblkid/src/superblocks/bcache.c