[all-commits] [llvm/llvm-project] 7f5abb: [clangd] Fix a use-after-free

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Thu Mar 25 10:27:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f5abb63733238b89cf5d47116b2af68cda2af4e
      https://github.com/llvm/llvm-project/commit/7f5abb63733238b89cf5d47116b2af68cda2af4e
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2021-03-25 (Thu, 25 Mar 2021)

  Changed paths:
    M clang-tools-extra/clangd/ConfigCompile.cpp

  Log Message:
  -----------
  [clangd] Fix a use-after-free

Clangd was storing reference to a possibly-dead string in compiled
config. This patch fixes the issue by copying suppression strings from
fragments into compiled Config.

Fixes https://github.com/clangd/clangd/issues/724.

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




More information about the All-commits mailing list