]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: posix timers: allocate timer_tracker on system heap.
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 22 Jan 2019 15:22:45 +0000 (16:22 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 22 Jan 2019 15:38:14 +0000 (16:38 +0100)
commit83c51fffe6bad36a7143c30946ac5445f9ca4c56
treedfbb922ad306e6d7bdbae2fc7f1499857983f17e
parent6c44af8179f71a4355659008e1a58c793171e17d
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>
winsup/cygwin/cygheap_malloc.h
winsup/cygwin/posix_timer.cc
winsup/cygwin/posix_timer.h
This page took 0.029176 seconds and 5 git commands to generate.