[all-commits] [llvm/llvm-project] 252400: [clangd] Fix a nullptr-dereference crash in comput...

Haojian Wu via All-commits all-commits at lists.llvm.org
Thu Apr 13 03:17:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2524000187fc56a3f818a6562199037a90108eda
      https://github.com/llvm/llvm-project/commit/2524000187fc56a3f818a6562199037a90108eda
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M clang-tools-extra/clangd/IncludeCleaner.cpp
    M clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp

  Log Message:
  -----------
  [clangd] Fix a nullptr-dereference crash in computeIncludeCleanerFindings.

Be more robust, we shuold not crash  when we cannot find the corresponding token from the
tokenbuffer.

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




More information about the All-commits mailing list