[Forensics-changes] [yara] 09/15: Increase RE_MAX_AST_LEVELS
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:33:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.6.2
in repository yara.
commit 7b21282575ef94788790a91bcc2eebde78cc3977
Author: Victor Manuel Alvarez <vmalvarez at vmalvarez-macbookpro.roam.corp.google.com>
Date: Mon Jun 26 09:42:07 2017 +0200
Increase RE_MAX_AST_LEVELS
There are some rules out there with massively long regular expressions or hex strings that are reaching the 3000 limit. A 6000 limit is still safe enough for preventing stack overflows but don't brake those rules.
---
libyara/include/yara/limits.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libyara/include/yara/limits.h b/libyara/include/yara/limits.h
index 1a13da4..5bcaa9c 100644
--- a/libyara/include/yara/limits.h
+++ b/libyara/include/yara/limits.h
@@ -83,6 +83,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define RE_MAX_FIBERS 1024
// Maximum number of levels in regexp's AST
-#define RE_MAX_AST_LEVELS 3000
+#define RE_MAX_AST_LEVELS 6000
#endif
--
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