mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-12 04:27:45 -05:00
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> |
||
|---|---|---|
| .. | ||
| cards.c | ||
| control.c | ||
| control_empty.c | ||
| control_ext.c | ||
| control_hw.c | ||
| control_local.h | ||
| control_plugin.c | ||
| control_remap.c | ||
| control_shm.c | ||
| control_symbols.c | ||
| ctlparse.c | ||
| eld.c | ||
| hcontrol.c | ||
| Makefile.am | ||
| namehint.c | ||
| setup.c | ||
| tlv.c | ||