linux/drivers/media/v4l2-core
Hans Verkuil ee0f867465 media: v4l2-ctrls-core.c: check min/max for menu, controls
Menu controls that use the menu_skip_mask require that the min-max range is
inside 0-63.

Negative values obviously make no sense for menu controls, and the maximum
value is currently limited by the number of bits of the menu_skip_mask
value. However, if menu_skip_mask == 0, then larger menus are fine.

If we ever need to add support for larger menus that support the skip
mask, then more work is needed.

In the places where the menu_skip_mask is checked, use BIT_ULL to get the
bit to check and check if the bit number is < BITS_PER_LONG_LONG to avoid
shifting out of range. With the new check in check_range this should
never happen, but it is better to be safe and avoid static analyzer
warnings.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-02-16 11:46:32 +01:00
..
Kconfig media: remove the old videobuf framework 2023-09-27 09:40:01 +02:00
Makefile media: remove the old videobuf framework 2023-09-27 09:40:01 +02:00
tuner-core.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
v4l2-async.c media: v4l: async: Drop useless list move operation 2023-12-04 11:21:47 +01:00
v4l2-cci.c media: v4l2: cci: print leading 0 on error 2024-02-01 13:35:34 +01:00
v4l2-common.c media: v4l: Add a helper for setting up link-frequencies control 2024-02-01 13:41:05 +01:00
v4l2-compat-ioctl32.c media: core: Report the maximum possible number of buffers for the queue 2023-11-23 12:38:05 +01:00
v4l2-ctrls-api.c media: v4l2-ctrls-core.c: check min/max for menu, controls 2024-02-16 11:46:32 +01:00
v4l2-ctrls-core.c media: v4l2-ctrls-core.c: check min/max for menu, controls 2024-02-16 11:46:32 +01:00
v4l2-ctrls-defs.c media: Add AV1 uAPI 2023-06-09 16:13:01 +01:00
v4l2-ctrls-priv.h
v4l2-ctrls-request.c
v4l2-dev.c media: v4l2-dev: Check that g/s_selection are valid before selecting crop 2023-11-23 13:02:40 +01:00
v4l2-device.c
v4l2-dv-timings.c
v4l2-event.c media: v4l2-event: Annotate struct v4l2_subscribed_event with __counted_by 2023-10-07 10:55:45 +02:00
v4l2-fh.c
v4l2-flash-led-class.c
v4l2-fwnode.c media: v4l: fwnode: Parse MIPI DisCo for Imaging properties 2023-12-04 10:37:47 +01:00
v4l2-h264.c
v4l2-i2c.c
v4l2-ioctl.c media: core: v4l2-ioctl: check if ioctl is known to avoid NULL name 2023-11-23 13:01:32 +01:00
v4l2-jpeg.c
v4l2-mc.c media: v4l2-mc: Add debug prints for v4l2_fwnode_create_links_for_pad() 2024-01-22 17:23:59 +01:00
v4l2-mem2mem.c media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity 2024-02-05 12:57:45 +01:00
v4l2-spi.c
v4l2-subdev-priv.h
v4l2-subdev.c media: v4l2-subdev: Store frame interval in subdev state 2023-12-13 16:52:35 +01:00
v4l2-trace.c
v4l2-vp9.c