From c9616e9af9b1b7e8d9fa2c3ce5688fa98fcb6504 Mon Sep 17 00:00:00 2001 From: Aaron Sawdey Date: Fri, 7 Oct 2016 04:12:00 +0000 Subject: [PATCH] 2016-10-06 Aaron Sawdey * 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/rs6000.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9b581c348fa..0e8fcfd8a80 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-10-06 Aaron Sawdey + + * 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 * config/aarch64/aarch64-cores.def: Add a comment before each diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index e93688a446e..e7e551daf4a 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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) { -- 2.30.2