Skip to content

Commit

Permalink
Fix iov[] size in SH register_dump()
Browse files Browse the repository at this point in the history
(cherry picked from commit d2f7315)
  • Loading branch information
Takashi Yoshii authored and Andreas Schwab committed Jun 1, 2010
1 parent a0ba5de commit f29cabc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions sysdeps/unix/sysv/linux/sh/sh4/register-dump.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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) \
Expand Down

0 comments on commit f29cabc

Please sign in to comment.