From d65f8ac2ef0c555baf32067fc8bd95b7c1d62712 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 13 Jun 2016 20:09:07 +0200 Subject: stack_will_overflow: we could fork MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/alloca/needstack.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/alloca/needstack.c b/src/alloca/needstack.c index c1b8f01..91a2f73 100644 --- a/src/alloca/needstack.c +++ b/src/alloca/needstack.c @@ -39,6 +39,9 @@ int stack_will_overflow(intptr_t n) { void* prev_brk; + /* TODO an alternative way is to fork and let the child + * do the test. */ + /* TODO This function shall block calls to brk and sbrk. */ prev_brk = sbrk(n); -- cgit v1.2.3-70-g09d2