Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0-initialize thread-specific data upon thread creation. (#508)
If thread-specific data is not set to 0 upon thread creation, `__pthread_tsd_run_dtors` will end up running destructors passing uninitialized memory as memory addresses, which can lead to memory corruption. This issue can be triggered when malloc() returns a memory address that was freed before, as in that case memory is not zeroed out.
- Loading branch information