[Forensics-changes] [yara] 109/368: Fix segfault when "matches" operator is used with undefined string

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:30:17 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 65a86115524c453f6bc4719781321ae99ac25b0f
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Tue Nov 3 18:36:04 2015 +0100

    Fix segfault when "matches" operator is used with undefined string
---
 libyara/exec.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libyara/exec.c b/libyara/exec.c
index 63f9b4e..110d08f 100644
--- a/libyara/exec.c
+++ b/libyara/exec.c
@@ -827,6 +827,9 @@ int yr_execute_code(
         pop(r2);
         pop(r1);
 
+        ensure_defined(r2);
+        ensure_defined(r1);
+
         if (r1.ss->length == 0)
         {
           r1.i = FALSE;

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