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]

[committed] Fix up pr59594.c testcase (PR testsuite/63292)


Hi!

This testsuite contains a buffer overflow, I've fixed it thusly,
tested that it still fails with the fix reverted and works with current
trunk and committed as obvious to 4.9 and trunk.

2014-09-18  Jakub Jelinek  <jakub@redhat.com>

	PR testsuite/63292
	* gcc.dg/vect/pr59594.c (b): Increase size to N + 2 elements.

--- gcc/testsuite/gcc.dg/vect/pr59594.c.jj	2014-01-29 10:26:34.000000000 +0100
+++ gcc/testsuite/gcc.dg/vect/pr59594.c	2014-09-18 15:42:38.628739317 +0200
@@ -3,7 +3,7 @@
 #include "tree-vect.h"
 
 #define N 1024
-int b[N + 1];
+int b[N + 2];
 
 int
 main ()

	Jakub


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