Skip to content

Commit

Permalink
Merge PR #6210: Backport "Merge PR #6209: FIX(client): Use memset() t…
Browse files Browse the repository at this point in the history
…o initialize VLA"
  • Loading branch information
Krzmbrzl authored Oct 1, 2023
2 parents 9d5e522 + 83f6a30 commit ca2ae65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mumble/PulseAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,9 @@ void PulseAudioSystem::write_callback(pa_stream *s, size_t bytes, void *userdata
// effectively removing the audio output completely until Mumble is restarted.
// See: https://github.com/mumble-voip/mumble/issues/4883
// See: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1132
unsigned char buffer[bytes] = {};
pa.stream_write(s, buffer, bytes, nullptr, 0, PA_SEEK_RELATIVE);
unsigned char buffer[bytes];
memset(buffer, 0, sizeof(buffer));
pa.stream_write(s, buffer, sizeof(buffer), nullptr, 0, PA_SEEK_RELATIVE);
return;
}

Expand Down

0 comments on commit ca2ae65

Please sign in to comment.