[Forensics-changes] [yara] 12/160: Minor indentation changes

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:29:12 UTC 2017


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

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

commit 316e5f2dd8912659981cd533177296cae08bf716
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Thu Feb 12 10:21:06 2015 +0100

    Minor indentation changes
---
 libyara/modules/pe.c | 15 ++++++++-------
 libyara/strutils.c   |  1 +
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/libyara/modules/pe.c b/libyara/modules/pe.c
index be445bf..251de28 100644
--- a/libyara/modules/pe.c
+++ b/libyara/modules/pe.c
@@ -628,7 +628,7 @@ void pe_parse_version_info(
   string_file_info = ADD_OFFSET(version_info, sizeof(VERSION_INFO) + 86);
 
   while(fits_in_pe(pe, string_file_info->Key, sizeof("StringFileInfo") * 2) &&
-      strcmp_w(string_file_info->Key, "StringFileInfo") == 0)
+        strcmp_w(string_file_info->Key, "StringFileInfo") == 0)
   {
     PVERSION_INFO string_table = ADD_OFFSET(
         string_file_info,
@@ -639,8 +639,8 @@ void pe_parse_version_info(
         string_file_info->Length);
 
     while (struct_fits_in_pe(pe, string_table, VERSION_INFO) &&
-        string_table->Length != 0 &&
-        string_table < string_file_info)
+           string_table->Length != 0 &&
+           string_table < string_file_info)
     {
       PVERSION_INFO string = ADD_OFFSET(
           string_table,
@@ -660,10 +660,11 @@ void pe_parse_version_info(
             sizeof(VERSION_INFO) + 2 * (strnlen_w(string->Key,
                 available_space(pe, string->Key)) + 1));
 
-        strlcpy_w(key, string->Key, min(sizeof(key),
-            available_space(pe, string->Key)));
-        strlcpy_w(value, string_value, min(sizeof(value),
-            available_space(pe, string_value)));
+        strlcpy_w(key, string->Key,
+            min(sizeof(key), available_space(pe, string->Key)));
+
+        strlcpy_w(value, string_value,
+            min(sizeof(value), available_space(pe, string_value)));
 
         set_string(value, pe->object, "version_info[%s]", key);
 
diff --git a/libyara/strutils.c b/libyara/strutils.c
index f456874..0d047e2 100644
--- a/libyara/strutils.c
+++ b/libyara/strutils.c
@@ -181,6 +181,7 @@ int strcmp_w(
   }
 
   // Higher-order byte of wide char non-zero? -> w_str is larger than str
+
   if (w_str[1] != 0)
     return 1;
 

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