mirror of
https://github.com/ioacademy-jikim/debugging
synced 2025-06-08 00:16:11 +00:00
27 lines
363 B
C
27 lines
363 B
C
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
#define ZILLION 1000000
|
|
|
|
void foo ( void );
|
|
void bar ( void );
|
|
|
|
int main ( void )
|
|
{
|
|
int i;
|
|
char* a = malloc(ZILLION * sizeof(char));
|
|
for (i = 0; i <= ZILLION; i++) {
|
|
foo();
|
|
a[i] = 0;
|
|
bar();
|
|
}
|
|
a = (char*)177;
|
|
_exit(1);
|
|
}
|
|
|
|
void foo ( void ) { }
|
|
void bar ( void ) { }
|