We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 819

Summary: realloc() crash in add_music_decoder and add_chunk_decoder
Product: SDL_mixer Reporter: Ozkan Sezer <sezeroz>
Component: miscAssignee: 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

Description Ozkan Sezer 2009-10-02 08:41:50 UTC
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
Comment 1 Sam Lantinga 2009-10-03 01:47:08 UTC
This is fixed, thanks!
Comment 2 Sam Lantinga 2009-10-03 01:57:24 UTC
*** Bug 820 has been marked as a duplicate of this bug. ***