audio: audio_generic_get_buffer_in should honor *size
commit599eac4e5a41e828645594097daee39373acc3c0
authorVolker Rümelin <vr_qemu@t-online.de>
Thu, 23 Jan 2020 07:49:43 +0000 (23 08:49 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 31 Jan 2020 07:49:48 +0000 (31 08:49 +0100)
treeafecef2517630c09444ca2b40083248d3a0070f8
parentf03cd06814ab282196165808c01d4433773a6e0f
audio: audio_generic_get_buffer_in should honor *size

The function generic_get_buffer_in currently ignores the *size
parameter and may return a buffer larger than *size.

As a result the variable samples in function
audio_pcm_hw_run_in may underflow. The while loop then most
likely will never termiate.

Buglink: http://bugs.debian.org/948658
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-Id: <20200123074943.6699-9-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/audio.c