mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-02 00:41:51 +00:00
Fix memory corruption in timidity resampling code.
From Sam Lantinga in SDL_mixer 1.2.8: http://lists.libsdl.org/pipermail/commits-libsdl.org/2007-July/008673.html Fixes a crash on OpenBSD.
This commit is contained in:
parent
485edfebc1
commit
86216aa708
1 changed files with 1 additions and 1 deletions
|
@ -710,7 +710,7 @@ void pre_resample(Sample * sp)
|
|||
while (--count)
|
||||
{
|
||||
vptr = src + (ofs >> FRACTION_BITS);
|
||||
v1 = *(vptr - 1);
|
||||
v1 = (vptr == src) ? *vptr : *(vptr - 1);
|
||||
v2 = *vptr;
|
||||
v3 = *(vptr + 1);
|
||||
v4 = *(vptr + 2);
|
||||
|
|
Loading…
Reference in a new issue