Commit 5667be1
authored
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.1 parent 67080fa commit 5667be1
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
461 | 464 | | |
462 | 465 | | |
463 | 466 | | |
| |||
0 commit comments