Parcel: Add vector read size bounds check
When reserving data for a vector read, limit the size against the number of available bytes in the Parcel. This is a mitigating solution to avoid corrupted Parcels from throwing std::badalloc exceptions in std::vector reserve/resize. Test: see bug and dups for details on issues Test: atest binderLibTest Test: atest binderParcelTest Bug: 131868573 Change-Id: I61b2fea6a481221214d1e7d8c85d8c197de355bc
Loading
Please register or sign in to comment