File: stack_overflow.c

package info (click to toggle)
python-ptrace 0.9.9-0.3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 808 kB
  • sloc: python: 10,167; ansic: 263; makefile: 164
file content (13 lines) | stat: -rw-r--r-- 170 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
char toto()
{
    char buffer[4096];
    buffer[0] = 0;
    toto();
    return buffer[0] + buffer[sizeof(buffer)-1];
}

int main()
{
    char c = toto();
    return c;
}