[Forensics-changes] [yara] 204/368: Accept negative integers in meta fields
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:40 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 9c044f32763fa793f7e0a2c0e00dd3606e891b90
Author: Hilko Bengen <bengen at hilluzination.de>
Date: Sun Feb 28 22:22:50 2016 +0100
Accept negative integers in meta fields
Closes #406
---
libyara/grammar.y | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/libyara/grammar.y b/libyara/grammar.y
index b27795e..d79cf8c 100644
--- a/libyara/grammar.y
+++ b/libyara/grammar.y
@@ -438,6 +438,19 @@ meta_declaration
ERROR_IF($$ == NULL);
}
+ | _IDENTIFIER_ '=' '-' _NUMBER_
+ {
+ $$ = yr_parser_reduce_meta_declaration(
+ yyscanner,
+ META_TYPE_INTEGER,
+ $1,
+ NULL,
+ -$4);
+
+ yr_free($1);
+
+ ERROR_IF($$ == NULL);
+ }
| _IDENTIFIER_ '=' _TRUE_
{
$$ = yr_parser_reduce_meta_declaration(
--
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