[Forensics-changes] [yara] 85/135: Fix issue #147

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:27:35 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 57ef744874c6f1fe05a17ab9ed03dd994ac315fa
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Mon Aug 11 09:24:12 2014 +0200

    Fix issue #147
---
 libyara/lexer.c | 4 ++++
 libyara/lexer.l | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/libyara/lexer.c b/libyara/lexer.c
index a9062c5..406fcbf 100644
--- a/libyara/lexer.c
+++ b/libyara/lexer.c
@@ -2978,6 +2978,8 @@ int yr_lex_parse_rules_string(
 {
   yyscan_t yyscanner;
 
+  compiler->errors = 0;
+
   if (setjmp(compiler->error_recovery) != 0)
     return compiler->errors;
 
@@ -3003,6 +3005,8 @@ int yr_lex_parse_rules_file(
 {
   yyscan_t yyscanner;
 
+  compiler->errors = 0;
+
   if (setjmp(compiler->error_recovery) != 0)
     return compiler->errors;
 
diff --git a/libyara/lexer.l b/libyara/lexer.l
index 3b6d1cc..f6f3874 100644
--- a/libyara/lexer.l
+++ b/libyara/lexer.l
@@ -659,6 +659,8 @@ int yr_lex_parse_rules_string(
 {
   yyscan_t yyscanner;
 
+  compiler->errors = 0;
+
   if (setjmp(compiler->error_recovery) != 0)
     return compiler->errors;
 
@@ -684,6 +686,8 @@ int yr_lex_parse_rules_file(
 {
   yyscan_t yyscanner;
 
+  compiler->errors = 0;
+
   if (setjmp(compiler->error_recovery) != 0)
     return compiler->errors;
 

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