[Forensics-changes] [yara] 260/407: Fix incorrect cast.

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:28:32 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 181f20630397fbf67c1f1e5efb54fc7a8c5ee121
Author: Wesley Shields <wxs at atarininja.org>
Date:   Tue Dec 23 15:20:57 2014 -0500

    Fix incorrect cast.
---
 libyara/object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libyara/object.c b/libyara/object.c
index bfe8298..cb69dd5 100644
--- a/libyara/object.c
+++ b/libyara/object.c
@@ -106,7 +106,7 @@ int yr_object_create(
       ((YR_OBJECT_INTEGER*) obj)->value = UNDEFINED;
       break;
     case OBJECT_TYPE_DOUBLE:
-      ((YR_OBJECT_INTEGER*) obj)->value = UNDEFINED;
+      ((YR_OBJECT_DOUBLE*) obj)->value = UNDEFINED;
       break;
     case OBJECT_TYPE_STRING:
       ((YR_OBJECT_STRING*) obj)->value = NULL;

-- 
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