[Forensics-changes] [yara] 334/368: Fix warnings
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:55 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 dc0b37af418c335d09cf95d5362731c193b03827
Author: plusvic <plusvic at gmail.com>
Date: Mon Jun 20 12:27:27 2016 +0200
Fix warnings
---
libyara/lexer.l | 2 +-
libyara/modules/pe.c | 2 +-
libyara/object.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libyara/lexer.l b/libyara/lexer.l
index 7759c47..512e923 100644
--- a/libyara/lexer.l
+++ b/libyara/lexer.l
@@ -76,7 +76,7 @@ with noyywrap then we can remove this pragma.
} \
else \
{ \
- str->length = (str_len); \
+ str->length = (uint32_t) (str_len); \
str->flags = 0; \
} \
diff --git a/libyara/modules/pe.c b/libyara/modules/pe.c
index 1ac76f1..3edbb1f 100644
--- a/libyara/modules/pe.c
+++ b/libyara/modules/pe.c
@@ -445,7 +445,7 @@ int64_t pe_rva_to_offset(
{
section_rva = 0;
section_offset = 0;
- section_raw_size = pe->data_size;
+ section_raw_size = (DWORD) pe->data_size;
}
// Many sections, have a raw (on disk) size smaller than their in-memory size.
diff --git a/libyara/object.c b/libyara/object.c
index c8348f6..f2e5639 100644
--- a/libyara/object.c
+++ b/libyara/object.c
@@ -1058,7 +1058,7 @@ int yr_object_set_string(
if (string_obj->value == NULL)
return ERROR_INSUFICIENT_MEMORY;
- string_obj->value->length = len;
+ string_obj->value->length = (uint32_t) len;
string_obj->value->flags = 0;
memcpy(string_obj->value->c_string, value, len);
--
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