[alsa-devel] ioctl(arg) - uninitialised byte(s) in alsa lib

Clemens Ladisch clemens at ladisch.de
Wed Mar 12 13:15:43 CET 2008


Mathieu Monney wrote:
> I'm currently working on a small audio stack on top of alsa and I'm
> getting some "Syscall param ioctl(arg) contains uninitialized byte(s)"
> errors when I run my program using valgrind.
>
> ==14279==    by 0x40DE911: snd_pcm_prepare (in /usr/lib/libasound.so.2.0.0)

The ioctl call is in src/pcm/pcm_hw.c:

	if (ioctl(fd, SNDRV_PCM_IOCTL_PREPARE) < 0) {

Apparently, valgrind doesn't detect the cases where there is no third
argument.


Regards,
Clemens


More information about the Alsa-devel mailing list