[PATCH] D66442: Fix use-after-free

Matthias Gehre via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 14:38:09 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL369304: Fix use-after-free (authored by mgehre, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D66442?vs=215985&id=215987#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66442/new/

https://reviews.llvm.org/D66442

Files:
  lldb/trunk/source/Core/FormatEntity.cpp


Index: lldb/trunk/source/Core/FormatEntity.cpp
===================================================================
--- lldb/trunk/source/Core/FormatEntity.cpp
+++ lldb/trunk/source/Core/FormatEntity.cpp
@@ -2347,7 +2347,7 @@
 }
 
 size_t FormatEntity::AutoComplete(CompletionRequest &request) {
-  llvm::StringRef str = request.GetCursorArgumentPrefix().str();
+  llvm::StringRef str = request.GetCursorArgumentPrefix();
 
   request.SetWordComplete(false);
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66442.215987.patch
Type: text/x-patch
Size: 460 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190819/975885da/attachment.bin>


More information about the llvm-commits mailing list