-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix buffer overflow when the count of display modes exceeds MaxModePe…
…rScreen(64) 1. Free pModeList memory when destroying instance 2. Add protection when allocating memory for pModeList fails 3. Avoid using an early return 4. Remove the if condition of ppModeList == nullptr, it doesn't match the new calling conventions 5. Always initialize variables
- Loading branch information
1 parent
8e7968c
commit b582244
Showing
3 changed files
with
59 additions
and
72 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