[Forensics-changes] [yara] 110/160: PE module: avoid memory leak if there are no valid PKCS7 certs
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:29:23 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.4.0
in repository yara.
commit fd2826abc4295c418f304d25ee75be054a3b3fa7
Author: Hilko Bengen <bengen at hilluzination.de>
Date: Thu May 7 23:59:31 2015 +0200
PE module: avoid memory leak if there are no valid PKCS7 certs
---
libyara/modules/pe.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libyara/modules/pe.c b/libyara/modules/pe.c
index a306e5e..228ba4d 100644
--- a/libyara/modules/pe.c
+++ b/libyara/modules/pe.c
@@ -1131,6 +1131,7 @@ void pe_parse_certificates(
if (!certs)
{
BIO_free(cert_bio);
+ PKCS7_free(pkcs7);
break;
}
@@ -1202,6 +1203,7 @@ void pe_parse_certificates(
win_cert = (PWIN_CERTIFICATE)(end + (end % 8));
BIO_free(cert_bio);
+ PKCS7_free(pkcs7);
sk_X509_free(certs);
}
--
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