Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2018 17:39:41 +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-12@freebsd.org
Subject:   svn commit: r340919 - stable/12/sys/amd64/ia32
Message-ID:  <201811251739.wAPHdfDA073426@repo.freebsd.org>

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

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

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

Modified: stable/12/sys/amd64/ia32/ia32_signal.c
==============================================================================
--- stable/12/sys/amd64/ia32/ia32_signal.c	Sun Nov 25 11:15:01 2018	(r340918)
+++ stable/12/sys/amd64/ia32/ia32_signal.c	Sun Nov 25 17:39:41 2018	(r340919)
@@ -364,12 +364,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?201811251739.wAPHdfDA073426>