From 219fb0488994a289f1087f7b3da18789e068da12 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sat, 31 Dec 2011 14:55:23 +0000 Subject: Import compiler-rt r147390. --- lib/asan/tests/stack-overflow.cc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lib/asan/tests/stack-overflow.cc (limited to 'lib/asan/tests/stack-overflow.cc') diff --git a/lib/asan/tests/stack-overflow.cc b/lib/asan/tests/stack-overflow.cc new file mode 100644 index 000000000000..dd86aa32514a --- /dev/null +++ b/lib/asan/tests/stack-overflow.cc @@ -0,0 +1,7 @@ +#include +int main(int argc, char **argv) { + char x[10]; + memset(x, 0, 10); + int res = x[argc * 10]; // BOOOM + return res; +} -- cgit v1.2.3