musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/malloc/malloc.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2020年05月22日 17:35:14 -0400
committerRich Felker <dalias@aerifal.cx>2020年05月22日 17:39:57 -0400
commit4d5aa20a94a2d3fae3e69289dc23ecafbd0c16c4 (patch)
tree8eb6e667cd532a4a01e5cf4045dc71d11943b4ad /src/malloc/malloc.c
parentcabc36969bce739e86ecac250d286b0bda6aa88e (diff)
downloadmusl-4d5aa20a94a2d3fae3e69289dc23ecafbd0c16c4.tar.gz
reorder thread list unlink in pthread_exit after all locks
since the backend for LOCK() skips locking if single-threaded, it's unsafe to make the process appear single-threaded before the last use of lock. this fixes potential unsynchronized access to a linked list via __dl_thread_cleanup.
Diffstat (limited to 'src/malloc/malloc.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月03日 18:18:45 +0000

AltStyle によって変換されたページ (->オリジナル) /