Skip to content

Commit

Permalink
mmdevapi: Fix buffer overflow in pulse_set_sample_rate.
Browse files Browse the repository at this point in the history
(cherry picked from commit 6170680)

Cw-Bug-Id: #24327
(cherry picked from commit 7f3e7a6)
  • Loading branch information
tati-frog authored and ivyl committed Oct 22, 2024
1 parent c3654af commit 68f3e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/winepulse.drv/pulse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2573,7 +2573,7 @@ static NTSTATUS pulse_set_sample_rate(void *args)
size = 0;
NtFreeVirtualMemory(GetCurrentProcess(), (void **)&stream->local_buffer, &size, MEM_RELEASE);

silence_buffer(new_ss.format, new_buffer, size);
silence_buffer(new_ss.format, new_buffer, stream->real_bufsize_bytes);
stream->local_buffer = new_buffer;

exit:
Expand Down

0 comments on commit 68f3e39

Please sign in to comment.