aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt/test/fuzzer/buffer-overflow-on-input.test
blob: ede62785a8f31c107c0b029df09bd36902ea3057 (plain)
1
2
3
4
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 after 3-byte region