[Forensics-changes] [yara] 133/192: Add missing NULL check, causing crash on truncated samples. (#589)
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:31:56 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.6.0
in repository yara.
commit dfe66137f3ec6fc6a0b04d96be8dd06b57930be8
Author: Wesley Shields <wxs at atarininja.org>
Date: Fri Mar 17 05:11:54 2017 -0400
Add missing NULL check, causing crash on truncated samples. (#589)
---
libyara/modules/dotnet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libyara/modules/dotnet.c b/libyara/modules/dotnet.c
index 13f4c20..6fbc74c 100644
--- a/libyara/modules/dotnet.c
+++ b/libyara/modules/dotnet.c
@@ -790,7 +790,7 @@ void dotnet_parse_tilde_2(
pe, string_offset, *(WORD*) typeref_row);
}
- if (strncmp(name, "GuidAttribute", 13) != 0)
+ if (name != NULL && strncmp(name, "GuidAttribute", 13) != 0)
{
row_ptr += row_size;
continue;
--
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