Skip to content

Commit

Permalink
avoid buffer overrun in fluid_synth_nwrite_float()
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Nov 26, 2017
1 parent 6c5e1d9 commit a13cb63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/synth/fluid_synth.c
Original file line number Diff line number Diff line change
Expand Up @@ -2752,10 +2752,10 @@ fluid_synth_nwrite_float(fluid_synth_t* synth, int len,
{
#ifdef WITH_FLOAT
if(fx_left != NULL)
FLUID_MEMCPY(fx_left[i + count], fx_left_in[i], bytes);
FLUID_MEMCPY(fx_left[i] + count, fx_left_in[i], bytes);

if(fx_right != NULL)
FLUID_MEMCPY(fx_right[i + count], fx_right_in[i], bytes);
FLUID_MEMCPY(fx_right[i] + count, fx_right_in[i], bytes);
#else //WITH_FLOAT
int j;
if(fx_left != NULL) {
Expand Down

0 comments on commit a13cb63

Please sign in to comment.