summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Android Build Merger (Role) <noreply-android-build-merger@google.com> 2019-06-05 17:32:04 +0000
committer Android Build Merger (Role) <noreply-android-build-merger@google.com> 2019-06-05 17:32:04 +0000
commit2ca66d4d10f3a293c45c3d69e5b27a68841addc4 (patch)
tree5858f242e87e3b3aae614d9b6de26a4bdcfc3086
parent4c9fa739ffd5978106182ae0698bd9e737cff3dc (diff)
parent31737b4618d5f67c1a0b120f98c386c7a5278a7a (diff)
[automerger] Clear the Parcel before writing an exception during a transaction am: f8ef5bcf21 am: 86c9bdd251 am: 6d72c0681f am: d944d907df am: 31737b4618
Change-Id: I780fc62bcad56b4f1518a9a84ff7a77914f5c722
-rw-r--r--core/java/android/os/Binder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/os/Binder.java b/core/java/android/os/Binder.java
index ff0bc69ed325..b9e21196c73d 100644
--- a/core/java/android/os/Binder.java
+++ b/core/java/android/os/Binder.java
@@ -683,6 +683,8 @@ public class Binder implements IBinder {
Log.w(TAG, "Caught a RuntimeException from the binder stub implementation.", e);
}
} else {
+ // Clear the parcel before writing the exception
+ reply.setDataSize(0);
reply.setDataPosition(0);
reply.writeException(e);
}