Skip to content

Commit 5a3d270

Browse files
etancohenandroid-build-team Robot
authored andcommitted
[RTT] ParcelableRttResults parcel code fix
ParcelableRttResults was unparceled incorrectly. Bug: 70398564 Test: exploit provided in bug no longer works Change-Id: Ifd6de547e9861bbebc399b43d0cc2899a8160813 (cherry picked from commit e1e5a24)
1 parent 09ba8fd commit 5a3d270

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wifi/java/android/net/wifi/RttManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,8 +847,8 @@ public void writeToParcel(Parcel dest, int flags) {
847847
}
848848
dest.writeByte(result.LCR.id);
849849
if (result.LCR.id != (byte) 0xFF) {
850-
dest.writeInt((byte) result.LCR.data.length);
851-
dest.writeByte(result.LCR.id);
850+
dest.writeByte((byte) result.LCR.data.length);
851+
dest.writeByteArray(result.LCR.data);
852852
}
853853
dest.writeByte(result.secure ? (byte) 1 : 0);
854854
}

0 commit comments

Comments
 (0)