[Forensics-changes] [yara] 184/368: Fix bug introduced in a76bfc07fc73160e320abe10ffe73d66f92c183f

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:30:33 UTC 2017


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

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

commit 4d979e639df58199f4e82dec96c66808d5bef0e4
Author: plusvic <plusvic at gmail.com>
Date:   Tue Feb 23 21:20:17 2016 +0100

    Fix bug introduced in a76bfc07fc73160e320abe10ffe73d66f92c183f
---
 libyara/scan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libyara/scan.c b/libyara/scan.c
index 94c6424..4c40239 100644
--- a/libyara/scan.c
+++ b/libyara/scan.c
@@ -321,6 +321,8 @@ int _yr_scan_fast_hex_re_exec(
           //        L4:
           //                  15 + 2 * sizeof(RE_SPLIT_ID_TYPE) bytes in total
 
+          next_opcode = ip + 2 * sizeof(RE_SPLIT_ID_TYPE) + 15;
+
           for (i = *(uint16_t*)(ip + 1) + 1; i > 0; i--)
           {
             if (flags & RE_FLAGS_BACKWARDS)
@@ -336,8 +338,6 @@ int _yr_scan_fast_hex_re_exec(
                 continue;
             }
 
-            next_opcode = ip + 2 * sizeof(RE_SPLIT_ID_TYPE) + 15;
-
             if ( *(next_opcode) != RE_OPCODE_LITERAL ||
                 (*(next_opcode) == RE_OPCODE_LITERAL &&
                  *(next_opcode + 1) == *next_input))

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