Page MenuHomeFreeBSD

D54798.1796107290.diff
No OneTemporary

Authored By
Unknown
Size
770 B
Referenced Files
None
Subscribers
None

D54798.1796107290.diff

diff --git a/sys/fs/ext2fs/ext2_htree.c b/sys/fs/ext2fs/ext2_htree.c
--- a/sys/fs/ext2fs/ext2_htree.c
+++ b/sys/fs/ext2fs/ext2_htree.c
@@ -286,6 +286,8 @@
rootp->h_info.h_hash_version != EXT2_HTREE_HALF_MD4 &&
rootp->h_info.h_hash_version != EXT2_HTREE_TEA)
goto error;
+ if (rootp->h_info.h_info_len != sizeof(struct ext2fs_htree_root_info))
+ goto error;
hash_version = rootp->h_info.h_hash_version;
if (hash_version <= EXT2_HTREE_TEA)
@@ -300,8 +302,7 @@
if ((levels = rootp->h_info.h_ind_levels) > 1)
goto error;
- entp = (struct ext2fs_htree_entry *)(((char *)&rootp->h_info) +
- rootp->h_info.h_info_len);
+ entp = rootp->h_entries;
if (ext2_htree_get_limit(entp) !=
ext2_htree_root_limit(ip, rootp->h_info.h_info_len))

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 1, 6:41 AM (2 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42120703
Default Alt Text
D54798.1796107290.diff (770 B)

Event Timeline