[clang] [LifetimeSafety] Detect use-after-scope through fields in member calls (PR #191731)

via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 12 12:10:56 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 87303 tests passed
* 1397 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang-Unit
<details>
<summary>Clang-Unit._/AllClangUnitTests/LifetimeAnalysisTest/TrivialClassDestructorsUAF</summary>

```
Script:
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests/./AllClangUnitTests --gtest_filter=LifetimeAnalysisTest.TrivialClassDestructorsUAF
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/unittests/Analysis/LifetimeSafetyTest.cpp:1411
Value of: Origins({"ptr"})
Expected: must be live at (Annotation: "p1")
  Actual: 32-byte object <60-3A 64-46 00-00 00-00 80-3A 64-46 00-00 00-00 80-3A 64-46 00-00 00-00 F0-B0 6A-46 00-00 00-00>, Expected: {5, } Actual: {0, 1, 5, }


```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list