1 | void recursive_function(int i) |
---|---|
2 | { |
3 | if (i < 10) |
4 | { |
5 | recursive_function(i: i + 1); |
6 | } |
7 | else |
8 | { |
9 | char *null=0; |
10 | *null = 0; // Crash here. |
11 | } |
12 | } |
13 | |
14 | int main(int argc, char *argv[]) |
15 | { |
16 | recursive_function(i: 0); |
17 | return 0; |
18 | } |
19 | |
20 |