














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















1
2
4
5
0589 if (to_stdout && !test && !list && (!decompress || ... 0590 SET_BINARY_MODE(fileno(stdout)); 0591 } 0592 while (optind < argc) { 0593 treat_file(argv[optind++]);
7
0704 local void treat_file(iname) 0705 char *iname; 0706 { ... 0716 if (get_istat(iname, &istat) != OK) return ;
0997 local int get_istat(iname, sbuf) 0998 char *iname; 0999 struct stat *sbuf; 1000 { ... 1009 strcpy(ifname, iname);
gzip.c:
gzip.c:
gzip.c:
Need to have a model of strcpy Docsity.com
A Glimpse of What Analysis is Needed
8
a = 2; *p = 3; … is the value of a still 2?
10
13
query = “SELECT Username, UserID, Password FROM Users WHERE Username = 'bob' AND Password = ‘********‘”
submit
14
query = “SELECT Username, UserID, Password FROM Users WHERE Username = 'bob‘-- ‘AND Password = ‘ ‘”
submit
16
17
SQL Injection
Buffer overrun HTML Injection Information disclosure
Code execution
Path traversal Format string Integer overlow HTTP response splitting
Other input validation
Cross-site scripting
19
20
Stack Heap