hanchenye-llvm-project/lldb/source/Commands
Raphael Isemann 1784388567 Fix use after free in DiskFilesOrDirectories
Summary:
We copy the local variable `Resolved` into `Storage` to keep it around. However, we then still let the `SearchDir` ref point to `Resolved` which then is used to access the already freed memory later on. With this patch we point to `Storage` which doesn't get deleted after the current scope exits.

Discovered by memory sanitizer in the CompletionTest.DirCompletionUsername test.

Reviewers: zturner

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D42346

llvm-svn: 323082
2018-01-22 09:17:16 +00:00
..
CMakeLists.txt
CommandCompletions.cpp Fix use after free in DiskFilesOrDirectories 2018-01-22 09:17:16 +00:00
CommandObjectApropos.cpp
CommandObjectApropos.h
CommandObjectArgs.cpp
CommandObjectArgs.h
CommandObjectBreakpoint.cpp Wire up the breakpoint name help string. 2017-09-15 00:52:35 +00:00
CommandObjectBreakpoint.h
CommandObjectBreakpointCommand.cpp
CommandObjectBreakpointCommand.h
CommandObjectBugreport.cpp
CommandObjectBugreport.h
CommandObjectCommands.cpp
CommandObjectCommands.h
CommandObjectDisassemble.cpp Invert ArchSpec<->Platform dependency 2017-10-31 10:56:03 +00:00
CommandObjectDisassemble.h Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
CommandObjectExpression.cpp
CommandObjectExpression.h
CommandObjectFrame.cpp
CommandObjectFrame.h Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
CommandObjectGUI.cpp
CommandObjectGUI.h
CommandObjectHelp.cpp
CommandObjectHelp.h
CommandObjectLanguage.cpp
CommandObjectLanguage.h
CommandObjectLog.cpp
CommandObjectLog.h
CommandObjectMemory.cpp
CommandObjectMemory.h
CommandObjectMultiword.cpp
CommandObjectPlatform.cpp Invert ArchSpec<->Platform dependency 2017-10-31 10:56:03 +00:00
CommandObjectPlatform.h
CommandObjectPlugin.cpp
CommandObjectPlugin.h
CommandObjectProcess.cpp Add Utility/Environment class for handling... environments 2018-01-10 11:57:31 +00:00
CommandObjectProcess.h
CommandObjectQuit.cpp
CommandObjectQuit.h
CommandObjectRegister.cpp
CommandObjectRegister.h
CommandObjectSettings.cpp
CommandObjectSettings.h
CommandObjectSource.cpp "source list -a" was calling DisplaySourceLinesWithNumbers incorrectly. 2017-11-17 01:19:59 +00:00
CommandObjectSource.h
CommandObjectSyntax.cpp
CommandObjectSyntax.h
CommandObjectTarget.cpp Remove custom TimePoint-formatting code 2017-11-27 17:06:42 +00:00
CommandObjectTarget.h Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
CommandObjectThread.cpp Re-land r313210 - Fix for bug 34532 - A few rough corners related to post-mortem debugging (core/minidump) 2017-09-19 18:07:33 +00:00
CommandObjectThread.h
CommandObjectType.cpp
CommandObjectType.h
CommandObjectVersion.cpp
CommandObjectVersion.h
CommandObjectWatchpoint.cpp
CommandObjectWatchpoint.h
CommandObjectWatchpointCommand.cpp
CommandObjectWatchpointCommand.h