[Forensics-changes] [yara] 393/415: Fix buffer overflow
    Hilko Bengen 
    bengen at moszumanska.debian.org
       
    Thu Apr  3 05:43:27 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 3f0380947c39ff94040c0515d4d769184e892811
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Thu Feb 6 22:43:22 2014 +0100
    Fix buffer overflow
---
 libyara/re.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libyara/re.c b/libyara/re.c
index ae87c42..2c327d6 100644
--- a/libyara/re.c
+++ b/libyara/re.c
@@ -1501,7 +1501,7 @@ int yr_re_exec(
       fiber = next_fiber;
     }
 
-    if (flags & RE_FLAGS_WIDE && *(input + 1) != 0)
+    if (flags & RE_FLAGS_WIDE && count + 1 < max_count && *(input + 1) != 0)
       _yr_re_fiber_kill_all(&fibers, &storage->fiber_pool);
 
     if (flags & RE_FLAGS_BACKWARDS)
-- 
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