1 | #include <stdlib.h> |
---|---|
2 | int main () |
3 | { |
4 | const char *empty_string = ""; |
5 | const char *one_letter_string = "1"; |
6 | // This expects that lower 4k of memory will be mapped unreadable, which most |
7 | // OSs do (to catch null pointer dereferences). |
8 | const char *invalid_memory_string = (char*)0x100; |
9 | |
10 | return empty_string[0] + one_letter_string[0]; // breakpoint here |
11 | } |
12 |