Debian Codegraph @

lldb/test/API/lang/BoundsSafety/soft_trap/main.c

raw
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 }