Created
May 28, 2021 13:44
-
-
Save Bloofer/36cb64edba2e81e4f1e192ac75768db8 to your computer and use it in GitHub Desktop.
formatstring
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
| #include <stdio.h> | |
| void main(int argc, char **argv) | |
| { | |
| // This line is safe | |
| printf("%s\n", argv[1]); | |
| // This line is vulnerable | |
| printf(argv[1]); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment