dxx-rebirth/similar/arch/sdl
derhass b73407e791 Prevent digi_mixer_start_sound() from trying to play nonexisting sounds.
There is a an out-of-bounds access in digi_mixer_start_sound() when
soundnum is < 0. The bounds check I added here is already present in
digi_audio_start_sound().

This bug was triggered on the RPi d2x built when trying to show the
briefing screen because briefing_new_screen() tries to play
SOUND_BRIEFING_HUM, which digi_xlat_sound() translated to -1 in this
situation. The game finally crashed in mixdigi_convert_sound() because
GameSounds[-1] happened to contain some non-zero data (on my Linux desktop,
that memory seems to be always 0 by accident...). This was also the reason
why the pi version tried to allocate lots of memory before it crashed in
memcpy().
2015-03-21 23:45:42 +01:00
..
digi.cpp Move some local structs into anonymous namespaces 2015-01-24 19:16:34 +00:00
digi_audio.cpp Remove unused parameters 2015-01-18 01:58:33 +00:00
digi_mixer.cpp Prevent digi_mixer_start_sound() from trying to play nonexisting sounds. 2015-03-21 23:45:42 +01:00
event.cpp Remove casts for SDL events 2015-02-08 17:43:29 +00:00
gr.cpp Pass gr_init_canvas arg by & 2015-01-17 18:31:40 +00:00
init.cpp Provide SndDisableSdlMixer=true if !USE_SDLMIXER 2015-02-08 17:43:29 +00:00
jukebox.cpp Remove RAIIdmem::operator pointer 2015-02-17 03:52:59 +00:00
key.cpp Pass d_event arg by const& 2014-10-04 22:36:13 +00:00
mouse.cpp Pass window_get_canvas arg by & 2015-01-17 18:31:40 +00:00
timer.cpp Return timer_query() from timer_update() 2015-02-05 03:03:48 +00:00