[Forensics-changes] [yara] 64/415: Bug fix: namespaces not working with yara.compile and filesources

Hilko Bengen bengen at moszumanska.debian.org
Thu Apr 3 05:42:45 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch debian
in repository yara.

commit efabf5402854b6aa8ceb01d3b059bbc7450bbbb6
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Fri Jun 4 16:43:03 2010 +0000

    Bug fix: namespaces not working with yara.compile and filesources
---
 yara-python/yara-python.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/yara-python/yara-python.c b/yara-python/yara-python.c
index 17d1d66..4a841ba 100644
--- a/yara-python/yara-python.c
+++ b/yara-python/yara-python.c
@@ -727,6 +727,8 @@ static PyObject * yara_compile(PyObject *self, PyObject *args, PyObject *keyword
             
             			if (fh != NULL)
             			{
+            			    context->current_namespace = yr_create_namespace(context, namespace);
+            			
                 			result = Rules_new_from_file(fh, filepath, result, context);
                 			fclose(fh);
             			}

-- 
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