aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-06-13 20:09:07 +0200
committerMattias Andrée <maandree@kth.se>2016-06-13 20:09:07 +0200
commitd65f8ac2ef0c555baf32067fc8bd95b7c1d62712 (patch)
tree780156c7dc6a4c7c3dc9bb9b5d24eec2e1bd69d6
parentexplicit_bzero: set all bits to 1 before setting all bits to 0 (diff)
downloadslibc-d65f8ac2ef0c555baf32067fc8bd95b7c1d62712.tar.gz
slibc-d65f8ac2ef0c555baf32067fc8bd95b7c1d62712.tar.bz2
slibc-d65f8ac2ef0c555baf32067fc8bd95b7c1d62712.tar.xz
stack_will_overflow: we could fork
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--src/alloca/needstack.c3
1 files changed, 3 insertions, 0 deletions
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);