[Forensics-changes] [yara] 86/415: Fix bug in intXX and uintXX functions
Hilko Bengen
bengen at moszumanska.debian.org
Thu Apr 3 05:42:48 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 c2bb3f7de2bdaebf20d831f29e23933bebbd7912
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Mon Mar 21 22:38:19 2011 +0000
Fix bug in intXX and uintXX functions
---
libyara/eval.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libyara/eval.c b/libyara/eval.c
index 719897e..2d273da 100644
--- a/libyara/eval.c
+++ b/libyara/eval.c
@@ -21,7 +21,7 @@ GNU General Public License for more details.
#include <string.h>
-#define UNDEFINED 0xBADBADBADBADLL
+#define UNDEFINED 0xFABADAFABADALL
#define IS_UNDEFINED(x) ((x) == UNDEFINED)
typedef unsigned char uint8;
@@ -35,7 +35,7 @@ typedef int int32;
{ \
while (block != NULL) \
{ \
- if (offset >= block->base && offset < block->base + block->size - (tsize - 1)) \
+ if (offset >= block->base && offset < block->base + block->size - (tsize/8 - 1)) \
{ \
return *((type##tsize *) (block->data + offset - block->base)); \
} \
--
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