[Forensics-changes] [yara] 100/368: Fixed undefined behaviour.

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:30:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.5.0
in repository yara.

commit bc1247a8f815b6ab141f2e2a1669734a0dbbdd01
Author: Mario Suvajac <msuvajac at gmail.com>
Date:   Thu Oct 29 08:22:54 2015 +0100

    Fixed undefined behaviour.
---
 libyara/object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libyara/object.c b/libyara/object.c
index 634a6a3..f96abcd 100644
--- a/libyara/object.c
+++ b/libyara/object.c
@@ -1109,7 +1109,7 @@ YR_API void yr_object_print_data(
         {
           char c = ((YR_OBJECT_STRING*) object)->value->c_string[l];
 
-          if (isprint(c))
+          if (isprint((unsigned char) c))
             printf("%c", c);
           else
             printf("\\x%02x", (unsigned char) c);

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