[Forensics-changes] [yara] 323/368: Add assertion to make sure that "chained_to" field is set
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.5.0
in repository yara.
commit f1e2ec9afc761eff21717ace0b8fb274869890cd
Author: plusvic <plusvic at gmail.com>
Date: Wed Jun 15 14:19:44 2016 +0200
Add assertion to make sure that "chained_to" field is set
---
libyara/scan.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libyara/scan.c b/libyara/scan.c
index 97490f5..8897ec3 100644
--- a/libyara/scan.c
+++ b/libyara/scan.c
@@ -536,6 +536,9 @@ int _yr_scan_verify_chained_string_match(
{
if (STRING_IS_CHAIN_TAIL(matching_string))
{
+ // Chain tails must be chained to some other string
+ assert(matching_string->chained_to != NULL);
+
match = matching_string->chained_to->unconfirmed_matches[tidx].head;
while (match != NULL)
--
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