Date: Wed, 3 Jan 2018 19:28:13 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r327529 - head/sys/dev/ath Message-ID: <201801031928.w03JSDYL029435@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Wed Jan 3 19:28:13 2018 New Revision: 327529 URL: https://svnweb.freebsd.org/changeset/base/327529 Log: ath: fix possible memory disclosure in ioctl handler Submitted by: Domagoj Stolfa <domagoj.stolfa@gmail.com> MFC after: 1 week Modified: head/sys/dev/ath/if_ath_ioctl.c Modified: head/sys/dev/ath/if_ath_ioctl.c ============================================================================== --- head/sys/dev/ath/if_ath_ioctl.c Wed Jan 3 19:24:57 2018 (r327528) +++ head/sys/dev/ath/if_ath_ioctl.c Wed Jan 3 19:28:13 2018 (r327529) @@ -197,7 +197,7 @@ ath_ioctl_diag(struct ath_softc *sc, struct ath_diag * * pointer for us to use below in reclaiming the buffer; * may want to be more defensive. */ - outdata = malloc(outsize, M_TEMP, M_NOWAIT); + outdata = malloc(outsize, M_TEMP, M_NOWAIT | M_ZERO); if (outdata == NULL) { error = ENOMEM; goto bad;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801031928.w03JSDYL029435>