| Summary: | double free using SDL_VIDEO_X11_MOUSEACCEL | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Gregory Smith <wolfy> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | ||
| Version: | 1.2.11 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Attachments: |
proposed fix
Different proposed fix. |
||
|
Description
Gregory Smith
2007-03-16 20:44:46 UTC
Created attachment 199 [details]
proposed fix
Created attachment 200 [details]
Different proposed fix.
Good catch, but it looks like the condition that the free is based on is bogus, too...mouse_param_buf is never NULL at that point...it probably wanted to make sure all these elements of accel_value are initialized before calling XChangePointerControl(), and should SDL_stack_free() the original buffer in all cases here.
Attached updated patch for comment.
--ryan.
> Attached updated patch for comment.
Hearing no further comment, I'm applying the patch.
Fixed in svn revision #3005.
--ryan.
|