[Forensics-changes] [yara] 162/407: Fix warning caused by comparison between integer and pointer

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:28:21 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 f901baaaf09baa6a749b21a350c8c424c6c7d4eb
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Thu Oct 30 11:50:39 2014 +0100

    Fix warning caused by comparison between integer and pointer
---
 libyara/exec.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libyara/exec.c b/libyara/exec.c
index 9421667..8c100bb 100644
--- a/libyara/exec.c
+++ b/libyara/exec.c
@@ -535,14 +535,13 @@ int yr_execute_code(
 
         pop(r2);
 
-        function = UINT64_TO_PTR(YR_OBJECT_FUNCTION*, r2);
-
-        if (IS_UNDEFINED(function))
+        if (IS_UNDEFINED(r2))
         {
           push(UNDEFINED);
           break;
         }
 
+        function = UINT64_TO_PTR(YR_OBJECT_FUNCTION*, r2);
         result = ERROR_INTERNAL_FATAL_ERROR;
 
         for (i = 0; i < MAX_OVERLOADED_FUNCTIONS; i++)

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