| Summary: | realloc() crash in add_music_decoder and add_chunk_decoder | ||
|---|---|---|---|
| Product: | SDL_mixer | Reporter: | Ozkan Sezer <sezeroz> |
| Component: | misc | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | critical | ||
| Priority: | P2 | CC: | slouken |
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Attachments: | SDL_mixer-num_decoders.patch | ||
This is fixed, thanks! |
Created attachment 380 [details] SDL_mixer-num_decoders.patch SDL_mixer crashes in add_music_decoder() and add_chunk_decoder() due to a thinko in the size argument in the realloc() calls: the initial value of num_decoders is 0. Attached a quick fix. Regards. -- Ozkan