[Forensics-changes] [yara] 204/407: Add missing type check

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


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

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

commit d79d7b6dfa7141fa25d22d80482d1f2f8412b88d
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Fri Nov 7 14:57:00 2014 +0100

    Add missing type check
---
 libyara/grammar.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libyara/grammar.c b/libyara/grammar.c
index ca70194..31ccf99 100644
--- a/libyara/grammar.c
+++ b/libyara/grammar.c
@@ -227,7 +227,7 @@
           break; \
         case EXPRESSION_TYPE_STRING: \
           yr_compiler_set_error_extra_info( \
-              compiler, "wrong type \"string\" for \"" op "\" operator"); \
+              compiler, "wrong type \"string\" for " op " operator"); \
           break; \
       } \
       compiler->last_result = ERROR_WRONG_TYPE; \
@@ -3168,7 +3168,7 @@ yyreduce:
   case 92:
 #line 1474 "grammar.y"
     {
-        //CHECK_TYPE($3, EXPRESSION_TYPE_INTEGER, "int8");
+        CHECK_TYPE((yyvsp[(3) - (4)].expression), EXPRESSION_TYPE_INTEGER, "intXXXX or uintXXXX");
 
         // _INTEGER_FUNCTION_ could be any of int8, int16, int32, uint8,
         // uint32, etc. $1 contains an index that added to OP_INT results

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