forked from ConfZ/InsecureProgramming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfs2.c
More file actions
10 lines (8 loc) · 357 Bytes
/
fs2.c
File metadata and controls
10 lines (8 loc) · 357 Bytes
1
2
3
4
5
6
7
8
9
10
/* fs2.c *
* specially crafted to feed your brain by gera@core-sdi.com */
/* Can you tell me what's above the edge? */
int main(int argv,char **argc) {
char buf[256];
snprintf(buf,sizeof buf,"%s%c%c%hn",argc[1]);
snprintf(buf,sizeof buf,"%s%c%c%hn",argc[2]);
}