summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/safestack/overflow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/safestack/overflow.c b/test/safestack/overflow.c
index 27436947e..62f865369 100644
--- a/test/safestack/overflow.c
+++ b/test/safestack/overflow.c
@@ -17,9 +17,13 @@ void fct(volatile int *buffer)
int main(int argc, char **argv)
{
+ int prebuf[7];
int value1 = 42;
int buffer[5];
int value2 = 42;
+ int postbuf[7];
+ fct(prebuf + 1);
+ fct(postbuf + 1);
fct(buffer);
return value1 != 42 || value2 != 42;
}