diff options
author | Jerry Zhang <zhangjerry@google.com> | 2018-03-06 15:27:07 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2018-03-07 10:31:00 -0800 |
commit | ed1b4547dfcdbaad474e865d211fcbd15221e35d (patch) | |
tree | 0d0ebe94545d165b8cb05ec8d4439bd36fbe3aa7 /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 49b4fce967a4721bd9617e455be4d51583f1aa1d (diff) |
Sign extend offset for pwritev/preadv.
Kernel expects a 64 bit offset, so if a
user's offset is 32 bit, the wrapper will
drop the sign. To fix, sign extend the
32 bit value before doing the syscall.
Bug: 31225071
Test: pwritev02 32 bit passes
(cherry picked from commit f55dbc05169ebfb67a4380741a94360b794f5ad9)
Change-Id: Ie81d29a37cf4e99c9279cffc89f4fa1b4da9a898
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions