[Forensics-changes] [yara] 14/192: Fix issue #507
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:31:41 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 64930a6ea2678e7ce2d1374c984a661eb0d388fa
Author: plusvic <plusvic at gmail.com>
Date: Fri Aug 19 18:10:45 2016 +0200
Fix issue #507
---
libyara/parser.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libyara/parser.c b/libyara/parser.c
index 1123869..0ced96e 100644
--- a/libyara/parser.c
+++ b/libyara/parser.c
@@ -970,6 +970,14 @@ int yr_parser_reduce_import(
char* name;
+ if (module_name->length == 0)
+ {
+ compiler->last_result = ERROR_UNKNOWN_MODULE;
+ yr_compiler_set_error_extra_info(compiler, "");
+
+ return ERROR_UNKNOWN_MODULE;
+ }
+
module_structure = (YR_OBJECT*) yr_hash_table_lookup(
compiler->objects_table,
module_name->c_string,
--
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