[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] hw/audio/sb16: Restrict I/O sampling rate range for comma
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v2] hw/audio/sb16: Restrict I/O sampling rate range for command 41h/42h |
Date: |
Thu, 24 Jun 2021 10:38:09 +0100 |
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 <cyruscyliu@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 <stefanha@redhat.com>
signature.asc
Description: PGP signature