alsa-lib/src/control
Arkadiusz Bokowy 9ac93d1252 Fix TLV dB parser in case of used container
In case when dB information does not appear as the only TLV type in the
stream (it might be wrapped in a container, but the container can not
have any other type), the TLV parser fails to get the dB TLV pointer.

This commit fixes it by distinguishing between TLV parse error and dB
information not being found in a container (-ENOENT), so the parser can iterate
over all elements in the container.

Also, it fixes out-of-bounds read in case of malicious TLV record.

Closes: https://github.com/alsa-project/alsa-lib/pull/409
Signed-off-by: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2024-09-06 10:51:06 +02:00
..
cards.c reshuffle included files to include config.h as first 2023-08-30 18:25:37 +02:00
control.c control: Make ump_{endpoint|block}_info calls optional 2024-08-15 16:26:33 +02:00
control_empty.c control: empty - fix the static build 2021-06-15 23:24:26 +02:00
control_ext.c doxygen: include external control docs 2023-09-01 16:11:26 +02:00
control_hw.c doxygen: control: silence 'not documented' item warnings 2023-09-01 16:11:34 +02:00
control_local.h control: Add UMP Endpoint and Block info query support 2023-06-06 15:13:27 +02:00
control_plugin.c control: doc - create controls plugin page 2021-04-07 16:24:05 +02:00
control_remap.c control: remap - fix the endless loop in remap_numid_child_new() 2023-12-19 18:45:54 +01:00
control_shm.c pcm: add SND_CTL_EINTR open mode 2023-05-03 15:59:15 +02:00
control_symbols.c control: add empty plugin 2021-04-07 16:24:20 +02:00
ctlparse.c reshuffle included files to include config.h as first 2023-08-30 18:25:37 +02:00
eld.c reshuffle included files to include config.h as first 2023-08-30 18:25:37 +02:00
hcontrol.c reshuffle included files to include config.h as first 2023-08-30 18:25:37 +02:00
Makefile.am control: decode HDMI device name from ELD 2022-05-05 14:31:45 +02:00
namehint.c doxygen: namehint: silence 'not documented' warnings 2023-09-01 16:11:51 +02:00
setup.c reshuffle included files to include config.h as first - v2 2023-09-13 12:35:35 +02:00
tlv.c Fix TLV dB parser in case of used container 2024-09-06 10:51:06 +02:00