-
-
Save YauzZ/7a915928a537f670a349bffcadb5a94c to your computer and use it in GitHub Desktop.
直接在C代码中造成野指针错误的代码
This file contains 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
// 直接崩溃 | |
int *volatile nptr = 0; | |
int c = *nptr; | |
printf("%d", c); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment