[Lldb-commits] [PATCH] D42346: Fix use after free in DiskFilesOrDirectories

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 22 01:19:21 PST 2018


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL323082: Fix use after free in DiskFilesOrDirectories (authored by teemperor, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D42346?vs=130796&id=130841#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D42346

Files:
  lldb/trunk/source/Commands/CommandCompletions.cpp


Index: lldb/trunk/source/Commands/CommandCompletions.cpp
===================================================================
--- lldb/trunk/source/Commands/CommandCompletions.cpp
+++ lldb/trunk/source/Commands/CommandCompletions.cpp
@@ -165,7 +165,7 @@
     // search in the fully resolved directory, but CompletionBuffer keeps the
     // unmodified form that the user typed.
     Storage = Resolved;
-    SearchDir = Resolved;
+    SearchDir = Storage;
   } else {
     SearchDir = path::parent_path(CompletionBuffer);
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42346.130841.patch
Type: text/x-patch
Size: 526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180122/df5229d4/attachment.bin>


More information about the lldb-commits mailing list