Commit ed1b4547 authored by Jerry Zhang's avatar Jerry Zhang Committed by Elliott Hughes
Browse files

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 f55dbc05)

Change-Id: Ie81d29a37cf4e99c9279cffc89f4fa1b4da9a898
parent 49b4fce9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment