[Forensics-changes] [yara] 200/407: Improve DLL name validation by rejecting empty names

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:28:25 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 5efae9c425483e6563e4dd4e2323378e8eaeea79
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Thu Nov 6 19:05:17 2014 +0100

    Improve DLL name validation by rejecting empty names
---
 libyara/modules/pe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libyara/modules/pe.c b/libyara/modules/pe.c
index 32a8e16..5e2a6c1 100644
--- a/libyara/modules/pe.c
+++ b/libyara/modules/pe.c
@@ -737,7 +737,7 @@ int pe_valid_dll_name(
     }
   }
 
-  return l < n;
+  return (l > 0 && l < n);
 }
 
 //

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