12 Mar
2008
12 Mar
'08
2:15 p.m.
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