[Forensics-changes] [yara] 53/160: Fix bug where parsing (side effect in assert)
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:29:17 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.4.0
in repository yara.
commit 4aafc3e70bd5bf640512f4ff086596ccdf6ab811
Author: Shane Huntley <shuntley at google.com>
Date: Tue Mar 17 09:30:15 2015 -0700
Fix bug where parsing (side effect in assert)
---
libyara/object.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libyara/object.c b/libyara/object.c
index 65bda34..90fee2e 100644
--- a/libyara/object.c
+++ b/libyara/object.c
@@ -489,7 +489,8 @@ YR_OBJECT* _yr_object_lookup(
return NULL;
}
- assert(*p++ == ']');
+ assert(*p == ']');
+ p++;
assert(*p == '.' || *p == '\0');
switch(obj->type)
--
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