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

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

Merge request reports

Loading