[libunwind][SystemZ] Use process_vm_readv to avoid potential segfaults
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 18 Jul 2022 14:54:48 +0000 (16:54 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 18 Jul 2022 14:54:48 +0000 (16:54 +0200)
commit24ec521cd7bb51447f4ab03460d91c57378d49f7
tree7a9a6765aefd1a042b174e4c73a178c3f139a3ef
parenta6316d6da5938328840d4161e4dc7c671808c20f
[libunwind][SystemZ] Use process_vm_readv to avoid potential segfaults

Fix potential crashes during unwind when checking for signal frames
and the current PC is invalid.

The same bug was fixed for aarch64 in https://reviews.llvm.org/D126343.

Reviewed by: MaskRay

Differential Revision: https://reviews.llvm.org/D129856
libunwind/src/UnwindCursor.hpp
libunwind/test/bad_unwind_info.pass.cpp