!5 修改oss-fuzz memory leak问题

From: @disnight
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-12-10 08:59:32 +08:00 committed by Gitee
commit fd3b442506
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,11 @@
diff -Nur sleuthkit-4.6.7/tsk/vs/dos.c sleuthkit-4.6.7.new/tsk/vs/dos.c
--- sleuthkit-4.6.7/tsk/vs/dos.c 2019-08-03 04:20:57.000000000 +0800
+++ sleuthkit-4.6.7.new/tsk/vs/dos.c 2020-12-09 17:35:47.356058422 +0800
@@ -769,6 +769,7 @@
tsk_error_set_errno(TSK_ERR_VS_BLK_NUM);
tsk_error_set_errstr
("dos_load_ext_table: Loop in partition table detected");
+ free(sect_buf);
return 1;
}
part_info = part_info->next;

View File

@ -1,11 +1,13 @@
Name: sleuthkit Name: sleuthkit
Version: 4.6.7 Version: 4.6.7
Release: 2 Release: 3
Summary: Tools for file system and volume forensic analysis Summary: Tools for file system and volume forensic analysis
License: CPL and IBM and GPLv2+ License: CPL and IBM and GPLv2+
URL: http://www.sleuthkit.org URL: http://www.sleuthkit.org
Source0: https://github.com/sleuthkit/sleuthkit/releases/download/sleuthkit-%{version}/sleuthkit-%{version}.tar.gz Source0: https://github.com/sleuthkit/sleuthkit/releases/download/sleuthkit-%{version}/sleuthkit-%{version}.tar.gz
Patch1: 0001-MEMORYLEAK-DOS-LOAD-EXT-TABLE.patch
BuildRequires: gcc-c++ afflib-devel >= 3.3.4 libewf-devel perl-generators sqlite-devel BuildRequires: gcc-c++ afflib-devel >= 3.3.4 libewf-devel perl-generators sqlite-devel
%{?_with_java: %{?_with_java: