OSDN Git Service

Clear the Parcel before writing an exception during a transaction
authorMichael Wachenschwanz <mwachens@google.com>
Thu, 16 May 2019 05:58:15 +0000 (22:58 -0700)
committerMichael Wachenschwanz <mwachens@google.com>
Thu, 16 May 2019 06:10:02 +0000 (23:10 -0700)
commit06041db074add181ddf19c3e4235a73c62207495
treef5c511bd0c41c293ec5e10ce3c306a048a90d7e9
parentaae9d6c77a404f022645c99d3492c9079ec0e747
Clear the Parcel before writing an exception during a transaction

This prevents any object data from being accidentally overwritten by the
exception, which could cause unexpected malformed objects to be sent
across the transaction.

Test: atest CtsOsTestCases:ParcelTest#testExceptionOverwritesObject
Fixes: 34175893
Change-Id: Iaf80a0ad711762992b8ae60f76d861c97a403013
core/java/android/os/Binder.java