From 97d68565c6b8a46240a3839ad674e0fb4516f9f4 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Thu, 19 Aug 2004 14:32:31 +0000 Subject: [PATCH] class.c (make_local_function_alias): Allocate extra space for 'L' in name buffer. 2004-08-19 Bryce McKinlay * class.c (make_local_function_alias): Allocate extra space for 'L' in name buffer. Reported by Thomas Neumann. From-SVN: r86251 --- gcc/java/ChangeLog | 5 +++++ gcc/java/class.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 4489f6a5630..b16f9f35252 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2004-08-19 Bryce McKinlay + + * class.c (make_local_function_alias): Allocate extra space for 'L' + in name buffer. Reported by Thomas Neumann. + 2004-08-19 Nathan Sidwell * parse.h (JAVA_RADIX10_FLAG): Rename to ... diff --git a/gcc/java/class.c b/gcc/java/class.c index d24e033d1b7..4781a61b9d7 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -1210,7 +1210,7 @@ make_local_function_alias (tree method) #ifdef ASM_OUTPUT_DEF tree alias; const char *method_name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (method)); - char *name = alloca (strlen (method_name) + 1); + char *name = alloca (strlen (method_name) + 2); char *buf = alloca (strlen (method_name) + 128); /* Prefix method_name with 'L' for the alias label. */ -- 2.30.2