Commit b6652492 authored by Alice Ryhl's avatar Alice Ryhl
Browse files

ANDROID: rust_binder: enforce that overflow in ptr_align is checked



Currently passing a very large integer to ptr_align can panic due to an
integer overflow. To fix this, change ptr_align to return an Option so
that the caller cannot forget to handle overflow when calling ptr_align.

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