| Auto-Submit | +1 |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[M149] ozone/x11: Fix potential UAF in X11Window::DispatchEvent
Original change's description:
> ozone/x11: Fix potential UAF in X11Window::DispatchEvent
>
> During mouse event dispatch, synchronous event processing inside
> X11WindowManager::MouseOnWindow can trigger observers that synchronously
> close the widget and destroy the X11Window. Because there was no WeakPtr
> guard, the rest of DispatchEvent would proceed with a freed pointer,
> causing a Use-After-Free (UAF).
>
> This CL adds a WeakPtr guard to check if the window was destroyed during
> MouseOnWindow and returns early. A regression test is added to prevent
> regressions.
>
> Fixed: 524395469
> Change-Id: I7f5c27cf383d9753699c76341a327ebe88f405fd
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7950619
> Reviewed-by: Lei Zhang <the...@chromium.org>
> Commit-Queue: Lei Zhang <the...@chromium.org>
> Auto-Submit: Thomas Anderson <thomasa...@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1647701}
(cherry picked from commit fdf7bd93e6af84c37cee9d6fda623d7359bb8582)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |