HomePhabricator

[clangd] Fix use-after-free in HeaderIncluderCache

Authored by kadircet on Oct 20 2021, 3:52 AM.

Description

[clangd] Fix use-after-free in HeaderIncluderCache

Includer cache could get into a bad state when a main file went bad and
added back afterwards. This patch adds a check to invalidate to prevent
that.

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

Details

Committed
kadircetOct 20 2021, 7:36 AM
Differential Revision
D112130: [clangd] Fix use-after-free in HeaderIncluderCache
Parents
rGc959da9ef344: [clangd] Only publish preamble after rebuilds
Branches
Unknown
Tags
Unknown