[PATCH] D43381: [clangd] Fix use-after-free in SymbolYAML: strings are owned by yaml::Input!

Eric Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 16 04:52:07 PST 2018


ioeric accepted this revision.
ioeric added a comment.
This revision is now accepted and ready to land.

Thanks a lot for the fix!

Suggest a test case which reproduced the bug:

  // comment with 'quote'
  void f() {}

`runSymbolCollector` -> `SymbolToYAML` -> `SymbolFromYAML` -> check `Documentation`


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D43381





More information about the cfe-commits mailing list