Merge "Clear the Parcel before writing an exception during a transaction" into qt-dev

am: d2111df37b

Change-Id: I8a5c6dde1d657c28ce1614cead8455ce2de73ceb
This commit is contained in:
Michael Wachenschwanz
2019-05-20 16:15:03 -07:00
committed by android-build-merger

View File

@@ -1033,6 +1033,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);
}