Fix security hole in GateKeeperResponse am: 5d2176df69
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17343385 Change-Id: Iaa20c957e0944a9ce72c1584d93c352d7ffeee40 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -105,7 +105,7 @@ public final class GateKeeperResponse implements Parcelable {
|
|||||||
dest.writeInt(mTimeout);
|
dest.writeInt(mTimeout);
|
||||||
} else if (mResponseCode == RESPONSE_OK) {
|
} else if (mResponseCode == RESPONSE_OK) {
|
||||||
dest.writeInt(mShouldReEnroll ? 1 : 0);
|
dest.writeInt(mShouldReEnroll ? 1 : 0);
|
||||||
if (mPayload != null) {
|
if (mPayload != null && mPayload.length > 0) {
|
||||||
dest.writeInt(mPayload.length);
|
dest.writeInt(mPayload.length);
|
||||||
dest.writeByteArray(mPayload);
|
dest.writeByteArray(mPayload);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user