diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2023-08-18 16:58:46 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-09-21 16:07:14 +0100 |
commit | 07ffc4b90f0c2b4ec13ba804fdffc56d49dff93c (patch) | |
tree | 53b1d261522bb45a9cd6258d18aba7b4729f1a83 /qapi/qom.json | |
parent | d71c3d305980b38c6e6794da7401172ac0fec891 (diff) | |
download | qemu-07ffc4b90f0c2b4ec13ba804fdffc56d49dff93c.zip qemu-07ffc4b90f0c2b4ec13ba804fdffc56d49dff93c.tar.gz qemu-07ffc4b90f0c2b4ec13ba804fdffc56d49dff93c.tar.bz2 |
audio/jackaudio: Avoid dynamic stack allocation in qjack_process()
Avoid a dynamic stack allocation in qjack_process(). Since this
function is a JACK process callback, we are not permitted to malloc()
here, so we allocate a working buffer in qjack_client_init() instead.
The codebase has very few VLAs, and if we can get rid of them all we
can make the compiler error on new additions. This is a defensive
measure against security bugs where an on-stack dynamic allocation
isn't correctly size-checked (e.g. CVE-2021-3527).
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com>
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-id: 20230818155846.1651287-3-peter.maydell@linaro.org
Diffstat (limited to 'qapi/qom.json')
0 files changed, 0 insertions, 0 deletions