[all-commits] [llvm/llvm-project] 01303f: [clang-tidy] Fix crash in bugprone-suspicious-real...

Balázs Kéri via All-commits all-commits at lists.llvm.org
Wed Dec 21 00:30:18 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 01303f6d1bba5f8640aab022469f9e9a9d66f877
      https://github.com/llvm/llvm-project/commit/01303f6d1bba5f8640aab022469f9e9a9d66f877
  Author: Balázs Kéri <1.int32 at gmail.com>
  Date:   2022-12-21 (Wed, 21 Dec 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/SuspiciousReallocUsageCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/suspicious-realloc-usage.cpp

  Log Message:
  -----------
  [clang-tidy] Fix crash in bugprone-suspicious-realloc-usage.

The problem occurs if a statement is found by the checker that has a null child.
Fixes issue #59518.

Reviewed By: hokein

Differential Revision: https://reviews.llvm.org/D140194




More information about the All-commits mailing list