HomePhabricator

[clangd] Fix a use-after-free

Authored by kadircet on Mar 25 2021, 3:04 AM.

Description

[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

Details

Committed
kadircetMar 25 2021, 10:26 AM
Differential Revision
D99326: [clangd] Fix a use-after-free
Parents
rG015c39882ebc: [Analyzer] Infer 0 value when the divisible is 0 (bug fix)
Branches
Unknown
Tags
Unknown