v4l2: Change to query only up to V4L2_CID_PRIVATE_BASE+V4L2_CID_MAX_CTRLS
authorekwange <ekwange@gmail.com>
Tue, 30 May 2023 08:52:34 +0000 (17:52 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 13 Jun 2023 19:02:18 +0000 (20:02 +0100)
commitcccf28fec19e970203056650c3d6adb431108182
treea37a66036cc5d8ffe52287b0fc1007aa9a4b12d6
parent4ab685c2a3e9786226fedcfff7c84cf137dee560
v4l2: Change to query only up to V4L2_CID_PRIVATE_BASE+V4L2_CID_MAX_CTRLS

Fix to prevent infinite querying.
There are devices that exceed V4L2_CID_PRIVATE_BASE+V4L2_CID_MAX_CTRLS
but do not return EINVAL.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4851>
subprojects/gst-plugins-good/sys/v4l2/v4l2_calls.c