[alsa-devel] valgrind error in snd_tlv_get_dB_range

Clemens Ladisch clemens at ladisch.de
Sun Jan 19 12:19:44 CET 2014


Ivan Sorokin wrote:
> One program (qasmixer -- alsa mixer) on my system prints lots of valgrind errors.

Yes, these are errors in valgrind.

> As I understand the problem is that init_db_range initialize invalid rec->db_info, because snd_hctl_elem_tlv_read failed to fully initialize tlv:

snd_hctl_elem_tlv_read initializes as many bytes as needed.

I'd guess valgrind doesn't notice this because this is done through
an ioctl, in the kernel.


Regards,
Clemens


More information about the Alsa-devel mailing list