Skip to content
Snippets Groups Projects
Commit 2d2e61c6 authored by esaunders's avatar esaunders
Browse files

Fix for heap OOB memory read issue 1214.

parent 7410c783
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