The "huge positive" number being tested wasn't big enough. Now using a number that would
cause the heap to bleed into the stack.
This commit is contained in:
parent
b488b7dcea
commit
194f76ef70
@ -74,7 +74,7 @@ static
|
|||||||
int
|
int
|
||||||
sbrk_bigpos(void)
|
sbrk_bigpos(void)
|
||||||
{
|
{
|
||||||
return enforce_sbrk(4096*1024*256, "huge positive", ENOMEM);
|
return enforce_sbrk(1024*1024*1024 + (1024*1024*1024 - 4096*17), "huge positive", ENOMEM);
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
|
Loading…
x
Reference in New Issue
Block a user