diff options
author | Mattias Andrée <maandree@kth.se> | 2016-06-13 20:09:07 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-06-13 20:09:07 +0200 |
commit | d65f8ac2ef0c555baf32067fc8bd95b7c1d62712 (patch) | |
tree | 780156c7dc6a4c7c3dc9bb9b5d24eec2e1bd69d6 /src/alloca | |
parent | explicit_bzero: set all bits to 1 before setting all bits to 0 (diff) | |
download | slibc-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>
Diffstat (limited to 'src/alloca')
-rw-r--r-- | src/alloca/needstack.c | 3 |
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); |