author | cu |
Tue, 03 Oct 2017 14:50:45 +0100 | |
changeset 543 | 9439027a0736 |
parent 200 | 17852f5397fd |
permissions | -rw-r--r-- |
200
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
1 |
void function(char *str) { |
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
2 |
char buffer[16]; |
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
3 |
|
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
4 |
strcpy(buffer,str); |
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
5 |
} |
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
6 |
|
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
7 |
void main() { |
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
8 |
char large_string[256]; |
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
9 |
int i; |
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
10 |
|
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
11 |
for( i = 0; i < 255; i++) |
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
12 |
large_string[i] = 'A'; |
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
13 |
|
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
14 |
function(large_string); |
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
15 |
} |
17852f5397fd
added original smashing for fun files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
16 |