[Forensics-changes] [yara] 296/368: Fix double free bug
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.5.0
in repository yara.
commit 6b16efd99455066c4fdbab9587769d42d8f18aab
Author: plusvic <plusvic at gmail.com>
Date: Fri Jun 3 12:17:51 2016 +0200
Fix double free bug
---
libyara/modules/pe.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/libyara/modules/pe.c b/libyara/modules/pe.c
index 8171049..504c9fa 100644
--- a/libyara/modules/pe.c
+++ b/libyara/modules/pe.c
@@ -1700,11 +1700,8 @@ define_function(imphash)
final_name = (char*) yr_malloc(final_name_len + 1);
if (final_name == NULL)
- {
- yr_free(dll_name);
break;
- }
-
+
sprintf(final_name, first ? "%s.%s": ",%s.%s", dll_name, func->name);
// Lowercase the whole thing.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list