diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-03-13 21:22:24 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-03-13 21:24:16 +0100 |
commit | 54c0b9b9dbf72467f099291950680ff8270b02ad (patch) | |
tree | 867839d92f5a70d01493a5a26c7e23581aed9369 /ext2fs/hyper.c | |
parent | 5ff93bc7b5727024394a75defbabb0bff9a2820b (diff) |
ext2fs: Trap trying to access bogus data areas
i.e. superblock, block group descriptor table or beyond the end.
Diffstat (limited to 'ext2fs/hyper.c')
-rw-r--r-- | ext2fs/hyper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext2fs/hyper.c b/ext2fs/hyper.c index d2440dc0..2af7e870 100644 --- a/ext2fs/hyper.c +++ b/ext2fs/hyper.c @@ -180,7 +180,7 @@ map_hypermetadata (void) /* Cache a convenient pointer to the block group descriptors for allocation. These are stored in the filesystem blocks following the superblock. */ group_desc_image = - (struct ext2_group_desc *) bptr (bptr_block (mapped_sblock) + 1); + (struct ext2_group_desc *) bptr (group_desc_block); } error_t |