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 - realloc() crash in add_music_decoder and add_chunk_decoder
Summary: realloc() crash in add_music_decoder and add_chunk_decoder
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86 Linux
: P2 critical
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
: 820 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-02 08:41 UTC by Ozkan Sezer
Modified: 2009-10-03 05:49 UTC (History)
1 user (show)

See Also:


Attachments
SDL_mixer-num_decoders.patch (1.00 KB, patch)
2009-10-02 08:41 UTC, Ozkan Sezer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***