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

Jakub Jelinek jakub@redhat.com
Thu Sep 18 13:53:00 GMT 2014


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



More information about the Gcc-patches mailing list