qemu-e2k/audio
Kővágó, Zoltán 725662d6db audio: fix invalid malloc size in audio_create_pdos
The code used sizeof(AudiodevAlsaPerDirectionOptions) instead of the
appropriate per direction options for the audio backend.  If the size of
the actual audiodev's per direction options are larger than alsa's, it
could cause a buffer overflow.

However, alsa has three fields in per direction options: a string, an
uint32 and a bool.  Oss has the same fields, coreaudio has a single
uint32, paaudio has a string and an uint32, all other backends only use
the common options, so currently no per direction options struct should
be larger than alsa's.

Signed-off-by: Kővágó, Zoltán <DirtY.iCE.hu@gmail.com>
Message-Id: <7808bc816ba7da8b8de8a214713444d85f7af3c6.1566847960.git.DirtY.iCE.hu@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2019-08-28 11:56:56 +02:00
..
Makefile.objs audio: -audiodev command line option basic implementation 2019-03-11 10:29:27 +01:00
alsaaudio.c audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
audio.c audio: fix invalid malloc size in audio_create_pdos 2019-08-28 11:56:56 +02:00
audio.h audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
audio_int.h audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
audio_legacy.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
audio_pt_int.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
audio_pt_int.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
audio_template.h audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
audio_win_int.c audio: use qapi AudioFormat instead of audfmt_e 2019-03-11 10:29:26 +01:00
audio_win_int.h Windows Waveform Audio driver (no ADC support yet) 2009-10-10 01:18:24 +04:00
coreaudio.c audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
dsound_template.h dsoundaudio: port to -audiodev config 2019-03-11 10:29:27 +01:00
dsoundaudio.c audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
mixeng.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
mixeng.h audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
mixeng_template.h audio/mixeng_template.h: fix inline declaration 2013-10-26 13:09:34 +04:00
noaudio.c audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
ossaudio.c audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
paaudio.c audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
rate_template.h audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
sdlaudio.c audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
spiceaudio.c audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
trace-events trace-events: Shorten file names in comments 2019-03-22 16:18:07 +00:00
wavaudio.c audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
wavcapture.c audio: basic support for multi backend audio 2019-08-21 09:13:37 +02:00