Files
swift-mirror/tools/SourceKit/lib/SwiftLang/SwiftEditor.cpp
Ben Langmuir c864eab859 [edit] Fix racy access to SemanticInfo
Specifically, if the document was re-opened, we would drop the reference
and the call to readSemanticInfo could use-after-free the array of
diagnostics. This manifested as a very rare crash while testing
sourcekit-lsp.
2019-10-29 16:33:36 -07:00

86 KiB