You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reland "[Fast Pair] Prevent invalid iterators when removing expired devices"
This is a reland of commit 6b6ced5
This change fixes the global buffer overflow by explicitly saying
the test address bytes size is 6.
Original change's description:
> [Fast Pair] Prevent invalid iterators when removing expired devices
>
> When iterating over the list of devices, we want to also remove from
> this list, however this can invalidate the iterator we are using to
> parse over them. This change uses the classic approach of loop over
> the map and collect the keys you want to remove in the vector, the
> loop over the vector and removes them.
>
> tested on DUT that retroactive pairing and removing expired devices
> works as expected.
>
> Test: Recreated the crash with unit tests and verified it works,
> Fixed: b/266753250
> Change-Id: If1e36070facf5d599b248d29ed944bc581668a05
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4195321
> Reviewed-by: Daniel Classon <dclasson@google.com>
> Commit-Queue: Juliet Lévesque <julietlevesque@google.com>
> Cr-Commit-Position: refs/heads/main@{#1097185}
Change-Id: I71be79695548f7caf930219196c49201bd35f064
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4197855
Commit-Queue: Juliet Lévesque <julietlevesque@google.com>
Reviewed-by: Daniel Classon <dclasson@google.com>
Cr-Commit-Position: refs/heads/main@{#1097447}
0 commit comments