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
[Backport] CVE-2021-30590: Heap buffer overflow in Bookmarks
Partial cherry-pick of patch originally reviewed on
https://chromium-review.googlesource.com/c/chromium/src/+/3073100:
[M90-LTS] Fix RecentlyUsedFoldersComboModel heap overflows
This fixes a few bugs:
* RecentlyUsedFoldersComboModel::RemoveNode() would not inform its
observers of changes.
* RecentlyUsedFoldersComboModel::GetDefaultIndex() did not behave well
after model changes (could end up using a cached out-of-bounds index).
* BubbleDialogModelHost would not pass on selected-index updates unless
the user changed the index by performing a combobox action (not true
when an Extension removes a bookmark folder).
This also replaces off-by-one index correction changes with CHECKs for
index correctness inside views::Combobox. This turns security bugs into
crash bugs and also is likelier to get us better crash stacks if this
happens in the wild as well.
(cherry picked from commit d2e1d6871cf7ca9dbbc82a400be49234d20f98cf)
Bug: 1227777
Change-Id: I9b851129fee4bdd249c1db77b01312b6671784be
Commit-Queue: Peter Boström <pbos@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#904551}
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Commit-Queue: Zakhar Voit <voit@google.com>
Owners-Override: Achuith Bhandarkar <achuith@chromium.org>
Cr-Commit-Position: refs/branch-heads/4430@{#1562}
Cr-Branched-From: e5ce7dc4f7518237b3d9bb93cccca35d25216cbe-refs/heads/master@{#857950}
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
0 commit comments