Skip to content
Snippets Groups Projects
Unverified Commit 3d16b8bc authored by Richard Cordovano's avatar Richard Cordovano Committed by GitHub
Browse files

Merge pull request #1712 from sleuthkit/3764_hfs_heap_oob_1214

3764 Fix for heap OOB memory read issue 1214.
parents 2ddd3968 2d2e61c6
No related branches found
No related tags found
No related merge requests found
......@@ -418,7 +418,7 @@ hfs_dir_open_meta(TSK_FS_INFO * fs, TSK_FS_DIR ** a_fs_dir,
return TSK_ERR;
}
if ((fs_name = tsk_fs_name_alloc(HFS_MAXNAMLEN, 0)) == NULL) {
if ((fs_name = tsk_fs_name_alloc(HFS_MAXNAMLEN + 1, 0)) == NULL) {
return TSK_ERR;
}
info.fs_dir = fs_dir;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment