This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix up pr59594.c testcase (PR testsuite/63292)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 18 Sep 2014 15:53:48 +0200
- Subject: [committed] Fix up pr59594.c testcase (PR testsuite/63292)
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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