commit | 682282eaac86202652e17752ef32f14c89e2ccda | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Apr 17 18:31:26 2017 -0700 |
committer | Josh Gao <jmgao@google.com> | Tue Apr 18 14:04:20 2017 -0700 |
tree | c779c7a48e7fa41b4aad0cb1f7bb4953fde241cc | |
parent | c36a970fcd4878eafd03d41eeff0a4cbdd400326 [diff] |
base: add SafeCopy. Add a function that uses process_vm_readv on Linux to safely dereference pointers without the risk of segfault. Bug: http://b/30836730 Test: safe_copy_test on host Change-Id: I10bafcffe2172e17b00f65455d1dd6a08aa631d7