[Forensics-changes] [yara] 47/415: Bug fix: yr_create_namespace calling strdup instead of yr_strdup

Hilko Bengen bengen at moszumanska.debian.org
Thu Apr 3 05:42:42 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 c636c745fc9d00354dde020e61f2fbaa090330fe
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Tue Nov 24 18:12:32 2009 +0000

    Bug fix: yr_create_namespace calling strdup instead of yr_strdup
---
 libyara/libyara.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libyara/libyara.c b/libyara/libyara.c
index 436eed8..3d3cbf0 100644
--- a/libyara/libyara.c
+++ b/libyara/libyara.c
@@ -195,7 +195,7 @@ NAMESPACE* yr_create_namespace(YARA_CONTEXT* context, const char* namespace)
 	
 	if (ns != NULL)
 	{
-		ns->name = strdup(namespace);
+		ns->name = yr_strdup(namespace);
 		ns->global_rules_satisfied = FALSE;
 		ns->next = context->namespaces;
 		context->namespaces = ns;

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