[Forensics-changes] [yara] 399/407: Fix buffer overrun

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:28:49 UTC 2017


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

bengen pushed a commit to annotated tag v3.3.0
in repository yara.

commit d1fa24bf0734fd5c4ef9ca386e065bfde8a4a26b
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Mon Feb 9 21:14:10 2015 +0100

    Fix buffer overrun
---
 libyara/re.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libyara/re.c b/libyara/re.c
index 644e935..d279ed3 100644
--- a/libyara/re.c
+++ b/libyara/re.c
@@ -1821,7 +1821,7 @@ int yr_re_exec(
       }
     }
 
-    if (flags & RE_FLAGS_WIDE && *(input + 1) != 0)
+    if (flags & RE_FLAGS_WIDE && count < max_count && *(input + 1) != 0)
       _yr_re_fiber_kill_all(&fibers, &storage->fiber_pool);
 
     input += input_incr;

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