summaryrefslogtreecommitdiff
path: root/libblkid
diff options
context:
space:
mode:
Diffstat (limited to 'libblkid')
-rw-r--r--libblkid/src/superblocks/befs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libblkid/src/superblocks/befs.c b/libblkid/src/superblocks/befs.c
index 8de697ddc..5112d44f4 100644
--- a/libblkid/src/superblocks/befs.c
+++ b/libblkid/src/superblocks/befs.c
@@ -502,6 +502,9 @@ static int probe_befs(blkid_probe pr, const struct blkid_idmag *mag)
block_size != 1U << block_shift)
return BLKID_PROBE_NONE;
+ if (FS32_TO_CPU(bs->ag_shift, fs_le) > 64)
+ return BLKID_PROBE_NONE;
+
ret = get_uuid(pr, bs, &volume_id, fs_le);
if (ret != 0)