Files
swift-mirror/unittests/Basic/TaskQueueTest.cpp
Kushal Pisavadia c2a1a20cac Fix ASAN stack-use-after-scope errors Basic/TaskQueueTest.cpp
The issue was that in three tests, the `Args` arrays were being declared inside
for loops.

When `TQ.addTask()` was called, it stored a pointer to the `Args` array. As the
`Args` array was declared in the loop, it would go out of scope at the end of
each iteration whilst `TaskQueue` held a pointer to it.
2025-10-23 11:00:27 +01:00

9.9 KiB