| Summary: | De-reference videodata without NULL check in X11_DispatchEvent(_THIS) function | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Nitz <nitin.j4> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | ||
| Version: | 2.0.3 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Attachments: | Patch for videodata NULL check | ||
Fixed, thanks! https://hg.libsdl.org/SDL/rev/5cf8c66c9c66 When did you see this happen? This should never happen in practice. |
Created attachment 2129 [details] Patch for videodata NULL check In X11_DispatchEvent(_THIS) function SDL_VideoData *videodata = (SDL_VideoData *) _this->driverdata; Here videodata can be NULL, So we should apply NULL check before de-reference Patch is attached.