diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2019-01-22 16:22:45 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2019-01-22 16:38:14 +0100 |
commit | 83c51fffe6bad36a7143c30946ac5445f9ca4c56 (patch) | |
tree | dfbb922ad306e6d7bdbae2fc7f1499857983f17e /winsup/cygwin/cygheap_malloc.h | |
parent | 6c44af8179f71a4355659008e1a58c793171e17d (diff) | |
download | newlib-83c51fffe6bad36a7143c30946ac5445f9ca4c56.zip newlib-83c51fffe6bad36a7143c30946ac5445f9ca4c56.tar.gz newlib-83c51fffe6bad36a7143c30946ac5445f9ca4c56.tar.bz2 |
Cygwin: posix timers: allocate timer_tracker on system heap.
Allocating on the cygheap would copy information of the tracker into
the child process. A forked child knows the timer id and could simply
still access the (free'd but still valid) timer_tracker on the heap,
which is dangerous and very certainly doesn't reflect POSIX semantics.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/cygheap_malloc.h')
-rw-r--r-- | winsup/cygwin/cygheap_malloc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/cygheap_malloc.h b/winsup/cygwin/cygheap_malloc.h index cd545c3..74f0bb6 100644 --- a/winsup/cygwin/cygheap_malloc.h +++ b/winsup/cygwin/cygheap_malloc.h @@ -34,8 +34,7 @@ enum cygheap_types HEAP_2_DLL, HEAP_MMAP, HEAP_2_MAX = 200, - HEAP_3_FHANDLER, - HEAP_3_TIMER + HEAP_3_FHANDLER }; extern "C" { |