summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorJerry Zhang <zhangjerry@google.com>2018-03-06 15:27:07 -0800
committerJerry Zhang <zhangjerry@google.com>2018-03-06 15:39:44 -0800
commitf55dbc05169ebfb67a4380741a94360b794f5ad9 (patch)
tree9d914f407075dce81e2185d48f0399d9b632989a /libc/malloc_hooks/malloc_hooks.cpp
parentaf8d54a7d715bd16bee279a87f42f8604b6b0a46 (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 Change-Id: Ie272601662c2c35b0e8d8fc3823c9063c2f73e64
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions