mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-19 07:26:42 +00:00

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.