☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
lldb
/
test
/
API
/
lang
/
BoundsSafety
/
soft_trap
/
main.c
☽
☼
lldb/test/API/lang/BoundsSafety/soft_trap/main.c
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
#include <ptrcheck.h>
2
3
int main(void) {
4
int pad;
5
int buffer[] = {0, 1};
6
int pad2;
7
int tmp = buffer[2]; // access past upper bound
8
tmp = buffer[-1]; // access below lower bound
9
return 0;
10
}