about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTakashi Yoshii <takashi.yoshii.zj@renesas.com>2010-05-26 07:01:43 -0700
committerAndreas Schwab <schwab@redhat.com>2010-06-01 09:54:07 +0200
commitf29cabcd71c9ec83b674844f75dbaa2dab952979 (patch)
treedc0ed90b3cf1298c01545c798a3edd1bbd14689f
parenta0ba5dee69157acbf5d4093544cdec24ec386164 (diff)
downloadglibc-f29cabcd71c9ec83b674844f75dbaa2dab952979.tar.gz
glibc-f29cabcd71c9ec83b674844f75dbaa2dab952979.tar.xz
glibc-f29cabcd71c9ec83b674844f75dbaa2dab952979.zip
Fix iov[] size in SH register_dump()
(cherry picked from commit d2f73151763c27173d9a771cea722380d7fc61c2)
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/unix/sysv/linux/sh/sh4/register-dump.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 55f1145d19..bc58d931b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
+
+	* sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
+
 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
 
 	* elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
diff --git a/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h b/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h
index e3c9c0e639..92df0858e1 100644
--- a/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h
+++ b/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h
@@ -1,5 +1,5 @@
 /* Dump registers.
-   Copyright (C) 1999, 2000, 2009 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2009, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -58,7 +58,7 @@ register_dump (int fd, struct sigcontext *ctx)
 {
   char regs[22][8];
   char fpregs[34][8];
-  struct iovec iov[112];
+  struct iovec iov[22 * 2 + 34 * 2 + 2];
   size_t nr = 0;
 
 #define ADD_STRING(str) \