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:
Scott Haseley 2016-04-06 13:33:28 -04:00
parent b488b7dcea
commit 194f76ef70

View File

@ -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