diff options
author | Evgeny Eltsin <eaeltsin@google.com> | 2019-12-11 15:30:16 +0100 |
---|---|---|
committer | Evgeny Eltsin <eaeltsin@google.com> | 2019-12-11 15:42:04 +0100 |
commit | bd1c63065e8c1a2cea46ef59c9a3b74aefbd1f33 (patch) | |
tree | d10ceac6660d6ae5e2bc7e1a002f516e6dfe18a7 /libc/malloc_debug/malloc_debug.cpp | |
parent | ccf0307f768c14d81faad464e81b37da1582f96e (diff) |
Fix sys_ptrace_test feature check on arm64
The code was checking PTRACE_GETREGSET output even in case of error.
This seems not correct. Though ptrace can still write some output in
case of EINVAL, implementation should still check updated iov_len before
reading it.
Change the code to avoid checking output in case of error at all.
Test: bionic-unit-tests --gtest_filter=sys_ptrace.watchpoint_stress
Change-Id: I7b1ca18ac64f81055ff89f56b453aff0ce8e1057
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions