[Forensics-changes] [yara] 325/407: Fix bug while handling dictionary objects
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:28:41 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 b0192277a0f957dc6b34cb4bb136cf470f529c42
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Wed Jan 7 17:04:04 2015 +0100
Fix bug while handling dictionary objects
---
libyara/object.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libyara/object.c b/libyara/object.c
index eb30020..4c341ba 100644
--- a/libyara/object.c
+++ b/libyara/object.c
@@ -101,7 +101,7 @@ int yr_object_create(
break;
case OBJECT_TYPE_DICTIONARY:
((YR_OBJECT_DICTIONARY*) obj)->items = NULL;
- ((YR_OBJECT_ARRAY*) obj)->prototype_item = NULL;
+ ((YR_OBJECT_DICTIONARY*) obj)->prototype_item = NULL;
break;
case OBJECT_TYPE_INTEGER:
((YR_OBJECT_INTEGER*) obj)->value = UNDEFINED;
@@ -815,6 +815,7 @@ int yr_object_dict_set_item(
dict->items->objects[dict->items->used].obj = item;
dict->items->used++;
+ dict->items->free++;
return ERROR_SUCCESS;
}
--
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