[Forensics-changes] [yara] 270/368: Fix use of uninitialized pointer

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:30:47 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 430b5b5b306306bcbcc8079928b8e2e9ac70fd82
Author: plusvic <plusvic at gmail.com>
Date:   Tue May 10 15:30:06 2016 +0200

    Fix use of uninitialized pointer
---
 libyara/exception.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libyara/exception.h b/libyara/exception.h
index c1075e4..97e11f8 100644
--- a/libyara/exception.h
+++ b/libyara/exception.h
@@ -89,6 +89,7 @@ typedef struct sigaction sa;
     sigset_t oldmask;                                           \
     act.sa_handler = exception_handler;                         \
     act.sa_flags = 0; /* SA_ONSTACK? */                         \
+    sigemptyset(&oldmask);                                      \
     sigemptyset(&act.sa_mask);                                  \
     pthread_sigmask(SIG_SETMASK, &act.sa_mask, &oldmask);       \
     sigaction(SIGBUS, &act, &oldact);                           \

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