changeset 207 | e74a45933842 |
child 208 | 204564b899a0 |
206:0105257429f3 | 207:e74a45933842 |
---|---|
1 #include <string.h> |
|
2 #include <stdio.h> |
|
3 #include <stdlib.h> |
|
4 |
|
5 void foo (char *bar) |
|
6 { |
|
7 unsigned long long my_long = 101010101; // in hex: \xB5\x4A\x05\x06 |
|
8 } |
|
9 |
|
10 int main (int argc, char **argv) |
|
11 { |
|
12 foo("my string is too long !!!!!"); // all is normal |
|
13 foo("my string is too long !!!!! \x15\xcd\x5b\x07"); // overwrites my_long |
|
14 return 0; |
|
15 } |
|
16 |