summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2012-08-24 10:00:56 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2012-08-24 10:00:56 +0000
commit9b74ae9908c1b2306bae5e7f7ab9ae9ac40d912d (patch)
tree4edc8b2371f7ee0892586e01262598367d4d14ea /sys/arch/sparc64
parent050df149c5be5549575ae43cb7d2e4a5e7ed9a6a (diff)
don't read past the end of an array when dumping the stack.
same problem/fix as sparc.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c
index d037f84c91f..042cbef9c24 100644
--- a/sys/arch/sparc64/sparc64/machdep.c
+++ b/sys/arch/sparc64/sparc64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.139 2012/08/22 13:33:33 okan Exp $ */
+/* $OpenBSD: machdep.c,v 1.140 2012/08/24 10:00:55 jsg Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
@@ -941,11 +941,10 @@ stackdump()
fp = (struct frame32 *)(u_long)fp64->fr_fp;
} else {
/* 32-bit frame */
- printf(" pc = %x args = (%x, %x, %x, %x, %x, %x, %x) "
+ printf(" pc = %x args = (%x, %x, %x, %x, %x, %x) "
"fp = %x\n", fp->fr_pc, fp->fr_arg[0],
fp->fr_arg[1], fp->fr_arg[2], fp->fr_arg[3],
- fp->fr_arg[4], fp->fr_arg[5], fp->fr_arg[6],
- fp->fr_fp);
+ fp->fr_arg[4], fp->fr_arg[5], fp->fr_fp);
fp = (struct frame32*)(u_long)(u_short)fp->fr_fp;
}
}