diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-03-15 21:21:10 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-03-15 21:21:10 +0000 |
commit | 9699260c5286942a6e3544221100951ac0d88ebe (patch) | |
tree | 955d7823b7d48bd10761f77908d605c38b0f225b /sys | |
parent | e86fbf29e984f086d8c35f566f327804afd70527 (diff) |
In statclock(), fix local index type in the profiling code. Avoids
out-of-bounds array accesses on some platforms.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 27c7bb79b74..f1227743ac1 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_clock.c,v 1.65 2007/10/10 15:53:53 art Exp $ */ +/* $OpenBSD: kern_clock.c,v 1.66 2008/03/15 21:21:09 miod Exp $ */ /* $NetBSD: kern_clock.c,v 1.34 1996/06/09 04:51:03 briggs Exp $ */ /*- @@ -476,7 +476,7 @@ statclock(struct clockframe *frame) { #ifdef GPROF struct gmonparam *g; - int i; + u_long i; #endif struct cpu_info *ci = curcpu(); struct schedstate_percpu *spc = &ci->ci_schedstate; |