svn commit: r205731 - stable/8/sys/amd64/ia32

Edward Tomasz Napierala trasz at FreeBSD.org
Sat Mar 27 14:58:29 UTC 2010


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);
 }
 


More information about the svn-src-stable-8 mailing list