-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport] CVE-2021-21157: Use after free in Web Sockets
Cherry-pick of patch originally reviewed on https://chromium-review.googlesource.com/c/chromium/src/+/2655089: WebSocket: Don't clear event queue on destruction It's unnecessary to clear the event queue as it will be garbage collected anyway. Stop doing it. Also add a unit test for GC with pending events. This can only happen if the execution context changes while the events are pending. BUG=1170657 Change-Id: I01e5a687587f7471e88640c43f0dfe83e5c01bd1 Reviewed-by: Yutaka Hirano <[email protected]> Commit-Queue: Adam Rice <[email protected]> Cr-Commit-Position: refs/heads/master@{#848065} Reviewed-by: Allan Sandfeld Jensen <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
3 deletions.
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