mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-03 16:03:21 +00:00
[clangd] Fix use after free.
llvm-svn: 295187
This commit is contained in:
parent
562f3ccf3e
commit
4eaf89f2d9
@ -95,7 +95,7 @@ void TextDocumentRangeFormattingHandler::handleMethod(
|
||||
return;
|
||||
}
|
||||
|
||||
StringRef Code = Store.getDocument(DRFP->textDocument.uri);
|
||||
std::string Code = Store.getDocument(DRFP->textDocument.uri);
|
||||
|
||||
size_t Begin = positionToOffset(Code, DRFP->range.start);
|
||||
size_t Len = positionToOffset(Code, DRFP->range.end) - Begin;
|
||||
|
Loading…
x
Reference in New Issue
Block a user