Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
[RTT] ParcelableRttResults parcel code fix
Browse files Browse the repository at this point in the history
ParcelableRttResults was unparceled incorrectly.

Bug: 70398564
Test: exploit provided in bug no longer works
Change-Id: Ifd6de547e9861bbebc399b43d0cc2899a8160813
(cherry picked from commit e1e5a24)
  • Loading branch information
etancohen authored and android-build-team Robot committed Feb 8, 2018
1 parent 09ba8fd commit 5a3d270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wifi/java/android/net/wifi/RttManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -847,8 +847,8 @@ public void writeToParcel(Parcel dest, int flags) {
}
dest.writeByte(result.LCR.id);
if (result.LCR.id != (byte) 0xFF) {
dest.writeInt((byte) result.LCR.data.length);
dest.writeByte(result.LCR.id);
dest.writeByte((byte) result.LCR.data.length);
dest.writeByteArray(result.LCR.data);
}
dest.writeByte(result.secure ? (byte) 1 : 0);
}
Expand Down

0 comments on commit 5a3d270

Please sign in to comment.