1
0
mirror of https://github.com/ioacademy-jikim/debugging synced 2025-06-08 08:26:14 +00:00
2015-12-13 22:34:58 +09:00

15 lines
245 B
C

#include <unistd.h>
volatile void *ptr;
/* The default size of the brk segment is 8 MB.
Request more than that in a sequence of requests */
int main()
{
int i;
for (i=0; i < 10; ++i) {
ptr = sbrk(1024*1024);
}
return 0;
}