commit | 3ab983c69170302aa9d57d59a2176f13adc5503d | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Jan 18 19:49:02 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jan 18 19:49:02 2022 +0000 |
tree | c7ed34b26293ae3767b1375c0abd78ec7c88fa49 | |
parent | 63e4c3e66b9722d66da70a0465c032461967c8d0 [diff] | |
parent | 538a4461cb806222835c107df557eb10695f5783 [diff] |
Merge "libbinder_rs: sized writes is size >= 4" am: 0dfc611db1 am: 31cfb72d5c am: 538a4461cb Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1950002 Change-Id: I3688e19bb88d30335d82151589a38047ae9d3eeb
diff --git a/libs/binder/rust/src/parcel.rs b/libs/binder/rust/src/parcel.rs index 206b90c..256fa8b 100644 --- a/libs/binder/rust/src/parcel.rs +++ b/libs/binder/rust/src/parcel.rs
@@ -496,7 +496,7 @@ { let start = self.get_data_position(); let parcelable_size: i32 = self.read()?; - if parcelable_size < 0 { + if parcelable_size < 4 { return Err(StatusCode::BAD_VALUE); }