On Thu, Jun 24, 2021 at 10:44:47AM +0800, Qiang Liu wrote: > The I/O sampling rate range is enforced to 5000 to 45000HZ according to > commit a2cd86a9. Setting I/O sampling rate with command 41h/42h, a guest > user can break this assumption and trigger an assertion in audio_calloc > via command 0xd4. This patch restricts the I/O sampling rate range for > command 41h/42h. > > Fixes: 85571bc7415 ("audio merge (malc)") > Signed-off-by: Qiang Liu <cyruscy...@gmail.com> > --- > hw/audio/sb16.c | 31 +++++++++++++++++++------------ > tests/qtest/fuzz-sb16-test.c | 17 +++++++++++++++++ > 2 files changed, 36 insertions(+), 12 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature