obs-studio/plugins/linux-v4l2
Frank Löffler 8f3d4b6758 linux-v4l2: added range check for try_connect()
While the current code only ever calls try_connect() with the input
argument 'device' in the range of 0 and MAX_DEVICES, this adds a check
to ensure that future code does not break the following sprintf.

In addition, use snprintf instead of sprintf to ensure that if anything
breaks, the sprintf does not lead to memory corruption. Again, the new
check should already make sure of that, but the additional effort of
using snprintf instead of sprintf is so low that it is worth to have a
little more security in the future.
2021-01-29 09:24:42 -08:00
..
data/locale linux-v4l2: Add auto reset on timeout option 2021-01-20 16:45:05 -08:00
CMakeLists.txt linux-v4l2: Add virtual camera output 2020-10-30 02:00:14 -07:00
linux-v4l2.c linux-v4l2: Improve module detection 2021-01-25 04:14:29 -08:00
v4l2-controls.c linux-v4l2: Fix boolean and menu control types 2020-09-14 21:31:30 -07:00
v4l2-controls.h linux-v4l2: Add support for controls 2019-12-18 09:22:05 -08:00
v4l2-helpers.c linux-v4l2: Add auto reset on timeout option 2021-01-20 16:45:05 -08:00
v4l2-helpers.h linux-v4l2: Add auto reset on timeout option 2021-01-20 16:45:05 -08:00
v4l2-input.c libobs, linux-v4l2: Set thread names 2021-01-25 04:13:24 -08:00
v4l2-output.c linux-v4l2: added range check for try_connect() 2021-01-29 09:24:42 -08:00
v4l2-udev.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
v4l2-udev.h linux-v4l2: Replace custom udev callbacks 2015-04-23 21:50:36 +02:00