Skip to content

Instantly share code, notes, and snippets.

@mkaraki
Last active May 18, 2023 01:56
Show Gist options
  • Save mkaraki/04f1710b623b2373b843cfe25aab0749 to your computer and use it in GitHub Desktop.
Save mkaraki/04f1710b623b2373b843cfe25aab0749 to your computer and use it in GitHub Desktop.
Force call Segmentation fault in C
void halt(void) {
*(unsigned char*)(0) = 0;
}
int main(void) {
halt();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment