[all-commits] [llvm/llvm-project] 73dcbd: [analyzer] Fix StackAddrEscapeChecker crash on tem...

Balazs Benics via All-commits all-commits at lists.llvm.org
Wed Sep 20 04:54:35 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73dcbd411b4573a4283d30307e48fde0f84423e5
  Author: Balazs Benics <benicsbalazs at gmail.com>
  Date:   2023-09-20 (Wed, 20 Sep 2023)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp
    A clang/test/Analysis/stackaddrleak.cpp

  Log Message:
  [analyzer] Fix StackAddrEscapeChecker crash on temporary object fields (#66493)

Basically, the issue was that we should have unwrapped the
base region before we special handle temp object regions.

Fixes https://github.com/llvm/llvm-project/issues/66221

I also decided to add some extra range information to the diagnostics
to make it consistent with the other reporting path.

More information about the All-commits mailing list