[Forensics-changes] [yara] 36/135: Fix bug in yara-python
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:27:30 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 f81eeafc4319eb46acea60bd8ec84ae2a95f556b
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Thu Jul 3 12:06:38 2014 +0200
Fix bug in yara-python
---
yara-python/yara-python.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/yara-python/yara-python.c b/yara-python/yara-python.c
index ab28e5c..e636ac3 100644
--- a/yara-python/yara-python.c
+++ b/yara-python/yara-python.c
@@ -332,8 +332,11 @@ int yara_callback(
if (message == CALLBACK_MSG_RULE_NOT_MATCHING && callback == NULL)
return CALLBACK_CONTINUE;
- if (message == CALLBACK_MSG_IMPORT_MODULE && modules_data != NULL)
+ if (message == CALLBACK_MSG_IMPORT_MODULE)
{
+ if (modules_data == NULL)
+ return CALLBACK_CONTINUE;
+
module_import = (YR_MODULE_IMPORT*) message_data;
module_data = PyDict_GetItemString(
--
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