[Forensics-changes] [yara] 203/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 accf5e17afbf670ffeae1b997c4a50427c5f3817
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Fri Nov 7 14:56:13 2014 +0100
Add missing type check
---
libyara/grammar.y | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libyara/grammar.y b/libyara/grammar.y
index 5809dc3..5e087f9 100644
--- a/libyara/grammar.y
+++ b/libyara/grammar.y
@@ -66,7 +66,7 @@ limitations under the License.
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; \
@@ -1472,7 +1472,7 @@ primary_expression
}
| _INTEGER_FUNCTION_ '(' primary_expression ')'
{
- //CHECK_TYPE($3, EXPRESSION_TYPE_INTEGER, "int8");
+ CHECK_TYPE($3, 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