Skip to content

Commit

Permalink
Fix another NULL deref related to #635
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed May 23, 2020
1 parent 27ad068 commit 19a20eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/synth/fluid_synth.c
Original file line number Diff line number Diff line change
Expand Up @@ -4403,6 +4403,7 @@ fluid_synth_alloc_voice(fluid_synth_t *synth, fluid_sample_t *sample,
int chan, int key, int vel)
{
fluid_return_val_if_fail(sample != NULL, NULL);
fluid_return_val_if_fail(sample->data != NULL, NULL);
FLUID_API_ENTRY_CHAN(NULL);
FLUID_API_RETURN(fluid_synth_alloc_voice_LOCAL(synth, sample, chan, key, vel, NULL));

Expand Down

0 comments on commit 19a20eb

Please sign in to comment.