Files
clang-p2996/lldb/test/API/functionalities/ubsan/basic/main.c
Jim Ingham 852a4bdb25 Change the Sanitizer report breakpoint callbacks to asynchronous.
The synchronous callbacks are not intended to start the target running
during the callback, and doing so is flakey.  This patch converts them
to being regular async callbacks, and adds some testing for sequential
reports that have caused problems in the field.

Differential Revision: https://reviews.llvm.org/D134927
2022-10-03 18:10:28 -07:00

17 lines
309 B
C

int main() {
int data[4];
int result = *(int *)(((char *)&data[0]) + 2); // align line
int *p = data + 5; // Index 5 out of bounds for type 'int [4]'
*p = data + 5;
*p = data + 5;
*p = data + 5;
*p = data + 5;
*p = data + 5;
*p = data + 5;
*p = data + 5;
*p = data + 5;
return 0;
}