aboutsummaryrefslogtreecommitdiff
path: root/test/safestack
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-01-13 20:02:03 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-01-13 20:02:03 +0000
commitfc411a9eb44c912f867b49a08d4ea98be89681d9 (patch)
tree83d2530c824b866f040519d74b68316c571e0986 /test/safestack
parent4e3a0d5a8f750527f2f433019967f8f8214c558a (diff)
downloadsrc-fc411a9eb44c912f867b49a08d4ea98be89681d9.tar.gz
src-fc411a9eb44c912f867b49a08d4ea98be89681d9.zip
Vendor import of compiler-rt trunk r257626:vendor/compiler-rt/compiler-rt-trunk-r257626
Notes
Notes: svn path=/vendor/compiler-rt/dist/; revision=293842 svn path=/vendor/compiler-rt/compiler-rt-trunk-r257626/; revision=293843; tag=vendor/compiler-rt/compiler-rt-trunk-r257626
Diffstat (limited to 'test/safestack')
-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 27436947e49c..62f86536916e 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;
}