[Forensics-changes] [yara] 39/135: Fix bug in yara-python causing segmentation faults
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 3773bb1740c4245cb8074eb1b425bf144db0b5be
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Thu Jul 3 12:18:46 2014 +0200
Fix bug in yara-python causing segmentation faults
---
yara-python/yara-python.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/yara-python/yara-python.c b/yara-python/yara-python.c
index e636ac3..8acf025 100644
--- a/yara-python/yara-python.c
+++ b/yara-python/yara-python.c
@@ -344,9 +344,9 @@ int yara_callback(
module_import->module_name);
#if PY_MAJOR_VERSION >= 3
- if (PyBytes_Check(module_data))
+ if (module_data != NULL && PyBytes_Check(module_data))
#else
- if (PyString_Check(module_data))
+ if (module_data != NULL && PyString_Check(module_data))
#endif
{
#if PY_MAJOR_VERSION >= 3
--
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