| Auto-Submit | +1 |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
if (active && window_) {Don't bother with this check?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +0 |
| Commit-Queue | +2 |
Don't bother with this check?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
3 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: ui/ozone/platform/x11/test/x11_window_unittest.cc
Insertions: 3, Deletions: 4.
@@ -199,15 +199,14 @@
}
void OnActivationChanged(bool active) override {
- if (active && window_) {
- // Synchronously destroy the window.
- window_.reset();
- }
+ // Synchronously destroy the window.
+ window_.reset();
}
private:
std::unique_ptr<X11Window> window_;
};
+
// Returns the list of rectangles which describe |window|'s bounding region via
// the X shape extension.
std::vector<gfx::Rect> GetShapeRects(x11::Window window) {
```
[Ozone/X11] Fix UAF in DispatchUiEvent during synchronous destruction
A potential Use-After-Free (UAF) vulnerability was identified in
X11Window::DispatchUiEvent. Synchronous destruction of the X11Window
object during HandleEvent processing (e.g., due to activation changes)
could leave DispatchUiEvent with a dangling 'this' pointer.
This CL adds a base::WeakPtr liveness check after HandleEvent to
prevent further member accesses if the window is destroyed.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |