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)
committerNikoli Cartagena <dargeren@google.com>
Mon, 10 Jun 2019 18:35:12 +0000 (11:35 -0700)
commit114df4642694524969ca24749fc4cd81f91679fb
tree2023b8a133ded28530726f14b6adbf4d4ac5bd9d
parentfa73d3445696a870a8c7e3cfc92eabf97f5b6e9c
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
Bug: 34175893
Change-Id: Iaf80a0ad711762992b8ae60f76d861c97a403013
Merged-In: Iaf80a0ad711762992b8ae60f76d861c97a403013
(cherry picked from commit f8ef5bcf21c87d8617f5e11810cc94350298d114)
core/java/android/os/Binder.java