2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>

* config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
	(rs6000_elf_asm_out_destructor): increase size of buf to avoid
	possible overflow.

From-SVN: r240852
This commit is contained in:
Aaron Sawdey 2016-10-07 04:12:00 +00:00 committed by Aaron Sawdey
parent 4ee822df35
commit c9616e9af9
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
* config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
(rs6000_elf_asm_out_destructor): increase size of buf to avoid
possible overflow.
2016-10-06 Andrew Pinski <apinski@cavium.com>
* config/aarch64/aarch64-cores.def: Add a comment before each

View File

@ -34166,7 +34166,7 @@ static void
rs6000_elf_asm_out_constructor (rtx symbol, int priority)
{
const char *section = ".ctors";
char buf[16];
char buf[18];
if (priority != DEFAULT_INIT_PRIORITY)
{
@ -34197,7 +34197,7 @@ static void
rs6000_elf_asm_out_destructor (rtx symbol, int priority)
{
const char *section = ".dtors";
char buf[16];
char buf[18];
if (priority != DEFAULT_INIT_PRIORITY)
{