| Summary: | Possible double free in kmsdrm init code on certain errors | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Simon Hug <chli.hug> |
| Component: | video | Assignee: | Brandon Schaefer <brandon.schaefer> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Attachments: | Patch that fixes the possible double frees in the kmsdrm init code. | ||
Fixed, thanks! https://hg.libsdl.org/SDL/rev/d9c3f934bd0e |
Created attachment 2817 [details] Patch that fixes the possible double frees in the kmsdrm init code. KMSDRM_VideoInit allocates and frees some connectors and encoders but doesn't set the pointer to NULL after freeing. The cleanup code at the end may free one of those garbage pointer should an error happen in the initialization. Attached patch adds some NULL assignments.