[Forensics-changes] [yara] 60/407: Pass length of string properly.

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:28:10 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 bf6ce6a7043e16123e5458ecb930af9138666fd3
Author: Wesley Shields <wxs at atarininja.org>
Date:   Tue Sep 23 23:58:16 2014 -0400

    Pass length of string properly.
---
 libyara/object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libyara/object.c b/libyara/object.c
index baf5fd3..dc461a0 100644
--- a/libyara/object.c
+++ b/libyara/object.c
@@ -256,7 +256,7 @@ int yr_object_from_external_variable(
 
       case EXTERNAL_VARIABLE_TYPE_STRING:
       case EXTERNAL_VARIABLE_TYPE_MALLOC_STRING:
-        yr_object_set_string(external->string, 0, obj, NULL); // XXX
+        yr_object_set_string(external->string, strlen(external->string), obj, NULL);
         break;
     }
 

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