Sign in
nest-open-source
/
nest-cam
/
4320010
/
valgrind
/
23fb368103f9471ec1defb2c0a3ea5d30c8e81fe
/
.
/
valgrind
/
none
/
tests
/
linux
/
brk-overflow2.c
blob: 1a220f81d6cb725fdee07b66e865e7ad99951e56 [
file
] [
log
] [
blame
]
#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
;
}