[Forensics-changes] [yara] 357/368: Add missing typecasts

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:30:58 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 e787b5289bcb1a54379b24c76b0e92c7d84e3376
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Sat Jul 2 15:57:49 2016 +0200

    Add missing typecasts
---
 libyara/modules/hash.c | 2 +-
 libyara/modules/pe.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libyara/modules/hash.c b/libyara/modules/hash.c
index c4a8ad3..b62cc98 100644
--- a/libyara/modules/hash.c
+++ b/libyara/modules/hash.c
@@ -78,7 +78,7 @@ char* get_from_cache(
   key.offset = offset;
   key.length = length;
 
-  return yr_hash_table_lookup_raw_key(
+  return (char*) yr_hash_table_lookup_raw_key(
       hash_table,
       &key,
       sizeof(key),
diff --git a/libyara/modules/pe.c b/libyara/modules/pe.c
index f391049..0529003 100644
--- a/libyara/modules/pe.c
+++ b/libyara/modules/pe.c
@@ -1304,7 +1304,7 @@ void pe_parse_certificates(
           // space to hold it, and use i2d_ASN1_INTEGER() one last time to
           // hold it in the allocated buffer.
 
-          unsigned char* serial_der = yr_malloc(bytes);
+          unsigned char* serial_der = (unsigned char*) yr_malloc(bytes);
 
           if (serial_der != 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