From 194f76ef70dd5765fdd1e33a22f797039c777023 Mon Sep 17 00:00:00 2001 From: Scott Haseley Date: Wed, 6 Apr 2016 13:33:28 -0400 Subject: [PATCH] The "huge positive" number being tested wasn't big enough. Now using a number that would cause the heap to bleed into the stack. --- userland/testbin/badcall/bad_sbrk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userland/testbin/badcall/bad_sbrk.c b/userland/testbin/badcall/bad_sbrk.c index 8849db8..dc4f351 100644 --- a/userland/testbin/badcall/bad_sbrk.c +++ b/userland/testbin/badcall/bad_sbrk.c @@ -74,7 +74,7 @@ static int 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