[all-commits] [llvm/llvm-project] 440e51: [clang][analyzer] Fix a nullptr dereference when `...

Fangyi Zhou via All-commits all-commits at lists.llvm.org
Wed May 14 07:36:19 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 440e510b896be2ef4a4f0730b8201378beee55b3
      https://github.com/llvm/llvm-project/commit/440e510b896be2ef4a4f0730b8201378beee55b3
  Author: Fangyi Zhou <me at fangyi.io>
  Date:   2025-05-14 (Wed, 14 May 2025)

  Changed paths:
    M clang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h
    A clang/test/Analysis/ftime-trace-no-init.cpp

  Log Message:
  -----------
  [clang][analyzer] Fix a nullptr dereference when `-ftime-trace` is used (#139820)

Fixes #139779.

The bug was introduced in #137355 in `SymbolConjured::getStmt`, when
trying to obtain a statement for a CFG initializer without an
initializer. This commit adds a null check before access.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list