|author||Rich Felker <firstname.lastname@example.org>||2014-08-22 14:05:10 -0400|
|committer||Rich Felker <email@example.com>||2014-08-22 14:05:10 -0400|
fix use of uninitialized memory with application-provided thread stacks
the subsequent code in pthread_create and the code which copies TLS initialization images to the new thread's TLS space assume that the memory provided to them is zero-initialized, which is true when it's obtained by pthread_create using mmap. however, when the caller provides a stack using pthread_attr_setstack, pthread_create cannot make any assumptions about the contents. simply zero-filling the relevant memory in this case is the simplest and safest fix.
Diffstat (limited to 'src/thread/pthread_cond_timedwait.c')
0 files changed, 0 insertions, 0 deletions