[Forensics-changes] [yara] 26/192: Fix out-of-bounds array access

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:31:42 UTC 2017


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

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

commit 89c70ae6e05ddc2d79d7ee0f6a4de10f3cd36539
Author: plusvic <plusvic at gmail.com>
Date:   Thu Sep 8 19:22:57 2016 +0200

    Fix out-of-bounds array access
---
 libyara/rules.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libyara/rules.c b/libyara/rules.c
index e708c70..f7a3691 100644
--- a/libyara/rules.c
+++ b/libyara/rules.c
@@ -353,7 +353,7 @@ YR_API int yr_rules_scan_mem_blocks(
 
   yr_mutex_lock(&rules->mutex);
 
-  while (YR_BITARRAY_TEST(rules->tidx_mask, tidx) && tidx < MAX_THREADS)
+  while (tidx < MAX_THREADS && YR_BITARRAY_TEST(rules->tidx_mask, tidx))
   {
     tidx++;
   }

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