svn commit: r202919 - head/sys/amd64/ia32
Edward Tomasz Napierala
trasz at FreeBSD.org
Sun Jan 24 12:13:38 UTC 2010
Author: trasz
Date: Sun Jan 24 12:13:38 2010
New Revision: 202919
URL: http://svn.freebsd.org/changeset/base/202919
Log:
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:
head/sys/amd64/ia32/ia32_reg.c
Modified: head/sys/amd64/ia32/ia32_reg.c
==============================================================================
--- head/sys/amd64/ia32/ia32_reg.c Sun Jan 24 11:54:32 2010 (r202918)
+++ head/sys/amd64/ia32/ia32_reg.c Sun Jan 24 12:13:38 2010 (r202919)
@@ -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-head
mailing list