Date: Sat, 27 Mar 2010 14:58:28 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r205731 - stable/8/sys/amd64/ia32 Message-ID: <201003271458.o2REwSra017399@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Sat Mar 27 14:58:28 2010 New Revision: 205731 URL: http://svn.freebsd.org/changeset/base/205731 Log: MFC r202919: Fix array overflow. This routine is only called from procfs, which is not mounted by default, and I've been unable to trigger a panic without this fix applied anyway. Reviewed by: kib, cperciva Modified: stable/8/sys/amd64/ia32/ia32_reg.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) stable/8/sys/dev/xen/xenpci/ (props changed) Modified: stable/8/sys/amd64/ia32/ia32_reg.c ============================================================================== --- stable/8/sys/amd64/ia32/ia32_reg.c Sat Mar 27 14:43:40 2010 (r205730) +++ stable/8/sys/amd64/ia32/ia32_reg.c Sat Mar 27 14:58:28 2010 (r205731) @@ -213,8 +213,6 @@ fill_dbregs32(struct thread *td, struct err = fill_dbregs(td, &dr); for (i = 0; i < 8; i++) regs->dr[i] = dr.dr[i]; - for (i = 8; i < 16; i++) - regs->dr[i] = 0; return (err); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003271458.o2REwSra017399>