| Summary: | potential buffer overrun in timidity RWgets | ||
|---|---|---|---|
| Product: | SDL_sound | Reporter: | Ozkan Sezer <sezeroz> |
| Component: | everything | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Ryan C. Gordon <icculus> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | RWgets() buffer overrun patch | ||
This is now https://hg.icculus.org/icculus/SDL_sound/rev/f0d57c9b72d8 on the dev branch and https://hg.icculus.org/icculus/SDL_sound/rev/0c4026dd3274 on the stable-1.0 branch, thanks! --ryan. |
Created attachment 2705 [details] RWgets() buffer overrun patch timidity.c:RWgets() can result in a buffer overrun, because the num_read check is off-by-one. The attached patch fixes it, and also simplifies the procedure a bit.