forked from electronicarts/CnC_Generals_Zero_Hour
-
Notifications
You must be signed in to change notification settings - Fork 86
Closed
Copy link
Labels
BugSomething is not working right, typically is user facingSomething is not working right, typically is user facingMajorSeverity: Minor < Major < Critical < BlockerSeverity: Minor < Major < Critical < BlockerMemoryIs memory relatedIs memory related
Milestone
Description
Prerequisites
- I have searched for similar issues and confirmed this is not a duplicate
Game Version
- Command & Conquer Generals
- Command & Conquer Generals: Zero Hour
- Other (please specify below)
Bug Description
I didn't test with Generals, but I assume it's exactly the same.
When exiting the score overview window before it's finished drawing, some (or all) of the GameWindow instances are deleted (deleteInstance
), but still drawn apparently, which triggers the address sanitizer here:
const Image *winGetEnabledImage( Int index ) { return m_instData.m_enabledDrawData[ index ].image; } |
Reproduction Steps
- Start a new skirmish game.
- Exit match.
- Don't let the score overview finish but exit to main screen.
- No visual sign but address sanitizer gets triggered because of use-after-free.
Additional Context
I was using windowed mode.
Metadata
Metadata
Assignees
Labels
BugSomething is not working right, typically is user facingSomething is not working right, typically is user facingMajorSeverity: Minor < Major < Critical < BlockerSeverity: Minor < Major < Critical < BlockerMemoryIs memory relatedIs memory related