Skip to content

Commit

Permalink
Fixed bug #118
Browse files Browse the repository at this point in the history
Fixed memory corruption in timidity resampling code.
  • Loading branch information
slouken committed Jul 14, 2007
1 parent f77880f commit 85611f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES
@@ -1,3 +1,7 @@
1.2.8:
Sam Lantinga - Sat Jul 14 07:02:09 PDT 2007
* Fixed memory corruption in timidity resampling code

1.2.7:
Sam Lantinga - Fri May 12 00:04:32 PDT 2006
* Added support for dynamically loading SMPEG library
Expand Down
2 changes: 1 addition & 1 deletion timidity/resample.c
Expand Up @@ -720,7 +720,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);
Expand Down

0 comments on commit 85611f0

Please sign in to comment.