[all-commits] [llvm/llvm-project] 0b8c8e: [lldb] Fix use-after-free in SBMutexTest (#133840)
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Mon Mar 31 19:36:28 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0b8c8ed04211dae629811f24e6033e5c2185508f
https://github.com/llvm/llvm-project/commit/0b8c8ed04211dae629811f24e6033e5c2185508f
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2025-03-31 (Mon, 31 Mar 2025)
Changed paths:
M lldb/unittests/API/SBMutexTest.cpp
Log Message:
-----------
[lldb] Fix use-after-free in SBMutexTest (#133840)
The `locked` variable can be accessed from the asynchronous thread until
the call to f.wait() completes. However, the variable is scoped in a
lexical block that ends before that, leading to a use-after-free.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list