This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] SH: Fix buffer overrun
- From: Joern RENNECKE <joern dot rennecke at st dot com>
- To: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Cc: gcc-patches at gcc dot gnu dot org, aoliva at redhat dot com
- Date: Thu, 09 Jun 2005 12:55:25 +0100
- Subject: Re: [PATCH] SH: Fix buffer overrun
- References: <20050608.134316.133898246.kkojima@rr.iij4u.or.jp>
Kaz Kojima wrote:
Hi,
On sh64-unknown-linux-gnu, the compilation of gcc.c-torture/
execute/20040709-2.c fails with segfault which seems to be
caused by buffer overrun. The appended patch fixes it.
Tested on sh64-unknown-linux-gnu with no new failures.
Ok for mainline?
OK. I calculate 21 characters as the maximum required length
(ten literal charactes, plus one for %d, plus one terminating zero,
plus three times a register name which might be up to three characters
in length), but I suppose there is no harm in rounding up to the next
multiple of four. If you want to make it 21, that's OK too.