summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2026-02-23 13:45:55 -0600
committerTom Rini <[email protected]>2026-02-23 13:45:55 -0600
commit15bd3258174b8c8791d7779f66d26ece9545b1c0 (patch)
tree634188f66b83e1554ffea95c4702df25b61ce20e /fs
parentef65b15383c99f4562539a635fe166fb4d75c0e3 (diff)
parent4f70106beafe30df8b0528a3d8b2543cd48fe241 (diff)
Merge tag 'v2026.04-rc3' into next
Prepare v2026.04-rc3
Diffstat (limited to 'fs')
-rw-r--r--fs/squashfs/sqfs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c
index f668c26472e..9cb8b4afcdd 100644
--- a/fs/squashfs/sqfs.c
+++ b/fs/squashfs/sqfs.c
@@ -178,6 +178,11 @@ static int sqfs_frag_lookup(u32 inode_fragment_index,
goto out;
}
+ if (SQFS_METADATA_SIZE(header) > SQFS_METADATA_BLOCK_SIZE) {
+ ret = -EINVAL;
+ goto out;
+ }
+
entries = malloc(SQFS_METADATA_BLOCK_SIZE);
if (!entries) {
ret = -ENOMEM;