forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AbstractHapticGamepad can cause a use-after-free crash when using an Xbox 360 or Xbox One controller on macOS if an I/O error occurs when sending a vibration command to the controller. This CL avoids the crash by treating vibration errors as recoverable. Some other errors have also been changed to no longer call IOError: * Failure to set the LED state. * Incoming packets larger than |read_buffer_size_|. * Failure to acknowledge the Guide button state. * Failure to send the Xbox One S initialization packet. These errors are still considered fatal I/O errors: * ReadPipeAsync failure in QueueRead. * Failure return code in ReadPipeAsync callback. Bug: 1166312 Change-Id: I43c101f4c5bbc84a6edab3a8dff3ee5425fbb543 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2674344 Reviewed-by: James Hollyer <jameshollyer@chromium.org> Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/master@{#859626}
- Loading branch information
Showing
2 changed files
with
85 additions
and
32 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