summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/fuzzer/buffer-overflow-on-input.test
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/test/fuzzer/buffer-overflow-on-input.test')
-rw-r--r--compiler-rt/test/fuzzer/buffer-overflow-on-input.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/test/fuzzer/buffer-overflow-on-input.test b/compiler-rt/test/fuzzer/buffer-overflow-on-input.test
new file mode 100644
index 00000000000..6e40b75d70b
--- /dev/null
+++ b/compiler-rt/test/fuzzer/buffer-overflow-on-input.test
@@ -0,0 +1,5 @@
+RUN: %cpp_compiler %S/BufferOverflowOnInput.cpp -o %t-BufferOverflowOnInput
+
+RUN: not %run %t-BufferOverflowOnInput 2>&1 | FileCheck %s --check-prefix=OOB
+OOB: AddressSanitizer: heap-buffer-overflow
+OOB: is located 0 bytes to the right of 3-byte region
OpenPOWER on IntegriCloud