diff options
| author | Jason Evans <je@fb.com> | 2013-01-30 23:03:11 (GMT) |
|---|---|---|
| committer | Jason Evans <je@fb.com> | 2013-01-31 22:23:48 (GMT) |
| commit | bbe29d374d0fa5f4684621f16c099294e56c26ef (patch) | |
| tree | 4ddaf133e68cb14e25127afb7dfd41a5c8562b34 /test/integration/aligned_alloc.c | |
| parent | 83789f45307379e096c4e8be81d9e9a51e3f5a4a (diff) | |
| download | jemalloc-bbe29d374d0fa5f4684621f16c099294e56c26ef.zip jemalloc-bbe29d374d0fa5f4684621f16c099294e56c26ef.tar.gz jemalloc-bbe29d374d0fa5f4684621f16c099294e56c26ef.tar.bz2 | |
Fix potential TLS-related memory corruption.
Avoid writing to uninitialized TLS as a side effect of deallocation.
Initializing TLS during deallocation is unsafe because it is possible
that a thread never did any allocation, and that TLS has already been
deallocated by the threads library, resulting in write-after-free
corruption. These fixes affect prof_tdata and quarantine; all other
uses of TLS are already safe, whether intentionally (as for tcache) or
unintentionally (as for arenas).
Diffstat (limited to 'test/integration/aligned_alloc.c')
0 files changed, 0 insertions, 0 deletions
