brintos

brintos / llvm-project-archived public Read only

0
0
Text · 365 B · 03c6674 Raw
12 lines · c
1#include <stdlib.h>2int 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 most7   // 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 here11}12