diff options
author | Kostya Serebryany <kcc@google.com> | 2017-08-22 01:50:00 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2017-08-22 01:50:00 +0000 |
commit | 63b65394978b2a5e37988e275e07127cc558c11b (patch) | |
tree | c6315e65d2e59385e309be9d1d1ac7bdd45eb0ac /test | |
parent | 190938f453f63c379a3c07c0140a69d87ff812a8 (diff) |
[libFuzzer] fix the stack-depth initialization, add a lit test for DeepRecursionTest.cpp
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@311421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/fuzzer/deep-recursion.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/fuzzer/deep-recursion.test b/test/fuzzer/deep-recursion.test new file mode 100644 index 000000000..23b7af1df --- /dev/null +++ b/test/fuzzer/deep-recursion.test @@ -0,0 +1,4 @@ +# Test that we can find a stack overflow +RUN: %cpp_compiler -fsanitize-coverage=stack-depth %S/DeepRecursionTest.cpp -o %t +RUN: not %t -seed=1 -runs=100000000 2>&1 | FileCheck %s +CHECK: ERROR: libFuzzer: deadly signal |