[Forensics-changes] [yara] 376/415: Fixed NULL pointer dereference	bug.
    Hilko Bengen 
    bengen at moszumanska.debian.org
       
    Thu Apr  3 05:43:25 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 3fd4de046a16a4917ba6f6e01e4c99498f61b94b
Author: msuvajac <msuvajac at gmail.com>
Date:   Tue Jan 21 09:45:52 2014 +0100
    Fixed NULL pointer dereference bug.
---
 libyara/re.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libyara/re.c b/libyara/re.c
index c8efc68..b80d2f9 100644
--- a/libyara/re.c
+++ b/libyara/re.c
@@ -291,11 +291,12 @@ SIZED_STRING* yr_re_extract_literal(
   }
 
   string = yr_malloc(sizeof(SIZED_STRING) + length);
-  string->length = 0;
-
+ 
   if (string == NULL)
     return NULL;
 
+  string->length = 0;
+
   node = re->root_node;
 
   while (node->type == RE_NODE_CONCAT)
-- 
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