repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
drd/tests/swapcontext: Improve the portability of this test further
[valgrind.git]
/
none
/
tests
/
linux
/
brk-overflow1.c
blob
187751aeddd237435d70ff243a6dd500e030d9de
1
#include <unistd.h>
2
3
volatile
void
*
ptr
;
4
5
/* The default size of the brk segment is 8 MB.
6
Request more than that in a single request. */
7
int
main
()
8
{
9
ptr
=
sbrk
(
9
*
1024
*
1024
);
10
11
return
0
;
12
}