This crash happened when: * The cursor was located in the corner * The screen was resized so that the cursor position is outside of the frame. This caused us to add out-of-bound coordinates to the frame's updated_region, which caused crashes further down the pipeline. Bug: chromium:1323241 Test: new unittest Test: manually reproduced crash Change-Id: Ie71db58c8a347f00af8a3803fcd55cdcad6eafac Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/261263 Reviewed-by: Alexander Cooper <alcooper@chromium.org> Commit-Queue: Jeroen Dhollander <jeroendh@google.com> Cr-Commit-Position: refs/heads/main@{#36809}