This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] SH: Fix buffer overrun


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]