[Forensics-changes] [yara] 110/407: Fix misplaced constants
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:28:15 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 3ea3db2f730ec0a33681015833496cd82970bef9
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Tue Oct 14 17:49:17 2014 +0200
Fix misplaced constants
---
libyara/modules/pe.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libyara/modules/pe.c b/libyara/modules/pe.c
index efdfb22..5629e16 100644
--- a/libyara/modules/pe.c
+++ b/libyara/modules/pe.c
@@ -2646,7 +2646,7 @@ define_function(imphash)
sprintf(digest_ascii + (i * 2), "%02x", digest[i]);
}
- digest_ascii[SHA256_DIGEST_LENGTH * 2] = '\0';
+ digest_ascii[MD5_DIGEST_LENGTH * 2] = '\0';
return_string(digest_ascii);
}
@@ -2675,7 +2675,7 @@ define_function(richhash)
sprintf(digest_ascii + (i * 2), "%02x", digest[i]);
}
- digest_ascii[MD5_DIGEST_LENGTH * 2] = '\0';
+ digest_ascii[SHA256_DIGEST_LENGTH * 2] = '\0';
return_string(digest_ascii);
}
--
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