Skip to content

Commit 2ea3972

Browse files
committedJan 23, 2023
Merge branch 'fix-befs' of https://github.com/mbroz/util-linux
* 'fix-befs' of https://github.com/mbroz/util-linux: libblkid: befs - avoid undefined shift
2 parents eef48b8 + 0ec43c0 commit 2ea3972

File tree

1 file changed

+3
-0
lines changed
  • libblkid/src/superblocks

1 file changed

+3
-0
lines changed
 

‎libblkid/src/superblocks/befs.c

+3
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,9 @@ static int probe_befs(blkid_probe pr, const struct blkid_idmag *mag)
502502
block_size != 1U << block_shift)
503503
return BLKID_PROBE_NONE;
504504

505+
if (FS32_TO_CPU(bs->ag_shift, fs_le) > 64)
506+
return BLKID_PROBE_NONE;
507+
505508
ret = get_uuid(pr, bs, &volume_id, fs_le);
506509

507510
if (ret != 0)

0 commit comments

Comments
 (0)
Please sign in to comment.