From 2d2e61c6de2393c430612223c93d730bedc52e7c Mon Sep 17 00:00:00 2001 From: esaunders <esaunders@basistech.com> Date: Wed, 4 Dec 2019 11:02:24 -0500 Subject: [PATCH] Fix for heap OOB memory read issue 1214. --- tsk/fs/hfs_dent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsk/fs/hfs_dent.c b/tsk/fs/hfs_dent.c index 8402b3024..e4cebf8a4 100644 --- a/tsk/fs/hfs_dent.c +++ b/tsk/fs/hfs_dent.c @@ -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; -- GitLab