[clang] [Clang] Fix stack-use-after-return in TryArrayCopy by allocating OpaqueValueExpr on the ASTContext (PR #192080)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri May 8 06:53:56 PDT 2026


================
@@ -537,6 +537,7 @@ Bug Fixes in This Version
 - Clang now emits an error for friend declarations of lambda members. (#GH26540)
 - Fixed a crash caused by lambda capture handling in delayed default arguments. (#GH176534)
 - Fixed a crash when parsing invalid ``static_assert`` declarations with string-literal messages (#GH187690).
+- Fixed stack-use-after-return in TryArrayCopy by allocating OpaqueValueExpr on the ASTContext. (#GH192026)
----------------
AaronBallman wrote:

```suggestion
- Fixed a potential stack-use-after-return issue in Clang when copy-initializing
  an array via an element-at-a-time copy loop (#GH192026)
```

https://github.com/llvm/llvm-project/pull/192080


More information about the cfe-commits mailing list