1
2
3#include <stdio.h>
4#include <stdlib.h>
5#include <unistd.h>
6
7#define ZILLION 1000000
8
9void foo ( void );
10void bar ( void );
11
12int main ( void )
13{
14   int i;
15   char* a = malloc(ZILLION * sizeof(char));
16   for (i = 0; i <= ZILLION; i++) {
17      foo();
18      a[i] = 0;
19      bar();
20   }
21   a = (char*)177;
22   _exit(1);
23}
24
25void foo ( void ) { }
26void bar ( void ) { }
27