[Forensics-changes] [yara] 95/415: Fix incorrect evaluation of operators "of", "for..of" and "for..in"
Hilko Bengen
bengen at moszumanska.debian.org
Thu Apr 3 05:42:49 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch debian
in repository yara.
commit 66d95aeb8e5a0effdde2af4da60f9170241c1c99
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Tue Mar 29 23:35:00 2011 +0000
Fix incorrect evaluation of operators "of", "for..of" and "for..in"
---
libyara/eval.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libyara/eval.c b/libyara/eval.c
index a5d2b8d..007390f 100644
--- a/libyara/eval.c
+++ b/libyara/eval.c
@@ -315,7 +315,7 @@ long long evaluate(TERM* term, EVALUATION_CONTEXT* context)
if (needed == 0) /* needed == 0 means ALL*/
needed = i;
- return (satisfied == needed);
+ return (satisfied >= needed);
case TERM_TYPE_STRING_FOR:
@@ -344,7 +344,7 @@ long long evaluate(TERM* term, EVALUATION_CONTEXT* context)
if (needed == 0) /* needed == 0 means ALL*/
needed = i;
- return (satisfied == needed);
+ return (satisfied >= needed);
case TERM_TYPE_INTEGER_FOR:
@@ -373,7 +373,7 @@ long long evaluate(TERM* term, EVALUATION_CONTEXT* context)
if (needed == 0) /* needed == 0 means ALL*/
needed = i;
- return (satisfied == needed);
+ return (satisfied >= needed);
case TERM_TYPE_UINT8_AT_OFFSET:
--
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