]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix iov[] size in SH register_dump()
authorTakashi Yoshii <takashi.yoshii.zj@renesas.com>
Wed, 26 May 2010 14:01:43 +0000 (07:01 -0700)
committerPetr Baudis <pasky@ucw.cz>
Mon, 31 May 2010 17:02:36 +0000 (19:02 +0200)
(cherry picked from commit d2f73151763c27173d9a771cea722380d7fc61c2)

ChangeLog
sysdeps/unix/sysv/linux/sh/sh4/register-dump.h

index a90e6ddbf5a981352cd69fe815fdc1db30816053..871a70c5a304c313a4a41239493b078ffb5accc1 100644 (file)
--- 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
index e3c9c0e6399009b142dd920140092834c7d25939..92df0858e1d02dbbf415eab715dbe1f5865a694a 100644 (file)
@@ -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) \