[Forensics-changes] [yara] 19/135: Adjust value for RE_MAX_CODE_SIZE

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


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

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

commit 0ce0d33cfab58660e947adc2468df68df48d1232
Author: Victor Manuel Alvarez <vmalvarez at virustotal.com>
Date:   Wed May 14 11:58:40 2014 +0200

    Adjust value for RE_MAX_CODE_SIZE
---
 libyara/re.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libyara/re.c b/libyara/re.c
index a93fddd..3820030 100644
--- a/libyara/re.c
+++ b/libyara/re.c
@@ -42,9 +42,9 @@ order to avoid confusion with operating system threads.
 #include "re.h"
 
 
-#define RE_MAX_STACK      1024
-#define RE_MAX_CODE_SIZE  4096
-#define RE_SCAN_LIMIT     4096
+#define RE_MAX_STACK      1024  // Maxium stack size for regexp evaluation
+#define RE_MAX_CODE_SIZE  16384 // Maximum code size for a compiled regexp
+#define RE_SCAN_LIMIT     4096  // Maximum input size scanned by yr_re_exec
 
 
 #define EMIT_BACKWARDS                1

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