diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-07-23 20:25:22 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-07-23 20:25:22 +0200 |
commit | be8183701a4943d07bbc51d16952e9c02e7ef2c1 (patch) | |
tree | f064b1d199adde81ab952d0a8e06e1e24444fb07 /newlib/libc/sys/rtems/cpusetalloc.c | |
parent | 1e80973f288a6285f73b4565e7c4fcee12713b72 (diff) | |
download | cygnal-be8183701a4943d07bbc51d16952e9c02e7ef2c1.tar.gz cygnal-be8183701a4943d07bbc51d16952e9c02e7ef2c1.tar.bz2 cygnal-be8183701a4943d07bbc51d16952e9c02e7ef2c1.zip |
Fix potential buffer overflow in makecontext trampoline
glibc's tst-makecontext2 testcase uncovered a bug in
__cont_link_context. If the function misses to reserve
shadow space for the calls to setcontext/cygwin_exit,
both functions could overwrite memory beyond the stack
configured in uc_stack.
* exceptions.cc (__cont_link_context): x86_64: align stack and reserve
shadow space for subsequent function calls, otherwise suffer potential
buffer overflow.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/sys/rtems/cpusetalloc.c')
0 files changed, 0 insertions, 0 deletions