Commit 94ce385c authored by Alice Ryhl's avatar Alice Ryhl Committed by Isaac Manjarres
Browse files

ANDROID: ashmem_rust: return EINVAL on offset > size



When calling a pin ioctl with an offset greater than the size of the
ashmem region, an integer underflow occurs. To fix that, return EINVAL
in this scenario.

Bug: 427377651
Change-Id: Ia85732374c2fa4155bcb4c347184e4c1d2bca965
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
parent d7b077d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment