Comment 5 for bug 432477

Revision history for this message
Gregor Jasny (gjasny) wrote : Re: Syscall param ioctl(generic) points to uninitialised byte(s) in v4l2_fd_open

Hi,

this is no bug in libv4l but a shortcoming in valgrind.

IOCTL doc:
To query the current parameters applications set the type field of a struct v4l2_format to the respective buffer (stream) type.

CODE:
struct v4l2_format fmt;
...
fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
if (SYS_IOCTL(fd, VIDIOC_G_FMT, &fmt)) {

So it is completely legal to just initialize the 'type' field.

I suggest to either close this bug or reassign to valgrind.

Thanks,
Gregor