[Lldb-commits] [PATCH] D115654: [lldb/plugin] Fix heap-use-after-free in ScriptedProcess::ReadMemory
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 13 11:05:47 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGef74c8002ae8: [lldb/plugin] Fix heap-use-after-free in ScriptedProcess::ReadMemory (authored by mib).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115654/new/
https://reviews.llvm.org/D115654
Files:
lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
lldb/test/API/functionalities/scripted_process/stack_core_scripted_process.py
Index: lldb/test/API/functionalities/scripted_process/stack_core_scripted_process.py
===================================================================
--- lldb/test/API/functionalities/scripted_process/stack_core_scripted_process.py
+++ lldb/test/API/functionalities/scripted_process/stack_core_scripted_process.py
@@ -43,8 +43,9 @@
if error.Fail():
return data
- data.SetData(error, bytes_read, self.corefile_target.GetByteOrder(),
- self.corefile_target.GetAddressByteSize())
+ data.SetDataWithOwnership(error, bytes_read,
+ self.corefile_target.GetByteOrder(),
+ self.corefile_target.GetAddressByteSize())
return data
Index: lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
===================================================================
--- lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
+++ lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
@@ -139,7 +139,6 @@
@skipUnlessDarwin
@skipIfOutOfTreeDebugserver
- @skipIfAsan # rdar://85954489
def test_launch_scripted_process_stack_frames(self):
"""Test that we can launch an lldb scripted process from the command
line, check its process ID and read string from memory."""
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115654.393970.patch
Type: text/x-patch
Size: 1373 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20211213/cb6dd4da/attachment.bin>
More information about the lldb-commits
mailing list