Skip to content

v4l2: silence valgrind warning

Tim Blechmann requested to merge timblechmann/gstreamer:feature/ioctl-fix into main

Valgrind complains about uninitialized memory used in an ioctl

==170306== Thread 11:
==170306== Syscall param ioctl(VKI_V4L2_G_TUNER).reserved points to uninitialised byte(s)
==170306==    at 0x719294F: ioctl (ioctl.c:36)
==170306==    by 0x3126A817: gst_v4l2_fill_lists (v4l2_calls.c:185)
==170306==    by 0x3126A817: gst_v4l2_open (v4l2_calls.c:589)
==170306==    by 0x3123F1C2: gst_v4l2_device_provider_probe_device (gstv4l2deviceprovider.c:122)
==170306==    by 0x3123F648: gst_v4l2_device_provider_device_from_udev (gstv4l2deviceprovider.c:301)
==170306==    by 0x3123F998: provider_thread (gstv4l2deviceprovider.c:395)
==170306==    by 0x796FA50: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.7200.4)
==170306==    by 0x710CAC2: start_thread (pthread_create.c:442)
==170306==    by 0x719DA03: clone (clone.S:100)
==170306==  Address 0x44008a34 is on thread 11's stack
==170306==  in frame #1, created by gst_v4l2_open (v4l2_calls.c:524)
==170306==  Uninitialised value was created by a stack allocation
==170306==    at 0x3126A024: gst_v4l2_open (v4l2_calls.c:524)
==170306==

Merge request reports