forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: Reject transfer size more than 32MB on renderer
Enforce a 32MB transfer size limit on WebUSB renderer side. This enforcement is to avoid user allocating a big buffer (e.g. close to 4GB) that might crash the browser in case no enough memory resources. Bug: 338955051 Change-Id: Ieac572e1abf6e85199e34550bf8e6434cad57052 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5633505 Commit-Queue: Jack Hsieh <[email protected]> Reviewed-by: Reilly Grant <[email protected]> Reviewed-by: Mason Freed <[email protected]> Cr-Commit-Position: refs/heads/main@{#1317691}
- Loading branch information
1 parent
1ee4eca
commit a60cf17
Showing
5 changed files
with
83 additions
and
18 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
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