-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/kraxel/tags/audio-20210617-pull…
…-request' into staging audio: bugfix collection. # gpg: Signature made Thu 17 Jun 2021 13:40:56 BST # gpg: using RSA key A0328CFFB93A17A79901FE7D4CB6D8EED3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <[email protected]>" [full] # gpg: aka "Gerd Hoffmann <[email protected]>" [full] # gpg: aka "Gerd Hoffmann (private) <[email protected]>" [full] # Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138 * remotes/kraxel/tags/audio-20210617-pull-request: coreaudio: Fix output stream format settings audio: Fix format specifications of debug logs hw/audio/sb16: Avoid assertion by restricting I/O sampling rate range jackaudio: avoid that the client name contains the word (NULL) audio: move code to audio/audio.c paaudio: remove unused stream flags alsaaudio: remove #ifdef DEBUG to avoid bit rot Signed-off-by: Peter Maydell <[email protected]>
- Loading branch information
Showing
10 changed files
with
102 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2221,6 +2221,7 @@ F: qapi/audio.json | |
F: tests/qtest/ac97-test.c | ||
F: tests/qtest/es1370-test.c | ||
F: tests/qtest/intel-hda-test.c | ||
F: tests/qtest/fuzz-sb16-test.c | ||
|
||
Block layer core | ||
M: Kevin Wolf <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* QTest fuzzer-generated testcase for sb16 audio device | ||
* | ||
* Copyright (c) 2021 Philippe Mathieu-Daudé <[email protected]> | ||
* | ||
* SPDX-License-Identifier: GPL-2.0-or-later | ||
*/ | ||
|
||
#include "qemu/osdep.h" | ||
#include "libqos/libqtest.h" | ||
|
||
/* | ||
* This used to trigger the assert in audio_calloc | ||
* https://bugs.launchpad.net/qemu/+bug/1910603 | ||
*/ | ||
static void test_fuzz_sb16_0x1c(void) | ||
{ | ||
QTestState *s = qtest_init("-M q35 -display none " | ||
"-device sb16,audiodev=snd0 " | ||
"-audiodev none,id=snd0"); | ||
qtest_outw(s, 0x22c, 0x41); | ||
qtest_outb(s, 0x22c, 0x00); | ||
qtest_outw(s, 0x22c, 0x1004); | ||
qtest_outw(s, 0x22c, 0x001c); | ||
qtest_quit(s); | ||
} | ||
|
||
static void test_fuzz_sb16_0x91(void) | ||
{ | ||
QTestState *s = qtest_init("-M pc -display none " | ||
"-device sb16,audiodev=none " | ||
"-audiodev id=none,driver=none"); | ||
qtest_outw(s, 0x22c, 0xf141); | ||
qtest_outb(s, 0x22c, 0x00); | ||
qtest_outb(s, 0x22c, 0x24); | ||
qtest_outb(s, 0x22c, 0x91); | ||
qtest_quit(s); | ||
} | ||
|
||
int main(int argc, char **argv) | ||
{ | ||
const char *arch = qtest_get_arch(); | ||
|
||
g_test_init(&argc, &argv, NULL); | ||
|
||
if (strcmp(arch, "i386") == 0) { | ||
qtest_add_func("fuzz/test_fuzz_sb16/1c", test_fuzz_sb16_0x1c); | ||
qtest_add_func("fuzz/test_fuzz_sb16/91", test_fuzz_sb16_0x91); | ||
} | ||
|
||
return g_test_run(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters