[Forensics-changes] [yara] 41/368: Add missing result check
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:09 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 8d7a052915172bc9e59d27890d66c01f59647e1e
Author: Victor Manuel Alvarez <vmalvarez at virustotal.com>
Date: Fri Aug 28 17:27:00 2015 +0200
Add missing result check
---
libyara/parser.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libyara/parser.c b/libyara/parser.c
index c8e2841..889a145 100644
--- a/libyara/parser.c
+++ b/libyara/parser.c
@@ -732,6 +732,9 @@ YR_RULE* yr_parser_reduce_rule_declaration_phase_1(
identifier,
(char**) &rule->identifier);
+ if (compiler->last_result != ERROR_SUCCESS)
+ return NULL;
+
compiler->last_result = yr_parser_emit_with_arg_reloc(
yyscanner,
OP_INIT_RULE,
--
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