[Forensics-changes] [yara] 24/135: Avoid segfault while scanning some processes in Windows
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:27:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.1.0
in repository yara.
commit 035b2a2df7d1cfabb36adf8bba997b78ff9bd4a2
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Thu May 15 10:27:51 2014 +0200
Avoid segfault while scanning some processes in Windows
---
libyara/rules.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libyara/rules.c b/libyara/rules.c
index a776503..d83f428 100644
--- a/libyara/rules.c
+++ b/libyara/rules.c
@@ -1154,6 +1154,9 @@ int yr_rules_scan_mem_blocks(
int tidx = 0;
int result = ERROR_SUCCESS;
+ if (block == NULL)
+ return ERROR_SUCCESS;
+
context.file_size = block->size;
context.mem_block = block;
context.entry_point = UNDEFINED;
--
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