[glib] gmain: Fix use of uninitialized memory in sigaction structure
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gmain: Fix use of uninitialized memory in sigaction structure
- Date: Mon, 11 Nov 2013 06:42:43 +0000 (UTC)
commit 81d0ebe29ccd852e969acda7394969e3f13eb136
Author: Stef Walter <stefw gnome org>
Date: Thu Oct 31 11:43:14 2013 +0100
gmain: Fix use of uninitialized memory in sigaction structure
https://bugzilla.gnome.org/show_bug.cgi?id=711754
glib/gmain.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glib/gmain.c b/glib/gmain.c
index 9c37bb2..608c1a5 100644
--- a/glib/gmain.c
+++ b/glib/gmain.c
@@ -4978,6 +4978,7 @@ unref_unix_signal_handler_unlocked (int signum)
if (unix_signal_refcount[signum] == 0)
{
struct sigaction action;
+ memset (&action, 0, sizeof (action));
action.sa_handler = SIG_DFL;
sigemptyset (&action.sa_mask);
sigaction (signum, &action, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]