]> git.proxmox.com Git - wasi-libc.git/commit
Fix a use-after-free bug for detached threads (#420)
authorYAMAMOTO Takashi <yamamoto@midokura.com>
Wed, 21 Jun 2023 23:45:57 +0000 (08:45 +0900)
committerGitHub <noreply@github.com>
Wed, 21 Jun 2023 23:45:57 +0000 (16:45 -0700)
commit7018e24d8fe248596819d2e884761676f3542a04
tree686388b46fab9831e25ed2e7fac4bb4e00f87f8d
parent5862047a555523a7647606d13dbfc25282453ed5
Fix a use-after-free bug for detached threads (#420)

* Fix a use-after-free bug for detached threads

the issue was pointed out by @alexcrichton in
https://github.com/WebAssembly/wasi-libc/issues/405

* Rename map_base_lazy_free_queue as it only keeps a single item

Also, align the comment style with musl.
libc-top-half/musl/src/thread/pthread_create.c