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
Loading
Please sign in to comment