diff options
author | Stella Stamenova <stilis@microsoft.com> | 2018-07-11 22:47:35 +0000 |
---|---|---|
committer | Stella Stamenova <stilis@microsoft.com> | 2018-07-11 22:47:35 +0000 |
commit | 62c76db4eec8ef64a03c4b077045893bebfc38e9 (patch) | |
tree | ea44b21fe54988e2950d11b0c43582d9af9f9a8d /libcxx/include/support/android/locale_bionic.h | |
parent | ed6acde8cf2f764fce5df495d5f2a24bc08a3e80 (diff) | |
download | bcm5719-llvm-62c76db4eec8ef64a03c4b077045893bebfc38e9.tar.gz bcm5719-llvm-62c76db4eec8ef64a03c4b077045893bebfc38e9.zip |
[windows] Fix out-of-memory failure in some of the tests
Summary: 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.
Reviewers: asmith, zturner
Reviewed By: zturner
Subscribers: zturner, asmith, stella.stamenova, llvm-commits
Differential Revision: https://reviews.llvm.org/D49159
llvm-svn: 336865
Diffstat (limited to 'libcxx/include/support/android/locale_bionic.h')
0 files changed, 0 insertions, 0 deletions