2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
authorAaron Sawdey <acsawdey@linux.vnet.ibm.com>
Fri, 7 Oct 2016 04:12:00 +0000 (04:12 +0000)
committerAaron Sawdey <acsawdey@gcc.gnu.org>
Fri, 7 Oct 2016 04:12:00 +0000 (23:12 -0500)
* 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
gcc/config/rs6000/rs6000.c

index 9b581c3..0e8fcfd 100644 (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
index e93688a..e7e551d 100644 (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)
     {