Merge "Fix security hole in GateKeeperResponse" into tm-dev

This commit is contained in:
Ayush Sharma
2022-03-21 09:13:24 +00:00
committed by Android (Google) Code Review

View File

@@ -105,7 +105,7 @@ public final class GateKeeperResponse implements Parcelable {
dest.writeInt(mTimeout);
} else if (mResponseCode == RESPONSE_OK) {
dest.writeInt(mShouldReEnroll ? 1 : 0);
if (mPayload != null) {
if (mPayload != null && mPayload.length > 0) {
dest.writeInt(mPayload.length);
dest.writeByteArray(mPayload);
} else {