Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2018 17:44:31 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r340920 - stable/11/sys/amd64/ia32
Message-ID:  <201811251744.wAPHiVfW078209@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Sun Nov 25 17:44:30 2018
New Revision: 340920
URL: https://svnweb.freebsd.org/changeset/base/340920

Log:
  MFC r340772:
  Clear unused bytes in ia32_osendsig().

Modified:
  stable/11/sys/amd64/ia32/ia32_signal.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/amd64/ia32/ia32_signal.c
==============================================================================
--- stable/11/sys/amd64/ia32/ia32_signal.c	Sun Nov 25 17:39:41 2018	(r340919)
+++ stable/11/sys/amd64/ia32/ia32_signal.c	Sun Nov 25 17:44:30 2018	(r340920)
@@ -363,12 +363,14 @@ ia32_osendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t
 	/* Build the argument list for the signal handler. */
 	sf.sf_signum = sig;
 	sf.sf_scp = (register_t)&fp->sf_siginfo.si_sc;
+	bzero(&sf.sf_siginfo, sizeof(sf.sf_siginfo));
 	if (SIGISMEMBER(psp->ps_siginfo, sig)) {
 		/* Signal handler installed with SA_SIGINFO. */
 		sf.sf_arg2 = (register_t)&fp->sf_siginfo;
 		sf.sf_siginfo.si_signo = sig;
 		sf.sf_siginfo.si_code = ksi->ksi_code;
 		sf.sf_ah = (uintptr_t)catcher;
+		sf.sf_addr = 0;
 	} else {
 		/* Old FreeBSD-style arguments. */
 		sf.sf_arg2 = ksi->ksi_code;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811251744.wAPHiVfW078209>