Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d9e0778 authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder_rs: sized writes is size >= 4

because it includes the size

Fixes: 211810857
Test: atest aidl_integration_test
Change-Id: I3cbb12133625c95b3f222748d321d6b242363079
parent bec007aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -496,7 +496,7 @@ impl<'a> BorrowedParcel<'a> {
    {
        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);
        }