OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Clear the Parcel before writing an exception during a transaction
[android-x86/frameworks-base.git]
/
core
/
java
/
android
/
os
/
Binder.java
diff --git
a/core/java/android/os/Binder.java
b/core/java/android/os/Binder.java
index
ea8ba2f
..
b9597ea
100644
(file)
--- a/
core/java/android/os/Binder.java
+++ b/
core/java/android/os/Binder.java
@@
-574,6
+574,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);
}