Last active
May 18, 2023 01:56
-
-
Save mkaraki/04f1710b623b2373b843cfe25aab0749 to your computer and use it in GitHub Desktop.
Force call Segmentation fault in C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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