[PATCH] D49159: [windows] Fix out-of-memory failure in some of the tests
Stella Stamenova via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 10 15:26:50 PDT 2018
stella.stamenova created this revision.
stella.stamenova added reviewers: asmith, zturner.
Herald added a subscriber: llvm-commits.
When ReadProcessMemory fails, bytes_read is sometimes set to a large garbage value. In that case, we need to set it back to zero before returning or the garbage value will be used to allocate memory later causing LLDB to crash with an out of memory error.
Repository:
rL LLVM
https://reviews.llvm.org/D49159
Files:
source/Plugins/Process/Windows/Common/ProcessWindows.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49159.154898.patch
Type: text/x-patch
Size: 6672 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180710/376d4044/attachment.bin>
More information about the llvm-commits
mailing list