[PATCH] D49159: [windows] Fix out-of-memory failure in some of the tests

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 10 15:37:41 PDT 2018


Any idea Why does the call fail?
On Tue, Jul 10, 2018 at 3:26 PM Stella Stamenova via Phabricator <
reviews at reviews.llvm.org> wrote:

> 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180710/2cca6308/attachment.html>


More information about the llvm-commits mailing list