-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M110] Fix dangling pointer crash around connection_warning_icon_
NetworkListViewControllerImpl's `connection_warning_icon_` is owned by `connection_warning_`. It was possible to end up in a state where `connection_warning_` is deleted and `connection_warning_icon_` points to invalid memory. Fix this crash. Also add a regression test which crashes without the fix. The test requires changing FakeCrosNetworkConfig to support non-active networks to allow simulating disconnecting and reconnecting a network. (cherry picked from commit 2251d02) Bug: b:263803248 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4128614 Reviewed-by: Gordon Seto <gordonseto@google.com> Commit-Queue: Gordon Seto <gordonseto@google.com> Cr-Original-Commit-Position: refs/heads/main@{#1087414} Change-Id: I448ad6ca7ae6b99bba5d14f05834790b542a5df2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4142560 Commit-Queue: Pavol Marko <pmarko@chromium.org> Cr-Commit-Position: refs/branch-heads/5481@{#186} Cr-Branched-From: 130f3e4-refs/heads/main@{#1084008}
- Loading branch information
Pavol Marko
authored and
Chromium LUCI CQ
committed
Jan 9, 2023
1 parent
4010e66
commit da89914
Showing
3 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters