[Forensics-changes] [yara] 276/407: Add offset to resources and switch to length.
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:28:36 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 4e4b784323e47af30cb0774fd1375609a7c88196
Author: Wesley Shields <wxs at atarininja.org>
Date: Mon Dec 29 22:15:31 2014 -0500
Add offset to resources and switch to length.
---
libyara/modules/pe.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/libyara/modules/pe.c b/libyara/modules/pe.c
index 37a6ec9..9bc7f9c 100644
--- a/libyara/modules/pe.c
+++ b/libyara/modules/pe.c
@@ -604,6 +604,12 @@ int pe_collect_resources(
return RESOURCE_CALLBACK_CONTINUE;
set_integer(
+ offset,
+ pe->object,
+ "resources[%i].offset",
+ pe->resources);
+
+ set_integer(
rsrc_type,
pe->object,
"resources[%i].type",
@@ -624,7 +630,7 @@ int pe_collect_resources(
set_integer(
rsrc_data->Size,
pe->object,
- "resources[%i].size",
+ "resources[%i].length",
pe->resources);
set_sized_string(
@@ -1533,10 +1539,11 @@ begin_declarations;
declare_integer("resource_major_version")
declare_integer("resource_minor_version")
begin_struct_array("resources");
+ declare_integer("offset")
declare_integer("type")
declare_integer("id")
declare_integer("language")
- declare_integer("size")
+ declare_integer("length")
declare_string("data")
end_struct_array("resources");
declare_integer("number_of_resources");
--
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