dxx-rebirth/similar
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
..
2d Remove RAIIdmem::operator pointer 2015-02-17 03:52:59 +00:00
3d Fix startup trap with D1 shareware data 2015-03-20 03:30:20 +00:00
arch Prevent digi_mixer_start_sound() from trying to play nonexisting sounds. 2015-03-21 23:45:42 +01:00
editor Pass array<> to remap_side_uvs 2015-02-27 03:30:33 +00:00
main Skip digi_sync_sounds loop if !Viewer 2015-03-15 18:52:52 +00:00
mem Fix size truncation in mem_malloc 2015-01-29 04:27:35 +00:00
misc Add automatic demo recording 2015-02-28 19:36:02 +00:00