Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/v4l-utils-1.20.0/lib/libv4l2/v4l2-plugin.c
Examining data/v4l-utils-1.20.0/lib/libv4l2/libv4l2-priv.h
Examining data/v4l-utils-1.20.0/lib/libv4l2/log.c
Examining data/v4l-utils-1.20.0/lib/libv4l2/v4l2convert.c
Examining data/v4l-utils-1.20.0/lib/libv4l2/libv4l2.c
Examining data/v4l-utils-1.20.0/lib/libv4l2/v4l2-plugin-android.c
Examining data/v4l-utils-1.20.0/lib/include/libv4l-plugin.h
Examining data/v4l-utils-1.20.0/lib/include/libv4l1.h
Examining data/v4l-utils-1.20.0/lib/include/libv4l1-videodev.h
Examining data/v4l-utils-1.20.0/lib/include/libv4l2rds.h
Examining data/v4l-utils-1.20.0/lib/include/libv4l2.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_t2_delivery.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-demux.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_ca_identifier.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/atsc_eit.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-file.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/vct.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_language.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-sat.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-dev.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-scan.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_network_name.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_event_short.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_service.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_atsc_service_location.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/pmt.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_isdbt_delivery.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_extension.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/mpeg_ts.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_partial_reception.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/crc32.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/mpeg_es.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/cat.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/libdvb-version.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_ca.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_sat.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/nit.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/header.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-log.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/mgt.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_hierarchy.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_frequency_list.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-frontend.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_cable_delivery.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/atsc_header.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/sdt.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/pat.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_ts_info.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_terrestrial_delivery.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_logical_channel.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/eit.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/countries.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-v5-std.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-fe.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_event_extended.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/mpeg_pes.h
Examining data/v4l-utils-1.20.0/lib/include/libdvbv5/descriptors.h
Examining data/v4l-utils-1.20.0/lib/include/libv4lconvert.h
Examining data/v4l-utils-1.20.0/lib/libv4l1/v4l1compat.c
Examining data/v4l-utils-1.20.0/lib/libv4l1/libv4l1-priv.h
Examining data/v4l-utils-1.20.0/lib/libv4l1/log.c
Examining data/v4l-utils-1.20.0/lib/libv4l1/libv4l1.c
Examining data/v4l-utils-1.20.0/lib/libv4l2rds/libv4l2rds.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/compat-soname.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/countries.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-fe-priv.h
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-zap-format.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/parse_string.h
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-scan.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5-std.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-priv.h
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-log.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-demux.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-local.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-legacy-channel-format.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-sat.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/crc32.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/tables/pmt.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/tables/nit.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/tables/mpeg_ts.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/tables/header.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/tables/cat.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/tables/mpeg_pes.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/tables/eit.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/tables/atsc_eit.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/tables/mpeg_es.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/tables/sdt.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/tables/mgt.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/tables/pat.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/tables/vct.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/parse_string.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.h
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_cable_delivery.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_hierarchy.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_event_extended.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_frequency_list.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_ca_identifier.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_ca.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_language.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_sat.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_event_short.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_partial_reception.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_network_name.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_service.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_ts_info.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_extension.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_logical_channel.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_t2_delivery.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_terrestrial_delivery.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_isdbt_delivery.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_atsc_service_location.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-vdr-format.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c
Examining data/v4l-utils-1.20.0/lib/libdvbv5/dvb-fe.c
Examining data/v4l-utils-1.20.0/lib/libv4l-mplane/libv4l-mplane.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/stv0680.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/processing/autogain.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/processing/gamma.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/processing/libv4lprocessing-priv.h
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/processing/whitebalance.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/processing/libv4lprocessing.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/processing/libv4lprocessing.h
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.h
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/helper-funcs.h
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/cpia1.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/jpeg.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg-internal.h
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/libv4lconvert-priv.h
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/spca501.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/jl2005bcd.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/pac207.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/ov511-decomp.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/helper.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/jpeg_memsrcdest.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/sn9c2028-decomp.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/sn9c20x.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.h
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol-priv.h
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/se401.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/spca561-decompress.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/jidctflt.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/crop.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/mr97310a.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/bayer.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/libv4lconvert.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/flip.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/jpgl.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/ov518-decomp.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/libv4lsyscall-priv.h
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/sn9c10x.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/sq905c.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/rgbyuv.c
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/jpeg_memsrcdest.h
Examining data/v4l-utils-1.20.0/lib/libv4lconvert/hm12.c
Examining data/v4l-utils-1.20.0/android-config.h
Examining data/v4l-utils-1.20.0/include/compiler.h
Examining data/v4l-utils-1.20.0/include/linux/bpf_common.h
Examining data/v4l-utils-1.20.0/include/linux/ivtv.h
Examining data/v4l-utils-1.20.0/include/linux/v4l2-subdev.h
Examining data/v4l-utils-1.20.0/include/linux/cec-funcs.h
Examining data/v4l-utils-1.20.0/include/linux/compiler.h
Examining data/v4l-utils-1.20.0/include/linux/v4l2-mediabus.h
Examining data/v4l-utils-1.20.0/include/linux/v4l2-common.h
Examining data/v4l-utils-1.20.0/include/linux/lirc.h
Examining data/v4l-utils-1.20.0/include/linux/videodev2.h
Examining data/v4l-utils-1.20.0/include/linux/media.h
Examining data/v4l-utils-1.20.0/include/linux/fb.h
Examining data/v4l-utils-1.20.0/include/linux/v4l2-controls.h
Examining data/v4l-utils-1.20.0/include/linux/media-bus-format.h
Examining data/v4l-utils-1.20.0/include/linux/dvb/frontend.h
Examining data/v4l-utils-1.20.0/include/linux/dvb/dmx.h
Examining data/v4l-utils-1.20.0/include/linux/bpf.h
Examining data/v4l-utils-1.20.0/include/linux/cec.h
Examining data/v4l-utils-1.20.0/include/gettext.h
Examining data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-io-config.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-controls.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-codecs.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-compliance/media-info.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-colors.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-formats.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-subdevs.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-input-output.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-debug.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.h
Examining data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-info.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-media.cpp
Examining data/v4l-utils-1.20.0/utils/libv4l2util/libv4l2util.h
Examining data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.h
Examining data/v4l-utils-1.20.0/utils/libv4l2util/frequencies.c
Examining data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c
Examining data/v4l-utils-1.20.0/utils/v4l2-sysfs-path/v4l2-sysfs-path.c
Examining data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c
Examining data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.h
Examining data/v4l-utils-1.20.0/utils/ivtv-ctl/ivtv-ctl.c
Examining data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.h
Examining data/v4l-utils-1.20.0/utils/cec-ctl/cec-pin.cpp
Examining data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp
Examining data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.h
Examining data/v4l-utils-1.20.0/utils/cec-compliance/cec-test-power.cpp
Examining data/v4l-utils-1.20.0/utils/cec-compliance/cec-test-adapter.cpp
Examining data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.cpp
Examining data/v4l-utils-1.20.0/utils/cec-compliance/cec-test-audio.cpp
Examining data/v4l-utils-1.20.0/utils/cec-compliance/cec-test-fuzzing.cpp
Examining data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp
Examining data/v4l-utils-1.20.0/utils/common/v4l2-info.h
Examining data/v4l-utils-1.20.0/utils/common/cv4l-helpers.h
Examining data/v4l-utils-1.20.0/utils/common/v4l-helpers.h
Examining data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c
Examining data/v4l-utils-1.20.0/utils/common/v4l-stream.c
Examining data/v4l-utils-1.20.0/utils/common/keymap.h
Examining data/v4l-utils-1.20.0/utils/common/v4l2-tpg.h
Examining data/v4l-utils-1.20.0/utils/common/codec-fwht.c
Examining data/v4l-utils-1.20.0/utils/common/v4l2-tpg-colors.h
Examining data/v4l-utils-1.20.0/utils/common/media-info.cpp
Examining data/v4l-utils-1.20.0/utils/common/v4l2-tpg-colors.c
Examining data/v4l-utils-1.20.0/utils/common/codec-fwht.h
Examining data/v4l-utils-1.20.0/utils/common/ir-encode.c
Examining data/v4l-utils-1.20.0/utils/common/media-info.h
Examining data/v4l-utils-1.20.0/utils/common/codec-v4l2-fwht.h
Examining data/v4l-utils-1.20.0/utils/common/v4l-stream.h
Examining data/v4l-utils-1.20.0/utils/common/toml.c
Examining data/v4l-utils-1.20.0/utils/common/v4l2-pix-formats.h
Examining data/v4l-utils-1.20.0/utils/common/ir-encode.h
Examining data/v4l-utils-1.20.0/utils/common/codec-v4l2-fwht.c
Examining data/v4l-utils-1.20.0/utils/common/fwht-ctrls.h
Examining data/v4l-utils-1.20.0/utils/common/toml.h
Examining data/v4l-utils-1.20.0/utils/common/v4l2-info.cpp
Examining data/v4l-utils-1.20.0/utils/common/keymap.c
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-tuner.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-sdr.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-common.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l-stream.c
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/codec-fwht.c
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-meta.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/media-info.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-colors.c
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-stds.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-vbi.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-edid.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-subdev.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.h
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-overlay.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-misc.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-selection.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-modes.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/codec-v4l2-fwht.c
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-info.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-vidcap.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-io.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-vidout.cpp
Examining data/v4l-utils-1.20.0/utils/qv4l2/capture-win.cpp
Examining data/v4l-utils-1.20.0/utils/qv4l2/vbi-tab.h
Examining data/v4l-utils-1.20.0/utils/qv4l2/ctrl-tab.cpp
Examining data/v4l-utils-1.20.0/utils/qv4l2/capture-win-qt.cpp
Examining data/v4l-utils-1.20.0/utils/qv4l2/raw2sliced.cpp
Examining data/v4l-utils-1.20.0/utils/qv4l2/capture-win-gl.cpp
Examining data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c
Examining data/v4l-utils-1.20.0/utils/qv4l2/capture-win-gl.h
Examining data/v4l-utils-1.20.0/utils/qv4l2/capture-win-qt.h
Examining data/v4l-utils-1.20.0/utils/qv4l2/general-tab.cpp
Examining data/v4l-utils-1.20.0/utils/qv4l2/vbi-tab.cpp
Examining data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-colors.c
Examining data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.cpp
Examining data/v4l-utils-1.20.0/utils/qv4l2/alsa_stream.c
Examining data/v4l-utils-1.20.0/utils/qv4l2/raw2sliced.h
Examining data/v4l-utils-1.20.0/utils/qv4l2/capture-win.h
Examining data/v4l-utils-1.20.0/utils/qv4l2/general-tab.h
Examining data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.h
Examining data/v4l-utils-1.20.0/utils/qv4l2/alsa_stream.h
Examining data/v4l-utils-1.20.0/utils/qv4l2/tpg-tab.cpp
Examining data/v4l-utils-1.20.0/utils/qvidcap/capture.h
Examining data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c
Examining data/v4l-utils-1.20.0/utils/qvidcap/qvidcap.cpp
Examining data/v4l-utils-1.20.0/utils/qvidcap/v4l-stream.c
Examining data/v4l-utils-1.20.0/utils/qvidcap/codec-fwht.c
Examining data/v4l-utils-1.20.0/utils/qvidcap/qvidcap.h
Examining data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-colors.c
Examining data/v4l-utils-1.20.0/utils/qvidcap/capture.cpp
Examining data/v4l-utils-1.20.0/utils/qvidcap/codec-v4l2-fwht.c
Examining data/v4l-utils-1.20.0/utils/qvidcap/v4l2-info.cpp
Examining data/v4l-utils-1.20.0/utils/qvidcap/paint.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg-micron.h
Examining data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg-em28xx.h
Examining data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg-tvp5150.h
Examining data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg.cpp
Examining data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg-bttv.h
Examining data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg-ac97.h
Examining data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg-saa7134.h
Examining data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg.h
Examining data/v4l-utils-1.20.0/utils/cec-follower/cec-follower.cpp
Examining data/v4l-utils-1.20.0/utils/cec-follower/cec-follower.h
Examining data/v4l-utils-1.20.0/utils/cec-follower/cec-tuner.cpp
Examining data/v4l-utils-1.20.0/utils/cec-follower/cec-processing.cpp
Examining data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c
Examining data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c
Examining data/v4l-utils-1.20.0/utils/dvb/dvb-fe-tool.c
Examining data/v4l-utils-1.20.0/utils/dvb/dvb-format-convert.c
Examining data/v4l-utils-1.20.0/utils/dvb/dvbv5-scan.c
Examining data/v4l-utils-1.20.0/utils/media-ctl/options.h
Examining data/v4l-utils-1.20.0/utils/media-ctl/v4l2subdev.h
Examining data/v4l-utils-1.20.0/utils/media-ctl/mediactl.h
Examining data/v4l-utils-1.20.0/utils/media-ctl/libv4l2subdev.c
Examining data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c
Examining data/v4l-utils-1.20.0/utils/media-ctl/options.c
Examining data/v4l-utils-1.20.0/utils/media-ctl/media-ctl.c
Examining data/v4l-utils-1.20.0/utils/media-ctl/mediactl-priv.h
Examining data/v4l-utils-1.20.0/utils/media-ctl/tools.h
Examining data/v4l-utils-1.20.0/utils/keytable/bpf_load.h
Examining data/v4l-utils-1.20.0/utils/keytable/parse.h
Examining data/v4l-utils-1.20.0/utils/keytable/keytable.c
Examining data/v4l-utils-1.20.0/utils/keytable/keymap.h
Examining data/v4l-utils-1.20.0/utils/keytable/bpf.c
Examining data/v4l-utils-1.20.0/utils/keytable/ir-encode.c
Examining data/v4l-utils-1.20.0/utils/keytable/toml.c
Examining data/v4l-utils-1.20.0/utils/keytable/ir-encode.h
Examining data/v4l-utils-1.20.0/utils/keytable/bpf.h
Examining data/v4l-utils-1.20.0/utils/keytable/toml.h
Examining data/v4l-utils-1.20.0/utils/keytable/bpf_protocols/grundig.c
Examining data/v4l-utils-1.20.0/utils/keytable/bpf_protocols/manchester.c
Examining data/v4l-utils-1.20.0/utils/keytable/bpf_protocols/rc_mm.c
Examining data/v4l-utils-1.20.0/utils/keytable/bpf_protocols/imon_rsc.c
Examining data/v4l-utils-1.20.0/utils/keytable/bpf_protocols/samsung36.c
Examining data/v4l-utils-1.20.0/utils/keytable/bpf_protocols/pulse_length.c
Examining data/v4l-utils-1.20.0/utils/keytable/bpf_protocols/bitmap.h
Examining data/v4l-utils-1.20.0/utils/keytable/bpf_protocols/raw.c
Examining data/v4l-utils-1.20.0/utils/keytable/bpf_protocols/pulse_distance.c
Examining data/v4l-utils-1.20.0/utils/keytable/bpf_protocols/xbox-dvd.c
Examining data/v4l-utils-1.20.0/utils/keytable/bpf_protocols/bpf_helpers.h
Examining data/v4l-utils-1.20.0/utils/keytable/bpf_load.c
Examining data/v4l-utils-1.20.0/utils/keytable/keymap.c
Examining data/v4l-utils-1.20.0/utils/cx18-ctl/cx18-ctl.c
Examining data/v4l-utils-1.20.0/utils/ir-ctl/keymap.h
Examining data/v4l-utils-1.20.0/utils/ir-ctl/bpf_encoder.c
Examining data/v4l-utils-1.20.0/utils/ir-ctl/ir-encode.c
Examining data/v4l-utils-1.20.0/utils/ir-ctl/toml.c
Examining data/v4l-utils-1.20.0/utils/ir-ctl/ir-ctl.c
Examining data/v4l-utils-1.20.0/utils/ir-ctl/bpf_encoder.h
Examining data/v4l-utils-1.20.0/utils/ir-ctl/ir-encode.h
Examining data/v4l-utils-1.20.0/utils/ir-ctl/toml.h
Examining data/v4l-utils-1.20.0/utils/ir-ctl/keymap.c
Examining data/v4l-utils-1.20.0/utils/libcecutil/cec-info.cpp
Examining data/v4l-utils-1.20.0/utils/libcecutil/cec-info.h
Examining data/v4l-utils-1.20.0/utils/libcecutil/cec-log.cpp
Examining data/v4l-utils-1.20.0/utils/libcecutil/cec-htng.h
Examining data/v4l-utils-1.20.0/utils/libcecutil/cec-parse.h
Examining data/v4l-utils-1.20.0/utils/libcecutil/cec-parse.cpp
Examining data/v4l-utils-1.20.0/utils/libcecutil/cec-log.h
Examining data/v4l-utils-1.20.0/utils/libcecutil/cec-htng-funcs.h
Examining data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp
Examining data/v4l-utils-1.20.0/contrib/test/ioctl_64.h
Examining data/v4l-utils-1.20.0/contrib/test/pixfmt-test.c
Examining data/v4l-utils-1.20.0/contrib/test/sliced-vbi-detect.c
Examining data/v4l-utils-1.20.0/contrib/test/v4l2grab.c
Examining data/v4l-utils-1.20.0/contrib/test/v4l2gl.c
Examining data/v4l-utils-1.20.0/contrib/test/ioctl-test.h
Examining data/v4l-utils-1.20.0/contrib/test/sliced-vbi-test.c
Examining data/v4l-utils-1.20.0/contrib/test/ioctl-test.c
Examining data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c
Examining data/v4l-utils-1.20.0/contrib/test/driver-test.c
Examining data/v4l-utils-1.20.0/contrib/test/capture-example.c
Examining data/v4l-utils-1.20.0/contrib/test/stress-buffer.c
Examining data/v4l-utils-1.20.0/contrib/test/sdlcam.c
Examining data/v4l-utils-1.20.0/contrib/test/ioctl_32.h
Examining data/v4l-utils-1.20.0/contrib/xc3028-firmware/tuner-xc2028-types.h
Examining data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c
Examining data/v4l-utils-1.20.0/contrib/xc3028-firmware/standards.h
Examining data/v4l-utils-1.20.0/contrib/xc3028-firmware/standards.c
Examining data/v4l-utils-1.20.0/contrib/xc3028-firmware/extract_head.h
Examining data/v4l-utils-1.20.0/contrib/decode_tm6000/decode_tm6000.c
Examining data/v4l-utils-1.20.0/contrib/freebsd/include/linux/ivtv.h
Examining data/v4l-utils-1.20.0/contrib/freebsd/include/linux/uinput.h
Examining data/v4l-utils-1.20.0/contrib/freebsd/include/linux/input.h
Examining data/v4l-utils-1.20.0/contrib/freebsd/include/linux/v4l2-common.h
Examining data/v4l-utils-1.20.0/contrib/freebsd/include/linux/videodev2.h
Examining data/v4l-utils-1.20.0/contrib/freebsd/include/linux/v4l2-controls.h
Examining data/v4l-utils-1.20.0/contrib/freebsd/include/linux/input-event-codes.h
Examining data/v4l-utils-1.20.0/contrib/gconv/jisx0213.h
Examining data/v4l-utils-1.20.0/contrib/gconv/en300-468-tab00.c
Examining data/v4l-utils-1.20.0/contrib/gconv/jis0208.h
Examining data/v4l-utils-1.20.0/contrib/gconv/arib-std-b24.c
Examining data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c
Examining data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c
Examining data/v4l-utils-1.20.0/contrib/gconv/jis0201.h
Examining data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c
Examining data/v4l-utils-1.20.0/contrib/cobalt-ctl/s-record.h
Examining data/v4l-utils-1.20.0/contrib/cobalt-ctl/s-record.c
Examining data/v4l-utils-1.20.0/contrib/parsers/cx25821/setvideosetting.c
Examining data/v4l-utils-1.20.0/contrib/parsers/cx25821/regReadWrite.c
Examining data/v4l-utils-1.20.0/contrib/parsers/cx25821/cx25821-medusa-decoder.c
Examining data/v4l-utils-1.20.0/contrib/parsers/cx25821/medusaReadWrite.c
Examining data/v4l-utils-1.20.0/contrib/parsers/cx25821/upstream_app.c
Examining data/v4l-utils-1.20.0/contrib/rds-saa6588/rds-saa6588.c

FINAL RESULTS:

data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:243:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(filename, DEFFILEMODE);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:423:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	ret = readlink(sysname, target, sizeof(target) - 1);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors.c:1370:3:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
		strncat (hex, t, sizeof(hex) - 1);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors.c:1377:4:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
			strncat(hex, " ", sizeof(hex) - 1);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1770:14:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		link_len = readlink(iter->c_str(), link, 64);
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:465:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	ret = readlink(sysname, target, sizeof(target) - 1);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-common.cpp:267:14:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		link_len = readlink(iter->c_str(), link, 64);
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:190:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(path, "%s%s/video4linux/", cobalt_sysfs, cobalt_entry->d_name);
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:201:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(path, "%s%s/mtd/", cobalt_sysfs, cobalt_entry->d_name);
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:549:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(newdev, "video%s", device);
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:597:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "/sys/class/video4linux/%s/device/mtd/", device);
data/v4l-utils-1.20.0/contrib/decode_tm6000/decode_tm6000.c:130:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	if (debug) fprintf(stderr, fmt, ##arg)
data/v4l-utils-1.20.0/contrib/test/ioctl-test.c:105:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "ioctl 0x%08x = %s('%c', %2d, %4d) = %-*s",
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:320:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(BRIGHT_COLOR, color);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:322:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(NORMAL_COLOR, color);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:325:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, ap);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:432:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(devname, "/dev/%s", p + 1);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:443:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(devname, "/dev/dvb/adapter%s", s);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:445:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(devname, "/dev/%s", p + 1);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:973:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(STYLE_ENTITY"]\n");
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:975:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(STYLE_ENT_SINK"]\n");
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:977:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(STYLE_ENT_SRC"]\n");
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:1040:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf("\t%s:%s -> %s:%s [" STYLE_DATA_LINK,
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:1080:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf("\t%s -> %s [" STYLE_INTF_LINK,
data/v4l-utils-1.20.0/contrib/test/pixfmt-test.c:405:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf (stderr, templ, ap);
data/v4l-utils-1.20.0/contrib/test/sdlcam.c:1025:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(name, PICDIR "/delme_%d.%s", (int) t, ppm ? "ppm" : "jpg");
data/v4l-utils-1.20.0/contrib/test/stress-buffer.c:102:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		ret = access(fname, W_OK);
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:169:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(out_name, "%s/out%03d.ppm", out_dir, i);
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:171:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(out_name, "%s/out%03d.raw", out_dir, i);
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:235:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(out_name, "%s/out%03d.ppm", out_dir, i);
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:237:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(out_name, "%s/out%03d.raw", out_dir, i);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:548:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(name, p);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:550:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(name, binfile);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:943:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
					fprintf(fp, write_hunk_fix_endian,
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:946:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
					fprintf(fp, write_hunk,
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:953:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(fp, end_extract, seek_file, md5, "xc3028-v27.fw",
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-log.h:44:87:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
typedef void (*dvb_logfunc)(int level, const char *fmt, ...) __attribute__ (( format( printf, 2, 3 )));
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-log.h:108:80:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void dvb_default_log(int level, const char *fmt, ...) __attribute__ (( format( printf, 2, 3 )));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:202:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__ (( format( printf, 4, 5 )));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:220:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__ (( format( printf, 4, 5 )));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:242:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(msg->cmd, cmd);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:335:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(msg->cmd, cmd);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:429:27:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	__attribute__ (( format( scanf, 4, 5 )));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:603:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(str, octet);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:1460:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(priv->output_charset, par->output_charset);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:1461:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(priv->default_charset, par->default_charset);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:1485:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(lnb_name, par->lnb->name);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-fe.c:1835:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		size = snprintf(*buf, *len, " %" PRIu64, (uint64_t)stat->uvalue);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:266:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(err_msg, _("unknown delivery system type for %s"),
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:277:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(err_msg, _("Doesn't know how to handle delimiter '%s'"),
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:316:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(err_msg, _("parameter %i (%s) missing"),
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:325:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(err_msg, _("parameter %s invalid: %s"),
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:360:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(entry->channel, p);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:801:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(entry->channel, p);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:827:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(err_msg, _("value %s is invalid for %s"),
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:1291:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(channel, p);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:1327:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(channel, p);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-log.c:71:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(out, fmt, ap);
data/v4l-utils-1.20.0/lib/libdvbv5/parse_string.c:312:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(out_cs, output_charset);
data/v4l-utils-1.20.0/lib/libdvbv5/parse_string.c:313:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(out_cs, CS_OPTIONS);
data/v4l-utils-1.20.0/lib/libv4l1/libv4l1-priv.h:36:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(v4l1_log_file, "libv4l1: error " __VA_ARGS__); \
data/v4l-utils-1.20.0/lib/libv4l1/libv4l1-priv.h:39:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, "libv4l1: error " __VA_ARGS__); \
data/v4l-utils-1.20.0/lib/libv4l1/libv4l1-priv.h:45:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(v4l1_log_file, "libv4l1: warning " __VA_ARGS__); \
data/v4l-utils-1.20.0/lib/libv4l1/libv4l1-priv.h:48:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, "libv4l1: warning " __VA_ARGS__); \
data/v4l-utils-1.20.0/lib/libv4l1/libv4l1-priv.h:54:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(v4l1_log_file, "libv4l1: " __VA_ARGS__); \
data/v4l-utils-1.20.0/lib/libv4l2/libv4l2-priv.h:40:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(v4l2_log_file, "libv4l2: error " __VA_ARGS__); \
data/v4l-utils-1.20.0/lib/libv4l2/libv4l2-priv.h:43:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, "libv4l2: error " __VA_ARGS__); \
data/v4l-utils-1.20.0/lib/libv4l2/libv4l2-priv.h:58:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(v4l2_log_file, "libv4l2: warning " __VA_ARGS__); \
data/v4l-utils-1.20.0/lib/libv4l2/libv4l2-priv.h:61:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, "libv4l2: warning " __VA_ARGS__); \
data/v4l-utils-1.20.0/lib/libv4l2/libv4l2-priv.h:67:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(v4l2_log_file, "libv4l2: " __VA_ARGS__); \
data/v4l-utils-1.20.0/lib/libv4l2/v4l2-plugin-android.c:102:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(filename, "%s/%s", g_plugin_search_paths[i], entry->d_name);
data/v4l-utils-1.20.0/lib/libv4lconvert/helper.c:88:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl(helper, helper, NULL);
data/v4l-utils-1.20.0/lib/libv4lconvert/libv4lconvert-priv.h:47:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(data->error_msg, V4LCONVERT_ERROR_MSG_SIZE, \
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:70:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(f, fmt, ## args); \
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:78:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, fmt, ## args); \
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:88:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(priv->error_string, sizeof(priv->error_string), fmt, ## args); \
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:263:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(priv->error_string, sizeof(priv->error_string), \
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.cpp:1203:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(newdev, "/dev/cec%s", optarg);
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.h:204:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf("\t\tinfo: " fmt, ##args);		\
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.h:227:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("\t\%s: %s(%d): " fmt,				\
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.h:259:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf("\t\t%s: %s(%d): " fmt, show_colors ?			\
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp:783:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	printf("%s Channel ", dig_bcast_system2s(system));
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp:803:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	switch (system) {
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp:841:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	switch (system) {
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp:859:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		return fail("invalid digital broadcast system %u", system);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1891:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(newdev, "/dev/cec%s", optarg);
data/v4l-utils-1.20.0/utils/cec-follower/cec-follower.cpp:369:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(newdev, "/dev/cec%s", optarg);
data/v4l-utils-1.20.0/utils/cec-follower/cec-follower.h:159:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf("\t\tinfo: " fmt, ##args);	\
data/v4l-utils-1.20.0/utils/cec-follower/cec-follower.h:165:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(">>> " fmt, ##args);		\
data/v4l-utils-1.20.0/utils/cec-follower/cec-follower.h:172:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf("\t\twarn: %s(%d): " fmt, __FILE__, __LINE__, ##args);	\
data/v4l-utils-1.20.0/utils/cec-follower/cec-follower.h:183:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf("\t\twarn: %s(%d): " fmt,	\
data/v4l-utils-1.20.0/utils/cec-follower/cec-tuner.cpp:469:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	__u8 system;
data/v4l-utils-1.20.0/utils/cec-follower/cec-tuner.cpp:472:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	cec_ops_select_analogue_service(msg, &type, &freq, &system);
data/v4l-utils-1.20.0/utils/cec-follower/cec-tuner.cpp:473:18:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (type < 3 && system < 9) {
data/v4l-utils-1.20.0/utils/cec-follower/cec-tuner.cpp:476:46:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		idx = analog_get_nearest_service_idx(type, system, freq_khz);
data/v4l-utils-1.20.0/utils/common/keymap.c:212:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(copy, str);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg.h:26:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define pr_info printf
data/v4l-utils-1.20.0/utils/cx18-ctl/cx18-ctl.c:272:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(newdev, "/dev/video%s", device);
data/v4l-utils-1.20.0/utils/dvb/dvb-fe-tool.c:107:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, x);                                     \
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:167:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(out, fmt, ap);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:418:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__ (( format( printf, 3, 4 )));
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:459:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__ (( format( printf, 2, 3 )));
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:480:27:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	__attribute__ (( format( scanf, 3, 4 )));
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:1097:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(lnb_name, par->lnb->name);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:1145:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(output_charset, par->output_charset);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:1146:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(default_charset, par->default_charset);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-scan.c:105:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, x);                                     \
data/v4l-utils-1.20.0/utils/dvb/dvbv5-scan.c:112:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, x);                                     \
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:145:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, x);                                     \
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:152:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, x);                                     \
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:164:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, msg, __diff, ##args);				\
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:1135:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(args.confname, R_OK)) {
data/v4l-utils-1.20.0/utils/ir-ctl/ir-ctl.c:699:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(s->keycode, arg);
data/v4l-utils-1.20.0/utils/ir-ctl/keymap.c:212:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(copy, str);
data/v4l-utils-1.20.0/utils/ivtv-ctl/ivtv-ctl.c:350:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(newdev, "/dev/video%s", device);
data/v4l-utils-1.20.0/utils/keytable/keymap.c:212:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(copy, str);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:224:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(fp, fmt, pme->name);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:502:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(nextcfg->driver, driver);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:505:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(nextcfg->table, table);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:508:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(nextcfg->fname, filename);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:780:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(cur_name->name, dname);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:781:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(cur_name->name, entry->d_name);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:832:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(file, dname);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:833:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(file, event);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:856:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(next->key, p);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:873:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(next->value, p);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:921:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(n, name);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1019:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(name, rc_dev->sysfs_name);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1043:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(name, dirname);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1087:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(name, rc_dev->sysfs_name);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1088:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(name, dirname);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1163:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(name, rc_dev->sysfs_name);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1210:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(rc_dev->lirc_name, DEV);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1211:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
					strcat(rc_dev->lirc_name, uevent->value);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1254:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(rc_dev->input_name, DEV);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1255:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(rc_dev->input_name, uevent->value);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1273:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(rc_dev->drv_name, uevent->value);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1277:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(rc_dev->dev_name, uevent->value);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1281:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(rc_dev->keytable_name, uevent->value);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1881:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(("Failed to detach BPF prog id %u: %m\n"),
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:474:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(devname, "/dev/%s", p + 1);
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:485:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(devname, "/dev/dvb/adapter%s", s);
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:487:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(devname, "/dev/%s", p + 1);
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:499:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(entity->devname, devname);
data/v4l-utils-1.20.0/utils/media-ctl/media-ctl.c:555:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			(void (*)(void *, ...))fprintf, stdout);
data/v4l-utils-1.20.0/utils/media-ctl/options.c:178:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (!access(device, F_OK))
data/v4l-utils-1.20.0/utils/qv4l2/alsa_stream.c:506:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(pdevice_new, "plug%s", pdevice);
data/v4l-utils-1.20.0/utils/qv4l2/ctrl-tab.cpp:426:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(c[idx].string, getString(id).toLatin1());
data/v4l-utils-1.20.0/utils/qv4l2/ctrl-tab.cpp:557:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(c.string, getString(id).toLatin1());
data/v4l-utils-1.20.0/utils/qv4l2/general-tab.cpp:1809:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	what.sprintf("TV Standard (0x%llX)\n"
data/v4l-utils-1.20.0/utils/qv4l2/general-tab.cpp:1879:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	what.sprintf("Video Timings (%u)\n"
data/v4l-utils-1.20.0/utils/qvidcap/capture.cpp:1063:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy((char *)fmt.description, fcc2s(m_v4l_fmt.g_pixelformat()).c_str());
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:792:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access(optarg, F_OK) != -1) {
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:259:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(buf, show_colors ?
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:264:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(buf, show_colors ? COLOR_GREEN("OK") : "OK");
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:269:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(buf, show_colors ? COLOR_RED("FAIL") : "FAIL");
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:864:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(newdev, "/dev/%s%s", devname, device);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:1259:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(suffix, " (%s %u)",
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.h:201:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf("\t\tinfo: " fmt, ##args);	\
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.h:208:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf("\t\t%s: %s(%d): " fmt,		\
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.h:234:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf("\t\t%s: %s(%d): " fmt, show_colors ?			\
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-overlay.cpp:369:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(newdev, "/dev/fb%s", fb_device);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:1035:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(newdev, "/dev/%s%s", devname, device);
data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg.cpp:477:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(newdev, "/dev/video%s", device);
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:537:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, short_options, long_options, &idx);
data/v4l-utils-1.20.0/contrib/rds-saa6588/rds-saa6588.c:85:21:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while (-1 != (c=getopt(argc,argv,"hvd:"))) {
data/v4l-utils-1.20.0/contrib/test/capture-example.c:588:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv,
data/v4l-utils-1.20.0/contrib/test/pixfmt-test.c:1912:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long (argc, argv,
data/v4l-utils-1.20.0/contrib/test/stress-buffer.c:80:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:992:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "", long_options, &option_index);
data/v4l-utils-1.20.0/lib/libdvbv5/countries.c:372:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#    define secure_getenv getenv
data/v4l-utils-1.20.0/lib/libv4l1/libv4l1.c:332:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		lfname = getenv("LIBV4L1_LOG_FILENAME");
data/v4l-utils-1.20.0/lib/libv4l2/libv4l2.c:673:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		lfname = getenv("LIBV4L2_LOG_FILENAME");
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:604:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	s = getenv("LIBV4LCONTROL_SYSFS_PREFIX");
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:630:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	s = getenv("LIBV4LCONTROL_FLAGS");
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:682:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	s = getenv("LIBV4LCONTROL_CONTROLS");
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.cpp:1145:37:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *env_media_apps_color = getenv("MEDIA_APPS_COLOR");
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.cpp:1147:2:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srandom(time(NULL));
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.cpp:1176:8:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		ch = getopt_long(argc, argv, short_options,
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test-fuzzing.cpp:44:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		msg.msg[1] = cmd = random() & 0xff;
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test-fuzzing.cpp:47:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		msg.len = (random() & 0xf) + 2;
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test-fuzzing.cpp:65:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			msg.msg[i] = random() & 0xff;
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1509:2:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srandom(seed);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1512:34:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		unsigned usecs1 = mod_usleep ? random() % mod_usleep : static_cast<unsigned>(sleep_before_on * 1000000);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1513:34:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		unsigned usecs2 = mod_usleep ? random() % mod_usleep : static_cast<unsigned>(sleep_before_off * 1000000);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1873:8:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		ch = getopt_long(argc, argv, short_options,
data/v4l-utils-1.20.0/utils/cec-follower/cec-follower.cpp:342:8:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		ch = getopt_long(argc, argv, short_options,
data/v4l-utils-1.20.0/utils/cx18-ctl/cx18-ctl.c:253:8:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		ch = getopt_long(argc, argv, short_options,
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:1025:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *homedir = getenv("HOME");
data/v4l-utils-1.20.0/utils/ivtv-ctl/ivtv-ctl.c:308:8:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		ch = getopt_long(argc, argv, short_options,
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:148:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		if (realpath(fname, link)) {
data/v4l-utils-1.20.0/utils/media-ctl/options.c:224:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "d:e:f:hil:prvV:",
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:764:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		opt = getopt_long(argc, argv, short_options,
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:1473:37:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *env_media_apps_color = getenv("MEDIA_APPS_COLOR");
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:1530:8:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		ch = getopt_long(argc, argv, short_options,
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:1151:8:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		ch = getopt_long(argc, argv, short_options,
data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg.cpp:449:8:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		ch = getopt_long(argc, argv, short_options,
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:97:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(device, O_RDONLY)) < 0) {
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:182:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char path[256];
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:183:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char mtd_device[20];
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:233:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644)) < 0) {
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:268:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(device, O_RDONLY)) < 0) {
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:322:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(filename, O_RDONLY)) < 0) {
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:412:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(device, O_RDWR)) < 0) {
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:523:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[256];
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:524:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mtd_device[20];
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:547:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				static char newdev[20];
data/v4l-utils-1.20.0/contrib/decode_tm6000/decode_tm6000.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char outbuf[692224];
data/v4l-utils-1.20.0/contrib/decode_tm6000/decode_tm6000.c:92:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		nbufs=atoi(arg);
data/v4l-utils-1.20.0/contrib/decode_tm6000/decode_tm6000.c:136:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (outbuf,buf->start,buf->length);
data/v4l-utils-1.20.0/contrib/decode_tm6000/decode_tm6000.c:253:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[TM6000_URB_MSG_LEN], img[720*2*480];
data/v4l-utils-1.20.0/contrib/decode_tm6000/decode_tm6000.c:268:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd=open(filename,O_RDONLY);
data/v4l-utils-1.20.0/contrib/decode_tm6000/decode_tm6000.c:278:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fout=fopen(filename,"w");
data/v4l-utils-1.20.0/contrib/freebsd/include/linux/uinput.h:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[UINPUT_MAX_NAME_SIZE];
data/v4l-utils-1.20.0/contrib/freebsd/include/linux/uinput.h:223:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[UINPUT_MAX_NAME_SIZE];
data/v4l-utils-1.20.0/contrib/freebsd/include/linux/videodev2.h:925:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char APP_data[60];      /* Data in the JPEG APPn segment. */
data/v4l-utils-1.20.0/contrib/freebsd/include/linux/videodev2.h:928:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char COM_data[60];      /* Data in JPEG COM segment */
data/v4l-utils-1.20.0/contrib/freebsd/include/linux/videodev2.h:1791:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		     name[32];
data/v4l-utils-1.20.0/contrib/freebsd/include/linux/videodev2.h:2417:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[32];
data/v4l-utils-1.20.0/contrib/freebsd/include/linux/videodev2.h:2434:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/v4l-utils-1.20.0/contrib/gconv/arib-std-b24.c:1428:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[2];						      \
data/v4l-utils-1.20.0/contrib/gconv/en300-468-tab00.c:463:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[2];							      \
data/v4l-utils-1.20.0/contrib/gconv/en300-468-tab00.c:479:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      static const char map[6] = "\xc6\xc7\xca\xce\x00\xcd";	      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:87:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     (((const unsigned char *) (addr))[1] << 8				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:88:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      | ((const unsigned char *) (addr))[0])
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:90:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     (((((const unsigned char *) (addr))[3] << 8			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:91:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	| ((const unsigned char *) (addr))[2]) << 8			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:92:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       | ((const unsigned char *) (addr))[1]) << 8			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:93:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      | ((const unsigned char *) (addr))[0])
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:97:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[0] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:98:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[1] = __val >> 8;			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:102:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[0] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:104:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[1] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:106:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[2] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:108:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[3] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:112:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     (((const unsigned char *) (addr))[0] << 8				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:113:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      | ((const unsigned char *) (addr))[1])
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:115:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     (((((const unsigned char *) (addr))[0] << 8			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:116:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	| ((const unsigned char *) (addr))[1]) << 8			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:117:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       | ((const unsigned char *) (addr))[2]) << 8			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:118:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      | ((const unsigned char *) (addr))[3])
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:122:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[1] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:123:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[0] = __val >> 8;			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:127:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[3] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:129:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[2] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:131:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[1] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:133:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[0] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/loop.c:428:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char bytebuf[MAX_NEEDED_INPUT];
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:218:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     (((const unsigned char *) (addr))[1] << 8				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:219:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      | ((const unsigned char *) (addr))[0])
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:221:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     (((((const unsigned char *) (addr))[3] << 8			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:222:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	| ((const unsigned char *) (addr))[2]) << 8			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:223:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       | ((const unsigned char *) (addr))[1]) << 8			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:224:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      | ((const unsigned char *) (addr))[0])
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:228:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[0] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:229:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[1] = __val >> 8;			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:233:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[0] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:235:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[1] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:237:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[2] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:239:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[3] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:243:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     (((const unsigned char *) (addr))[0] << 8				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:244:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      | ((const unsigned char *) (addr))[1])
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:246:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     (((((const unsigned char *) (addr))[0] << 8			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:247:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	| ((const unsigned char *) (addr))[1]) << 8			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:248:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       | ((const unsigned char *) (addr))[2]) << 8			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:249:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      | ((const unsigned char *) (addr))[3])
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:253:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[1] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:254:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[0] = __val >> 8;			      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:258:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[3] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:260:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[2] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:262:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[1] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/iconv/skeleton.c:264:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((unsigned char *) (addr))[0] = __val;				      \
data/v4l-utils-1.20.0/contrib/gconv/jis0208.h:40:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char __jisx0208_from_ucs4_lat1[JIS0208_LAT1_MAX + 1
data/v4l-utils-1.20.0/contrib/gconv/jis0208.h:42:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char __jisx0208_from_ucs4_greek[0xc1][2];
data/v4l-utils-1.20.0/contrib/parsers/cx25821/medusaReadWrite.c:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *device_str[4] = {"/dev/video11", "/dev/video23", "/dev/video35", "/dev/video47"};
data/v4l-utils-1.20.0/contrib/parsers/cx25821/medusaReadWrite.c:91:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if((fp = open(device_str[device_id-1], O_RDWR)) == -1)
data/v4l-utils-1.20.0/contrib/parsers/cx25821/regReadWrite.c:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *device_str[4] = {"/dev/video11", "/dev/video23", "/dev/video35", "/dev/video47"};
data/v4l-utils-1.20.0/contrib/parsers/cx25821/regReadWrite.c:91:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if((fp = open(device_str[device_id-1], O_RDWR)) == -1)
data/v4l-utils-1.20.0/contrib/parsers/cx25821/setvideosetting.c:72:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *device_str[4] = {"/dev/video11", "/dev/video23", "/dev/video35", "/dev/video47"};
data/v4l-utils-1.20.0/contrib/parsers/cx25821/setvideosetting.c:95:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if((fp = open(device_str[device_id-1], O_RDWR)) == -1)
data/v4l-utils-1.20.0/contrib/parsers/cx25821/upstream_app.c:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *video_device_str[4][2] = {{"/dev/video8", "/dev/video9"}, {"/dev/video20", "/dev/video21"},
data/v4l-utils-1.20.0/contrib/parsers/cx25821/upstream_app.c:87:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *audio_device_str[4] = {"/dev/video10", "/dev/video22", "/dev/video34", "/dev/video46"};
data/v4l-utils-1.20.0/contrib/parsers/cx25821/upstream_app.c:132:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE* file_ptr = fopen(argv[4], "r");
data/v4l-utils-1.20.0/contrib/parsers/cx25821/upstream_app.c:169:30:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                    if((fp = open(video_device_str[device_id-1][channel_select-1], O_RDWR)) == -1)  
data/v4l-utils-1.20.0/contrib/parsers/cx25821/upstream_app.c:198:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                if((fp = open(audio_device_str[device_id-1], O_RDWR)) == -1)                
data/v4l-utils-1.20.0/contrib/rds-saa6588/rds-saa6588.c:22:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char rds_psn[9];
data/v4l-utils-1.20.0/contrib/rds-saa6588/rds-saa6588.c:23:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char rds_txt[65];
data/v4l-utils-1.20.0/contrib/rds-saa6588/rds-saa6588.c:81:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char b[40];
data/v4l-utils-1.20.0/contrib/rds-saa6588/rds-saa6588.c:102:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (-1 == (f = open(device,O_RDWR))) {
data/v4l-utils-1.20.0/contrib/test/capture-example.c:538:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(dev_name, O_RDWR /* required */ | O_NONBLOCK, 0);
data/v4l-utils-1.20.0/contrib/test/ioctl-test.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char marker[8] = { 0xde, 0xad, 0xbe, 0xef, 0xad, 0xbc, 0xcb, 0xda };
data/v4l-utils-1.20.0/contrib/test/ioctl-test.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char p[sizeof(union v4l_parms) + 2 * sizeof(marker)];
data/v4l-utils-1.20.0/contrib/test/ioctl-test.c:82:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(device, O_RDONLY|O_NONBLOCK)) < 0) {
data/v4l-utils-1.20.0/contrib/test/ioctl-test.c:88:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[maxlen + 100];
data/v4l-utils-1.20.0/contrib/test/ioctl-test.c:103:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, marker, sizeof(marker));
data/v4l-utils-1.20.0/contrib/test/ioctl-test.c:104:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p + sz + sizeof(marker), marker, sizeof(marker));
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:70:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char media_device[256] = "/dev/media0";
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:103:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		max_tsout = atoi(arg);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:399:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char devname[32];
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:400:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sysname[32];
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:401:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char target[1024];
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:420:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(sysname, "/sys/dev/char/%u:%u",
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:818:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	mc->fd = open(devname, O_RDWR);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:902:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				i = atoi(&entity->name[strlen(DEMUX_TSOUT)]);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:904:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				i = atoi(&entity->name[strlen(DVR_TSOUT)]);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:1030:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					i = atoi(&sink->name[strlen(DEMUX_TSOUT)]);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:1032:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					i = atoi(&sink->name[strlen(DVR_TSOUT)]);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:1071:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					i = atoi(&sink->name[strlen(DEMUX_TSOUT)]);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:1073:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					i = atoi(&sink->name[strlen(DVR_TSOUT)]);
data/v4l-utils-1.20.0/contrib/test/pixfmt-test.c:1013:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[64];
data/v4l-utils-1.20.0/contrib/test/pixfmt-test.c:1768:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	dev_fd = open (dev_name, O_RDWR /* required */ | O_NONBLOCK, 0);
data/v4l-utils-1.20.0/contrib/test/sdlcam.c:106:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[SIZE];
data/v4l-utils-1.20.0/contrib/test/sdlcam.c:944:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fout = fopen(out_name, "w");
data/v4l-utils-1.20.0/contrib/test/sdlcam.c:974:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *outfile = fopen(jpegFilename, "wb");
data/v4l-utils-1.20.0/contrib/test/sdlcam.c:1018:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[1024];
data/v4l-utils-1.20.0/contrib/test/sliced-vbi-detect.c:99:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fh = open(device, O_RDONLY);
data/v4l-utils-1.20.0/contrib/test/sliced-vbi-test.c:136:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char cc[CC_SIZE + 1];
data/v4l-utils-1.20.0/contrib/test/sliced-vbi-test.c:137:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char cc_last[2 + 1] = { 0, 0 };
data/v4l-utils-1.20.0/contrib/test/sliced-vbi-test.c:138:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cc_disp[CC_SIZE + 1];
data/v4l-utils-1.20.0/contrib/test/sliced-vbi-test.c:352:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char pr_label[20];
data/v4l-utils-1.20.0/contrib/test/sliced-vbi-test.c:353:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char label[20];
data/v4l-utils-1.20.0/contrib/test/sliced-vbi-test.c:434:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fh = open(device, O_RDONLY);
data/v4l-utils-1.20.0/contrib/test/stress-buffer.c:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1000];
data/v4l-utils-1.20.0/contrib/test/stress-buffer.c:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fname[100];
data/v4l-utils-1.20.0/contrib/test/stress-buffer.c:74:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_file = fopen(fname, "a+");
data/v4l-utils-1.20.0/contrib/test/stress-buffer.c:90:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(argv[1], O_RDONLY);
data/v4l-utils-1.20.0/contrib/test/v4l2gl.c:247:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				((char *)buffers[buf.index].start) + j);
data/v4l-utils-1.20.0/contrib/test/v4l2gl.c:301:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		val = atoi(arg);
data/v4l-utils-1.20.0/contrib/test/v4l2gl.c:306:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		val = atoi(arg);
data/v4l-utils-1.20.0/contrib/test/v4l2gl.c:311:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		val = atoi(arg);
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:133:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				out_name[25 + strlen(out_dir)];
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:173:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fout = fopen(out_name, "w");
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:211:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				out_name[25 + strlen(out_dir)];
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:239:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fout = fopen(out_name, "w");
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:272:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(dev_name, O_RDWR | O_NONBLOCK, 0);
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:275:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(dev_name, O_RDWR, 0);
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:277:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(dev_name, O_RDWR | O_NONBLOCK, 0);
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:408:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[4];
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:418:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		val = atoi(arg);
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:423:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		val = atoi(arg);
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:431:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(s, arg, len);
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:440:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		val = atoi(arg);
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:451:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		val = atoi(arg);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:104:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_desc, f->desc, f->nr_desc * sizeof(*new_desc));
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:105:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_desc + f->nr_desc, d, sizeof(*d));
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:119:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_desc, f->desc, i * sizeof(*f->desc));
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:120:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_desc + i, f->desc + i + 1, (f->nr_desc - i - 1) * sizeof(*f->desc));
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:143:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(name, data, 32);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:179:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(f->desc[i].data, p, f->desc[i].size);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:202:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, f->name, 32);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:221:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, f->desc[i].data, f->desc[i].size);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:240:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:273:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_WRONLY | O_CREAT, 0644);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:542:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char name[strlen(binfile)+4], *p;
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:547:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(name + n, "%03i", i);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:551:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(name + strlen(name), "%03i", i);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:555:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fp = fopen(name,"w");
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:648:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(temp_data, fdata, fsize);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:745:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(hunk->data, p2, hunk->size);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:842:5:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp=fopen(seek_file, "r");
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:898:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(write_file, "w");
data/v4l-utils-1.20.0/contrib/xc3028-firmware/standards.c:56:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(n_data, v->data, old_size);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/standards.c:66:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(v->data + i, ptr, len);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/standards.c:95:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(file = fopen(filename, "r"))) {
data/v4l-utils-1.20.0/contrib/xc3028-firmware/standards.c:147:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*data, v->data, v_i);
data/v4l-utils-1.20.0/include/gettext.h:217:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char msg_ctxt_id[msgctxt_len + msgid_len];
data/v4l-utils-1.20.0/include/gettext.h:219:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/v4l-utils-1.20.0/include/gettext.h:227:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
data/v4l-utils-1.20.0/include/gettext.h:229:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
data/v4l-utils-1.20.0/include/gettext.h:263:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char msg_ctxt_id[msgctxt_len + msgid_len];
data/v4l-utils-1.20.0/include/gettext.h:265:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/v4l-utils-1.20.0/include/gettext.h:273:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
data/v4l-utils-1.20.0/include/gettext.h:275:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
data/v4l-utils-1.20.0/include/linux/bpf.h:394:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	build_id[BPF_BUILD_ID_SIZE];
data/v4l-utils-1.20.0/include/linux/bpf.h:416:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char	map_name[BPF_OBJ_NAME_LEN];
data/v4l-utils-1.20.0/include/linux/bpf.h:464:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char		prog_name[BPF_OBJ_NAME_LEN];
data/v4l-utils-1.20.0/include/linux/bpf.h:3552:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[BPF_OBJ_NAME_LEN];
data/v4l-utils-1.20.0/include/linux/bpf.h:3585:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char  name[BPF_OBJ_NAME_LEN];
data/v4l-utils-1.20.0/include/linux/cec-funcs.h:754:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg->msg + 2, prog_title, len);
data/v4l-utils-1.20.0/include/linux/cec-funcs.h:764:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(prog_title, msg->msg + 2, len);
data/v4l-utils-1.20.0/include/linux/cec-funcs.h:822:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg->msg + 2, language, 3);
data/v4l-utils-1.20.0/include/linux/cec-funcs.h:828:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(language, msg->msg + 2, 3);
data/v4l-utils-1.20.0/include/linux/cec-funcs.h:1123:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg->msg + 2, vendor_cmd, size);
data/v4l-utils-1.20.0/include/linux/cec-funcs.h:1148:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg->msg + 5, vendor_cmd, size);
data/v4l-utils-1.20.0/include/linux/cec-funcs.h:1171:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg->msg + 2, rc_code, size);
data/v4l-utils-1.20.0/include/linux/cec-funcs.h:1204:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg->msg + 3, osd, len);
data/v4l-utils-1.20.0/include/linux/cec-funcs.h:1216:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(osd, msg->msg + 3, len);
data/v4l-utils-1.20.0/include/linux/cec-funcs.h:1230:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg->msg + 2, name, len);
data/v4l-utils-1.20.0/include/linux/cec-funcs.h:1240:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(name, msg->msg + 2, len);
data/v4l-utils-1.20.0/include/linux/cec.h:332:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char driver[32];
data/v4l-utils-1.20.0/include/linux/cec.h:333:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/v4l-utils-1.20.0/include/linux/cec.h:364:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char osd_name[15];
data/v4l-utils-1.20.0/include/linux/dvb/frontend.h:147:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       name[128];
data/v4l-utils-1.20.0/include/linux/fb.h:156:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char id[16];			/* identification string eg "TT Builtin" */
data/v4l-utils-1.20.0/include/linux/media.h:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char driver[16];
data/v4l-utils-1.20.0/include/linux/media.h:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char model[32];
data/v4l-utils-1.20.0/include/linux/media.h:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char serial[40];
data/v4l-utils-1.20.0/include/linux/media.h:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char bus_info[32];
data/v4l-utils-1.20.0/include/linux/media.h:151:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/v4l-utils-1.20.0/include/linux/media.h:282:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[64];
data/v4l-utils-1.20.0/include/linux/videodev2.h:891:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char APP_data[60];      /* Data in the JPEG APPn segment. */
data/v4l-utils-1.20.0/include/linux/videodev2.h:894:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char COM_data[60];      /* Data in JPEG COM segment */
data/v4l-utils-1.20.0/include/linux/videodev2.h:1757:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		     name[32];
data/v4l-utils-1.20.0/include/linux/videodev2.h:2383:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[32];
data/v4l-utils-1.20.0/include/linux/videodev2.h:2400:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_atsc_service_location.h:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ISO_639_language_code[3];
data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_event_extended.h:81:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char language[4];
data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_event_short.h:65:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char language[4];
data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_language.h:60:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char language[4];
data/v4l-utils-1.20.0/lib/include/libdvbv5/desc_t2_delivery.h:218:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *siso_miso[4];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-fe.h:753:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *dvb_v5_name[72];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-fe.h:755:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *delivery_system_name[20];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-fe.h:756:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_code_rate_name[14];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-fe.h:757:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_modulation_name[15];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-fe.h:758:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_transmission_mode_name[10];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-fe.h:760:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_guard_interval_name[12];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-fe.h:761:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_hierarchy_name[6];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-fe.h:762:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_voltage_name[4];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-fe.h:763:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_tone_name[3];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-fe.h:764:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_inversion_name[4];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-fe.h:765:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_pilot_name[4];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-fe.h:766:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_rolloff_name[5];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-frontend.h:147:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       name[128];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-v5-std.h:260:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *dvb_sat_pol_name[6];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-v5-std.h:261:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *dvb_user_name[DTV_USER_NAME_SIZE + 1];
data/v4l-utils-1.20.0/lib/include/libdvbv5/dvb-v5-std.h:262:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *dvb_stat_name[DTV_STAT_NAME_SIZE + 1];
data/v4l-utils-1.20.0/lib/include/libdvbv5/eit.h:169:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *dvb_eit_running_status_name[8];
data/v4l-utils-1.20.0/lib/include/libdvbv5/mpeg_es.h:178:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *dvb_mpeg_es_frame_names[5];
data/v4l-utils-1.20.0/lib/include/libdvbv5/vct.h:151:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char short_name[32];
data/v4l-utils-1.20.0/lib/include/libv4l1-videodev.h:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/v4l-utils-1.20.0/lib/include/libv4l1-videodev.h:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/v4l-utils-1.20.0/lib/include/libv4l1-videodev.h:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/v4l-utils-1.20.0/lib/include/libv4l1-videodev.h:120:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		name[16];
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors.c:68:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(desc->data, buf, desc->length);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors.c:1359:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ascii[17];
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors.c:1360:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hex[50];
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors.c:1367:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char t[4];
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors.c:1386:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char spaces[50];
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_atsc_service_location.c:37:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&s_loc->bitfield, p, len);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_atsc_service_location.c:52:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(el, p, sizeof(*el));
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_ca.c:33:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(((uint8_t *) d ) + sizeof(struct dvb_desc), buf, size);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_ca.c:43:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(d->privdata, buf + 4, size);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_cable_delivery.c:33:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(((uint8_t *) cable ) + sizeof(cable->type) + sizeof(cable->next) + sizeof(cable->length),
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_extension.c:163:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ext->descriptor, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_frequency_list.c:36:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&d->bitfield, p, len);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_hierarchy.c:32:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(((uint8_t *) hierarchy ) + sizeof(hierarchy->type) + sizeof(hierarchy->length) + sizeof(hierarchy->next),
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_isdbt_delivery.c:38:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&d->bitfield, p, len);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_logical_channel.c:45:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(d->lcn, p, d->length);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_partial_reception.c:42:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(d->partial_reception, p, d->length);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_sat.c:38:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(desc->data, buf, size);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_t2_delivery.c:47:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(d, buf, len);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_t2_delivery.c:57:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(d, buf, len2);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_t2_delivery.c:95:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&d->centre_frequency[pos], p, sizeof(*d->centre_frequency) * d->cell[d->num_cell].num_freqs);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_t2_delivery.c:131:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&d->centre_frequency[pos], p, sizeof(*d->centre_frequency));
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_t2_delivery.c:238:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *siso_miso[4] = {
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_terrestrial_delivery.c:34:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(((uint8_t *) tdel ) + sizeof(tdel->type) + sizeof(tdel->next) + sizeof(tdel->length),
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_ts_info.c:39:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&d->bitfield, p, len);
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors/desc_ts_info.c:61:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(d->service_id, p, sizeof(*d->service_id) * t->num_of_service);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-demux.c:81:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_demux = open(dvb_dev->path, O_RDWR | O_NONBLOCK);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-demux.c:140:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sctfilter.filter.filter, filter, filtsize);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-demux.c:142:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sctfilter.filter.mask, mask, filtsize);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-demux.c:144:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sctfilter.filter.mode, mode, filtsize);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-demux.c:163:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buft[4096];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-local.c:478:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		ret = open(dev->path, flags);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-local.c:694:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sctfilter.filter.filter, filter, filtsize);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-local.c:696:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sctfilter.filter.mask, mask, filtsize);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-local.c:698:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sctfilter.filter.mode, mode, filtsize);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-local.c:717:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buft[4096];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-priv.h:44:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	struct dvb_open_descriptor *(*open)(struct dvb_device_priv *dvb,
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[RINGBUF_SIZE];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[80];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:89:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char args[REMOTE_BUF_SIZE];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:106:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char output_charset[256];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:107:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char default_charset[256];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:162:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, &i32, 4);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:164:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, s, len);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:174:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, &i32, 4);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:187:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, &u64, 8);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:228:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[REMOTE_BUF_SIZE], *p = buf, *endp = &buf[sizeof(buf)];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:255:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, &i32, 4);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:268:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, &i32, 4);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:270:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, cmd, len);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:322:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[REMOTE_BUF_SIZE], *p = buf, *endp = &buf[sizeof(buf)];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:348:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, &i32, 4);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:361:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, &i32, 4);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:363:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, cmd, len);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:374:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, in_buf, in_size);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:462:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(s, p, len);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:534:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&ringbuf->buf[ringbuf->write], buf, split);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:540:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ringbuf->buf[ringbuf->write], buf, len);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:574:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, &ringbuf->buf[ringbuf->read], split);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:580:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, &ringbuf->buf[ringbuf->read], size);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:591:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char str[80], octet[10];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:595:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str, "%03d: ", ofs);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:599:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(octet, "%02x ", (unsigned)buf[ofs + i]);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:601:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
				strcpy(octet, "   ");
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:605:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat( str,"  ");
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:623:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[REMOTE_BUF_SIZE + 8], cmd[REMOTE_BUF_SIZE], *args;
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:742:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(msg->args, args, args_size);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:770:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char version[REMOTE_BUF_SIZE];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:1361:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *p, lnb_name[256];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:1478:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[REMOTE_BUF_SIZE], lnb_name[80] = "", *p = buf;
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:1705:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(priv->output_charset, "utf-8");
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:1706:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(priv->default_charset, "iso-8859-1");
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev.c:228:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!ops->open)
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev.c:231:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	return ops->open(dvb, sysname, flags);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-fe.c:203:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(fname, flags, 0);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-fe.c:345:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-fe.c:1686:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *sig_bits[7] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-fe.c:1938:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg.msg, buf, len);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-fe.c:1942:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char log[len * 3 + 20], *p = log;
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-fe.c:1944:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		p += sprintf(p, _("DiSEqC command: "));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-fe.c:1946:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			p += sprintf (p, "%02x ", buf[i]);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-fe.c:1981:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, reply.msg, reply.msg_len);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:235:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char err_msg[80];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:244:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(fname, "r");
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:288:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(err_msg, _("Doesn't know how to parse delivery system %d"),
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:339:10:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					v = atol(p);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:431:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char err_msg[80];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:434:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(fname, "w");
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:462:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(err_msg,
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:504:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					sprintf(err_msg,
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:592:34:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			entry->props[n_prop].u.data = atol(value);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:608:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		entry->service_id = atol(value);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:613:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		entry->network_id = atol(value);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:618:25:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		entry->transport_id = atol(value);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:628:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		entry->sat_number = atol(value);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:633:21:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		entry->freq_bpf = atol(value);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:638:24:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		entry->diseqc_wait = atol(value);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:682:35:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			entry->other_el_pid[len].pid = atol(p);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:711:33:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		entry->props[n_prop].u.data = atol(value);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:726:14:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		pid[len] = atol(p);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:752:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char err_msg[80];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:760:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(fname, "r");
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:792:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(err_msg, _("Missing channel group"));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:805:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(err_msg, _("key/value without a channel group"));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:810:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(err_msg, _("missing key"));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:819:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(err_msg, _("missing value"));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:857:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(fname, "w");
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:1247:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *sdt_services[256] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-legacy-channel-format.c:67:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *channel_parse_code_rate[12] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-sat.c:391:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char msg[6];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-scan.c:195:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&h, buf, sizeof(struct dvb_table_header));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-scan.c:861:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_entry->props, entry->props, sizeof(entry->props));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5-std.c:219:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *dvb_sat_pol_name[6] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5-std.c:228:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *dvb_user_name[DTV_USER_NAME_SIZE + 1] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5-std.c:245:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *dvb_stat_name[DTV_STAT_NAME_SIZE + 1] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.c:53:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *fe_code_rate_name[14] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.c:70:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *fe_modulation_name[15] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.c:88:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *fe_transmission_mode_name[10] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.c:112:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *fe_guard_interval_name[12] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.c:127:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *fe_hierarchy_name[6] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.c:136:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *fe_voltage_name[4] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.c:143:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *fe_tone_name[3] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.c:149:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *fe_inversion_name[4] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.c:156:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *fe_pilot_name[4] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.c:163:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *fe_rolloff_name[5] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.c:171:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *dvb_v5_name[72] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.c:246:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *delivery_system_name[20] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.h:17:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_code_rate_name[14];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.h:18:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_modulation_name[15];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.h:19:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_transmission_mode_name[10];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.h:21:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_guard_interval_name[12];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.h:22:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_hierarchy_name[6];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.h:23:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_voltage_name[4];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.h:24:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_tone_name[3];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.h:25:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_inversion_name[4];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.h:26:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_pilot_name[4];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.h:27:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *fe_rolloff_name[5];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.h:28:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *dvb_v5_name[72];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-v5.h:29:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *delivery_system_name[20];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-vdr-format.c:55:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *vdr_parse_code_rate_hp[12] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-vdr-format.c:70:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *vdr_parse_code_rate_lp[12] = {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-vdr-format.c:270:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char err_msg[80];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-vdr-format.c:272:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(fname, "w");
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-vdr-format.c:346:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(err_msg,
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-vdr-format.c:388:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(err_msg,
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-zap-format.c:82:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *zap_parse_guard_interval[8] = {
data/v4l-utils-1.20.0/lib/libdvbv5/parse_string.c:39:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char  data[3];
data/v4l-utils-1.20.0/lib/libdvbv5/parse_string.c:309:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char out_cs[strlen(output_charset) + 1 + sizeof(CS_OPTIONS)];
data/v4l-utils-1.20.0/lib/libdvbv5/parse_string.c:317:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, src, len);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/atsc_eit.c:58:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(eit, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/atsc_eit.c:82:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(event, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/atsc_eit.c:112:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&dl, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/atsc_eit.c:155:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char start[255];
data/v4l-utils-1.20.0/lib/libdvbv5/tables/cat.c:57:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cat, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/eit.c:61:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(eit, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/eit.c:83:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(event, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/eit.c:146:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char start[255];
data/v4l-utils-1.20.0/lib/libdvbv5/tables/eit.c:189:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *dvb_eit_running_status_name[8] = {
data/v4l-utils-1.20.0/lib/libdvbv5/tables/mgt.c:59:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mgt, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/mgt.c:87:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(table, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/mpeg_es.c:32:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(seq_start, buf, sizeof(struct dvb_mpeg_es_seq_start));
data/v4l-utils-1.20.0/lib/libdvbv5/tables/mpeg_es.c:54:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *dvb_mpeg_es_frame_names[5] = {
data/v4l-utils-1.20.0/lib/libdvbv5/tables/mpeg_es.c:66:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pic_start, buf, sizeof(struct dvb_mpeg_es_pic_start));
data/v4l-utils-1.20.0/lib/libdvbv5/tables/mpeg_pes.c:35:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(table, p, sizeof(struct dvb_mpeg_pes));
data/v4l-utils-1.20.0/lib/libdvbv5/tables/mpeg_pes.c:59:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pes->optional, p, sizeof(struct dvb_mpeg_pes_optional) -
data/v4l-utils-1.20.0/lib/libdvbv5/tables/mpeg_ts.c:39:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(table, p, sizeof(struct dvb_mpeg_ts));
data/v4l-utils-1.20.0/lib/libdvbv5/tables/mpeg_ts.c:45:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ts->adaption, p, sizeof(struct dvb_mpeg_ts_adaption));
data/v4l-utils-1.20.0/lib/libdvbv5/tables/nit.c:58:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nit, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/nit.c:100:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(transport, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/pat.c:58:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pat, buf, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/pat.c:85:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(prog, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/pmt.c:61:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pmt, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/pmt.c:108:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(stream, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/sdt.c:58:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sdt, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/sdt.c:86:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(service, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/vct.c:60:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(vct, p, size);
data/v4l-utils-1.20.0/lib/libdvbv5/tables/vct.c:86:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(channel, p, size);
data/v4l-utils-1.20.0/lib/libv4l1/libv4l1.c:334:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			v4l1_log_file = fopen(lfname, "w");
data/v4l-utils-1.20.0/lib/libv4l1/log.c:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[40];
data/v4l-utils-1.20.0/lib/libv4l1/v4l1compat.c:37:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#if defined open || defined read || defined mmap
data/v4l-utils-1.20.0/lib/libv4l1/v4l1compat.c:38:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#error open/read/mmap is a prepocessor macro !!
data/v4l-utils-1.20.0/lib/libv4l1/v4l1compat.c:47:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
LIBV4L_PUBLIC int open(const char *file, int oflag, ...)
data/v4l-utils-1.20.0/lib/libv4l2/libv4l2-priv.h:94:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char *frame_pointers[V4L2_MAX_NO_FRAMES];
data/v4l-utils-1.20.0/lib/libv4l2/libv4l2-priv.h:99:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char frame_map_count[V4L2_MAX_NO_FRAMES];
data/v4l-utils-1.20.0/lib/libv4l2/libv4l2.c:675:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			v4l2_log_file = fopen(lfname, "w");
data/v4l-utils-1.20.0/lib/libv4l2/log.c:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[40];
data/v4l-utils-1.20.0/lib/libv4l2/v4l2-plugin-android.c:74:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[256];
data/v4l-utils-1.20.0/lib/libv4l2/v4l2convert.c:51:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#if defined open || defined read || defined mmap
data/v4l-utils-1.20.0/lib/libv4l2/v4l2convert.c:52:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#error open/read/mmap is a prepocessor macro !!
data/v4l-utils-1.20.0/lib/libv4l2/v4l2convert.c:61:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
LIBV4L_PUBLIC int open(const char *file, int oflag, ...)
data/v4l-utils-1.20.0/lib/libv4l2/v4l2convert.c:113:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(file, oflag | O_LARGEFILE, mode);
data/v4l-utils-1.20.0/lib/libv4l2/v4l2convert.c:117:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(file, oflag | O_LARGEFILE);
data/v4l-utils-1.20.0/lib/libv4l2rds/libv4l2rds.c:793:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(handle->ps, priv_state->new_ps, 8);
data/v4l-utils-1.20.0/lib/libv4l2rds/libv4l2rds.c:924:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(handle->rt, priv_state->new_rt, 64);
data/v4l-utils-1.20.0/lib/libv4l2rds/libv4l2rds.c:941:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(handle->rt, priv_state->new_rt, 32);
data/v4l-utils-1.20.0/lib/libv4l2rds/libv4l2rds.c:958:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(handle->rt, priv_state->new_rt,
data/v4l-utils-1.20.0/lib/libv4l2rds/libv4l2rds.c:1461:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *rds_lut[32] = {
data/v4l-utils-1.20.0/lib/libv4l2rds/libv4l2rds.c:1471:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *rbds_lut[32] = {
data/v4l-utils-1.20.0/lib/libv4l2rds/libv4l2rds.c:1498:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *e_lut[5][16] = {
data/v4l-utils-1.20.0/lib/libv4l2rds/libv4l2rds.c:1531:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *language_lut[128] = {
data/v4l-utils-1.20.0/lib/libv4l2rds/libv4l2rds.c:1580:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *coverage_lut[16] = {
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:334:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *s, sysfs_name[512];
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:338:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(sysfs_name, "r");
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:345:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(sysfs_name, "r");
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:366:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sysfs_name[512];
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:367:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c, *s, buf[32];
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:383:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(sysfs_name, "r");
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:400:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(sysfs_name, "r");
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:419:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(sysfs_name, "r");
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:433:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(sysfs_name, "r");
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:448:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(sysfs_name, "r");
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:515:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dmi_system_vendor[512], dmi_system_name[512], dmi_system_version[512];
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:516:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dmi_board_vendor[512], dmi_board_name[512], dmi_board_version[512];
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:574:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *s, shm_name[256], pwd_buf[1024];
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:850:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ctrl, &fake_controls[i], sizeof(struct v4l2_queryctrl));
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:1117:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data->old_values, data->shm_values,
data/v4l-utils-1.20.0/lib/libv4lconvert/cpia1.c:129:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(dest, src, width);
data/v4l-utils-1.20.0/lib/libv4lconvert/cpia1.c:139:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, data->previous_frame, width * height * 3 / 2);
data/v4l-utils-1.20.0/lib/libv4lconvert/cpia1.c:211:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data->previous_frame, dest, width * height * 3 / 2);
data/v4l-utils-1.20.0/lib/libv4lconvert/crop.c:59:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, dest_fmt->fmt.pix.width * 3);
data/v4l-utils-1.20.0/lib/libv4lconvert/crop.c:122:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, mysrc, dest_fmt->fmt.pix.width);
data/v4l-utils-1.20.0/lib/libv4lconvert/crop.c:131:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, mysrc, dest_fmt->fmt.pix.width / 2);
data/v4l-utils-1.20.0/lib/libv4lconvert/crop.c:140:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, mysrc, dest_fmt->fmt.pix.width / 2);
data/v4l-utils-1.20.0/lib/libv4lconvert/crop.c:164:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, src_fmt->fmt.pix.width * 3);
data/v4l-utils-1.20.0/lib/libv4lconvert/crop.c:197:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, src_fmt->fmt.pix.width);
data/v4l-utils-1.20.0/lib/libv4lconvert/crop.c:221:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, src_fmt->fmt.pix.width / 2);
data/v4l-utils-1.20.0/lib/libv4lconvert/crop.c:245:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, src_fmt->fmt.pix.width / 2);
data/v4l-utils-1.20.0/lib/libv4lconvert/flip.c:34:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, fmt->fmt.pix.width * 3);
data/v4l-utils-1.20.0/lib/libv4lconvert/flip.c:48:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, fmt->fmt.pix.width);
data/v4l-utils-1.20.0/lib/libv4lconvert/flip.c:56:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, fmt->fmt.pix.width / 2);
data/v4l-utils-1.20.0/lib/libv4lconvert/flip.c:64:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, fmt->fmt.pix.width / 2);
data/v4l-utils-1.20.0/lib/libv4lconvert/hm12.c:142:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(dst + x + (y + i) * w, src_y, maxx);
data/v4l-utils-1.20.0/lib/libv4lconvert/jl2005bcd.c:65:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char jpeg_stripe[50000];
data/v4l-utils-1.20.0/lib/libv4lconvert/jl2005bcd.c:155:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(jpeg_stripe, jpeg_header, JPEG_HEADER_SIZE);
data/v4l-utils-1.20.0/lib/libv4lconvert/jl2005bcd.c:182:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (jpeg_stripe + JPEG_HEADER_SIZE,	
data/v4l-utils-1.20.0/lib/libv4lconvert/jpeg.c:36:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char *components[3];
data/v4l-utils-1.20.0/lib/libv4lconvert/jpeg.c:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[JMSG_LENGTH_MAX];
data/v4l-utils-1.20.0/lib/libv4lconvert/jpgl.c:96:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static signed char vlcTbl_len[1<<10];	/* Meaningful bit count */
data/v4l-utils-1.20.0/lib/libv4lconvert/jpgl.c:97:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static signed char vlcTbl_run[1<<10];	/* Run */
data/v4l-utils-1.20.0/lib/libv4lconvert/jpgl.c:98:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static signed char vlcTbl_amp[1<<10];	/* Amplitude (without the sign) */
data/v4l-utils-1.20.0/lib/libv4lconvert/jpgl.c:121:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char clampTbl[1280];
data/v4l-utils-1.20.0/lib/libv4lconvert/libv4lconvert-priv.h:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char error_msg[V4LCONVERT_ERROR_MSG_SIZE];
data/v4l-utils-1.20.0/lib/libv4lconvert/libv4lconvert.c:309:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char *comps[3] = { NULL, NULL, NULL };
data/v4l-utils-1.20.0/lib/libv4lconvert/libv4lconvert.c:1307:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, src, width * height * 3);
data/v4l-utils-1.20.0/lib/libv4lconvert/libv4lconvert.c:1332:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, src, width * height * 3);
data/v4l-utils-1.20.0/lib/libv4lconvert/libv4lconvert.c:1408:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, src, width * height * 3 / 2);
data/v4l-utils-1.20.0/lib/libv4lconvert/libv4lconvert.c:1435:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, src, width * height * 3 / 2);
data/v4l-utils-1.20.0/lib/libv4lconvert/libv4lconvert.c:1639:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, to_copy);
data/v4l-utils-1.20.0/lib/libv4lconvert/ov511-decomp.c:40:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char header, ZTable[64];
data/v4l-utils-1.20.0/lib/libv4lconvert/ov511-decomp.c:617:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char src_buf[500000];
data/v4l-utils-1.20.0/lib/libv4lconvert/ov511-decomp.c:618:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char dest_buf[500000];
data/v4l-utils-1.20.0/lib/libv4lconvert/ov518-decomp.c:1382:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char pTmp[32];
data/v4l-utils-1.20.0/lib/libv4lconvert/ov518-decomp.c:1412:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char pTmp[32];
data/v4l-utils-1.20.0/lib/libv4lconvert/ov518-decomp.c:1433:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char src_buf[200000];
data/v4l-utils-1.20.0/lib/libv4lconvert/ov518-decomp.c:1434:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char dest_buf[500000];
data/v4l-utils-1.20.0/lib/libv4lconvert/pac207.c:175:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(outp, inp + 2, width);
data/v4l-utils-1.20.0/lib/libv4lconvert/pac207.c:192:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(outp, outp - 2 * width, width);
data/v4l-utils-1.20.0/lib/libv4lconvert/processing/libv4lprocessing-priv.h:41:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char comp1[256];
data/v4l-utils-1.20.0/lib/libv4lconvert/processing/libv4lprocessing-priv.h:42:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char green[256];
data/v4l-utils-1.20.0/lib/libv4lconvert/processing/libv4lprocessing-priv.h:43:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char comp2[256];
data/v4l-utils-1.20.0/lib/libv4lconvert/processing/libv4lprocessing-priv.h:51:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char gamma_table[256];
data/v4l-utils-1.20.0/lib/libv4lconvert/rgbyuv.c:483:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, src_fmt->fmt.pix.width);
data/v4l-utils-1.20.0/lib/libv4lconvert/rgbyuv.c:491:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, src_fmt->fmt.pix.width / 2);
data/v4l-utils-1.20.0/lib/libv4lconvert/rgbyuv.c:499:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, src_fmt->fmt.pix.width / 2);
data/v4l-utils-1.20.0/lib/libv4lconvert/rgbyuv.c:833:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char rgb[3];
data/v4l-utils-1.20.0/lib/libv4lconvert/spca501.c:169:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ydest, src, width);
data/v4l-utils-1.20.0/lib/libv4lconvert/spca501.c:205:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ydest, src, 256);
data/v4l-utils-1.20.0/lib/libv4lconvert/spca501.c:210:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(udest, src, 64);
data/v4l-utils-1.20.0/lib/libv4lconvert/spca501.c:215:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vdest, src, 64);
data/v4l-utils-1.20.0/lib/libv4lconvert/spca501.c:241:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ydest, src, 2 * width);
data/v4l-utils-1.20.0/lib/libv4lconvert/spca561-decompress.c:761:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(outbuf + xwidth * 2 + 3, inbuf + 0x14, width);
data/v4l-utils-1.20.0/lib/libv4lconvert/spca561-decompress.c:762:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(outbuf + xwidth * 3 + 3, inbuf + 0x14 + width, width);
data/v4l-utils-1.20.0/lib/libv4lconvert/spca561-decompress.c:902:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static unsigned char tmpbuf[650 * 490];
data/v4l-utils-1.20.0/lib/libv4lconvert/spca561-decompress.c:907:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(outbuf + i * width,
data/v4l-utils-1.20.0/lib/libv4lconvert/sq905c.c:39:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char nibble_to_keep[2];
data/v4l-utils-1.20.0/lib/libv4lconvert/sq905c.c:49:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char lookup_table[16] = {
data/v4l-utils-1.20.0/lib/libv4lconvert/sq905c.c:53:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char translator[16] = {
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg-internal.h:58:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char code_size[HUFFMAN_HASH_SIZE];
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg-internal.h:116:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char error_string[256];
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:69:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen("/tmp/jpeg.log", "a"); \
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:126:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char zigzag[64] = {
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:139:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char bits_dc_luminance[17] = {
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:146:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char bits_dc_chrominance[17] = {
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:153:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char bits_ac_luminance[17] = {
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:180:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char bits_ac_chrominance[17] = {
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:427:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char huffsize[257], *hz;
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:567:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, y, 8);
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:606:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, y1, 16);
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:614:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, s, 8);
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:622:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, s, 8);
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:646:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, y, 8);
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:685:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, y1, 16);
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:693:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, s, 8);
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:701:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, s, 8);
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:1245:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, y, 8);
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:1267:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, y, 16);
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:1292:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, y, 8);
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:1316:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, y, 16);
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:1408:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char qt[64];
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:1826:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char huff_bits[17];
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:2188:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, src + 1, n - 1);
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:2203:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, chunksize);
data/v4l-utils-1.20.0/lib/libv4lconvert/tinyjpeg.c:2225:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, src, n);
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.cpp:103:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char options[OptLast];
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.cpp:268:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.cpp:272:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%llu.%03llus", ts / 1000000000, (ts % 1000000000) / 1000000);
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.cpp:284:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%03lu", res.tv_usec / 1000);
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.cpp:1137:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char short_options[26 * 2 * 2 + 1];
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.cpp:1201:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				static char newdev[20];
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.cpp:1295:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(device.c_str(), O_RDWR)) < 0) {
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.cpp:1489:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(node.log_addr, laddrs.log_addr, laddrs.num_log_addrs);
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.h:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char osd_name[15];
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.h:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char language[4];
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test-adapter.cpp:61:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[0x4000] = {};
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test-adapter.cpp:180:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(laddrs.osd_name, "Compliance");
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test-adapter.cpp:189:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(laddrs.features[i], features, sizeof(features));
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test-adapter.cpp:1008:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char num[20];
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test-adapter.cpp:1015:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(num, "%u: %d", i, sft[i]);
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test-adapter.cpp:1263:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(node.log_addr, laddrs.log_addr, laddrs.num_log_addrs);
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test-adapter.cpp:1276:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((node2.fd = open(device, O_RDWR)) < 0) {
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp:100:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char language[4];
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp:321:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char osd_name[15];
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp:341:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char osd[14];
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp:344:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(osd, "Rept %x from %x", la, me);
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp:382:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char osd[14];
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp:385:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(osd, "Appears 1 sec");
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:49:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char options[512];
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:365:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:369:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%llu.%03llus", ts / 1000000000, (ts % 1000000000) / 1000000);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:379:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%03lu", res.tv_usec / 1000);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:386:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[64];
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:388:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%10.06f", ts);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:524:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char osd_name[15];
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:575:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char language[4];
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:874:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fstore = fopen(store_pin, "w+");
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:968:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[100];
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:973:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fanalyze = fopen(analyze_pin, "r");
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1657:10:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		return atol(s + 3);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1725:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(edid_path, "r");
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1766:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char link[64+1];
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1798:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd = open(iter->c_str(), O_RDWR);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1828:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char short_options[26 * 2 * 2 + 1];
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1889:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				static char newdev[20];
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:2126:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(msg.msg + 2, bytes, size);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:2387:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(device.c_str(), O_RDWR)) < 0) {
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:2662:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(edid_path, O_RDONLY);
data/v4l-utils-1.20.0/utils/cec-follower/cec-follower.cpp:52:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char options[OptLast];
data/v4l-utils-1.20.0/utils/cec-follower/cec-follower.cpp:303:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(node.state.menu_language, "eng");
data/v4l-utils-1.20.0/utils/cec-follower/cec-follower.cpp:321:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char short_options[26 * 2 * 2 + 1];
data/v4l-utils-1.20.0/utils/cec-follower/cec-follower.cpp:367:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				static char newdev[20];
data/v4l-utils-1.20.0/utils/cec-follower/cec-follower.cpp:462:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(device.c_str(), O_RDWR)) < 0) {
data/v4l-utils-1.20.0/utils/cec-follower/cec-follower.h:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char menu_language[4];
data/v4l-utils-1.20.0/utils/cec-follower/cec-processing.cpp:65:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/v4l-utils-1.20.0/utils/cec-follower/cec-processing.cpp:69:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%llu.%03llus", ts / 1000000000, (ts % 1000000000) / 1000000);
data/v4l-utils-1.20.0/utils/cec-follower/cec-processing.cpp:79:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%03lu", res.tv_usec / 1000);
data/v4l-utils-1.20.0/utils/cec-follower/cec-processing.cpp:256:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char osd[14];
data/v4l-utils-1.20.0/utils/common/codec-fwht.c:855:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dst, *rlco, width);
data/v4l-utils-1.20.0/utils/common/codec-fwht.c:875:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(cf->de_fwht, copy, sizeof(copy));
data/v4l-utils-1.20.0/utils/common/cv4l-helpers.h:29:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(this, &_fd, sizeof(_fd));
data/v4l-utils-1.20.0/utils/common/cv4l-helpers.h:49:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int open(const char *devname, bool non_blocking = false) { return v4l_open(this, devname, non_blocking); }
data/v4l-utils-1.20.0/utils/common/cv4l-helpers.h:691:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(this, &_fmt, sizeof(_fmt));
data/v4l-utils-1.20.0/utils/common/cv4l-helpers.h:849:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((v4l2_buffer *)this, (v4l2_buffer *)&b, sizeof(b));
data/v4l-utils-1.20.0/utils/common/ir-encode.c:374:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[10];
data/v4l-utils-1.20.0/utils/common/keymap.c:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *scancode, *keycode, s[2048];
data/v4l-utils-1.20.0/utils/common/keymap.c:91:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fin = fopen(fname, "r");
data/v4l-utils-1.20.0/utils/common/keymap.c:464:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[200];
data/v4l-utils-1.20.0/utils/common/keymap.c:470:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fin = fopen(fname, "r");
data/v4l-utils-1.20.0/utils/common/media-info.cpp:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/v4l-utils-1.20.0/utils/common/media-info.cpp:33:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%08x", num);
data/v4l-utils-1.20.0/utils/common/media-info.cpp:35:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%u", num);
data/v4l-utils-1.20.0/utils/common/media-info.cpp:105:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fmt[32];
data/v4l-utils-1.20.0/utils/common/media-info.cpp:108:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(fmt, "%d:%d", major, minor);
data/v4l-utils-1.20.0/utils/common/media-info.cpp:174:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *uevent_fd = fopen(media_uevent_path.c_str(), "r");
data/v4l-utils-1.20.0/utils/common/media-info.cpp:229:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			media_fd = open(devname.c_str(), O_RDWR);
data/v4l-utils-1.20.0/utils/common/toml.c:42:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, s, len);
data/v4l-utils-1.20.0/utils/common/toml.c:146:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int toml_ucs_to_utf8(int64_t code, char buf[6])
data/v4l-utils-1.20.0/utils/common/toml.c:360:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/v4l-utils-1.20.0/utils/common/toml.c:493:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ebuf[80];
data/v4l-utils-1.20.0/utils/common/toml.c:1813:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/v4l-utils-1.20.0/utils/common/toml.c:1936:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/v4l-utils-1.20.0/utils/common/toml.c:2018:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dummy_errbuf[1];
data/v4l-utils-1.20.0/utils/common/toml.h:127:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char z[10];
data/v4l-utils-1.20.0/utils/common/toml.h:139:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
TOML_EXTERN int toml_ucs_to_utf8(int64_t code, char buf[6]);
data/v4l-utils-1.20.0/utils/common/v4l-helpers.h:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char devname[128];
data/v4l-utils-1.20.0/utils/common/v4l-helpers.h:43:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int (*open)(struct v4l_fd *f, const char *file, int oflag, ...);
data/v4l-utils-1.20.0/utils/common/v4l-helpers.h:57:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 	return f->direct ? open(file, oflag) : v4l2_open(file, oflag);
data/v4l-utils-1.20.0/utils/common/v4l-helpers.h:116:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 	return open(file, oflag);
data/v4l-utils-1.20.0/utils/common/v4l-helpers.h:503:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = f->open(f, devname, O_RDWR | (non_blocking ? O_NONBLOCK : 0));
data/v4l-utils-1.20.0/utils/common/v4l-helpers.h:536:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = f->open(f, devname, O_RDWR | (non_blocking ? O_NONBLOCK : 0));
data/v4l-utils-1.20.0/utils/common/v4l-helpers.h:569:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = f->open(f, devname, O_RDWR | (non_blocking ? O_NONBLOCK : 0));
data/v4l-utils-1.20.0/utils/common/v4l-stream.c:103:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(dst, dst - bpl / 4, bpl);
data/v4l-utils-1.20.0/utils/common/v4l-stream.c:282:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(row_ref, row_cap, ref_stride);
data/v4l-utils-1.20.0/utils/common/v4l2-info.cpp:27:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/v4l-utils-1.20.0/utils/common/v4l2-info.cpp:30:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "0x%08x", num);
data/v4l-utils-1.20.0/utils/common/v4l2-info.cpp:32:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%u", num);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:1800:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(pos, pix[p], twopixsize / hdiv);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:1830:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pos, pix[p], twopixsize);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:1840:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pos, pix[p], twopixsize);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:1850:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pos, pix[p], twopixsize);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:1869:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&fg, tpg->textfg[p], sizeof(PIXTYPE));	\
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:1870:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&bg, tpg->textbg[p], sizeof(PIXTYPE));	\
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:2286:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, wss, params->wss_width);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:2297:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf + left, tpg->contrast_line[p],
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:2302:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(vbuf + left,
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:2306:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(vbuf + right - twopixsize,
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:2312:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, tpg->black_line[p], params->left_pillar_width);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:2313:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf + params->right_pillar_start, tpg->black_line[p],
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:2332:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf + left, tpg->contrast_line[p], width);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:2486:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_top, img_width);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:2488:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_bottom, img_width);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:2492:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_bottom, img_width);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:2494:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_top, img_width);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:2497:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, linestart_top, img_width);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:2500:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, linestart_bottom, img_width);
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:2504:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, linestart_older, img_width);
data/v4l-utils-1.20.0/utils/cx18-ctl/cx18-ctl.c:78:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char options[OptLast];
data/v4l-utils-1.20.0/utils/cx18-ctl/cx18-ctl.c:169:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(fn, "w");
data/v4l-utils-1.20.0/utils/cx18-ctl/cx18-ctl.c:181:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[1000];
data/v4l-utils-1.20.0/utils/cx18-ctl/cx18-ctl.c:182:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(fn, "r");
data/v4l-utils-1.20.0/utils/cx18-ctl/cx18-ctl.c:235:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char short_options[26 * 2 * 2 + 1];
data/v4l-utils-1.20.0/utils/cx18-ctl/cx18-ctl.c:270:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				static char newdev[20];
data/v4l-utils-1.20.0/utils/cx18-ctl/cx18-ctl.c:333:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(device, O_RDWR);
data/v4l-utils-1.20.0/utils/cx18-ctl/cx18-ctl.c:385:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[20];
data/v4l-utils-1.20.0/utils/cx18-ctl/cx18-ctl.c:388:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%d", debug_level);
data/v4l-utils-1.20.0/utils/cx18-ctl/cx18-ctl.c:402:19:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			gdebug_level = atol(buf);
data/v4l-utils-1.20.0/utils/dvb/dvb-fe-tool.c:116:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		adapter = atoi(arg);
data/v4l-utils-1.20.0/utils/dvb/dvb-fe-tool.c:119:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		frontend = atoi(arg);
data/v4l-utils-1.20.0/utils/dvb/dvb-fe-tool.c:148:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(arg);
data/v4l-utils-1.20.0/utils/dvb/dvb-fe-tool.c:154:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		count = atoi(arg);
data/v4l-utils-1.20.0/utils/dvb/dvb-fe-tool.c:183:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512], *p;
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:101:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(arg);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:214:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char output_charset[256] = "utf-8";
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:215:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char default_charset[256] = "iso-8859-1";
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:359:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, &i32, 4);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:362:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(p, s, len);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:374:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, &i32, 4);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:376:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, s, len);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:387:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, &i32, 4);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:402:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, &u64, 8);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:463:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[REMOTE_BUF_SIZE];
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:510:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(s, p, len);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:653:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sysname[REMOTE_BUF_SIZE];
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:677:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char databuf[REMOTE_BUF_SIZE];
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:678:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[REMOTE_BUF_SIZE + 32], *p;
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:692:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(__fds, fds, sizeof(fds));
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:756:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(p, databuf, read_ret);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:783:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sysname[REMOTE_BUF_SIZE];
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:973:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char filter[17], mask[17], mode[17];
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:1073:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[REMOTE_BUF_SIZE], lnb_name[80] = "", *p = buf;
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:1161:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char new_lnb[256];
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:1234:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[REMOTE_BUF_SIZE], *p = buf;
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:1344:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[REMOTE_BUF_SIZE + 8], cmd[80], *p;
data/v4l-utils-1.20.0/utils/dvb/dvbv5-scan.c:119:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512], *p;
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:231:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		uint32_t f, freq = atoi(channel);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:419:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512], *p;
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:555:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFLEN];
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:694:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		args->low_traffic = atoi(optarg);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:706:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		args->port = atoi(optarg);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:731:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[20];
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:763:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	signed char pid_cont[0x2000];
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:805:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char buffer[BUFLEN];
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:1177:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			file_fd = open(args.filename,
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:1297:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				file_fd = open(args.filename,
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:1347:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			file_fd = open(args.dvr_pipe,
data/v4l-utils-1.20.0/utils/ir-ctl/ir-ctl.c:85:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char	keycode[1];
data/v4l-utils-1.20.0/utils/ir-ctl/ir-ctl.c:214:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[1024];
data/v4l-utils-1.20.0/utils/ir-ctl/ir-ctl.c:383:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[1024];
data/v4l-utils-1.20.0/utils/ir-ctl/ir-ctl.c:476:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *input = fopen(fname, "r");
data/v4l-utils-1.20.0/utils/ir-ctl/ir-ctl.c:477:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[1024];
data/v4l-utils-1.20.0/utils/ir-ctl/ir-ctl.c:757:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(s->buf, re->raw, s->len * sizeof(int));
data/v4l-utils-1.20.0/utils/ir-ctl/ir-ctl.c:791:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(s->buf, buf, length * sizeof(int));
data/v4l-utils-1.20.0/utils/ir-ctl/ir-ctl.c:825:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = TEMP_FAILURE_RETRY(open(fname, O_RDWR | O_CLOEXEC));
data/v4l-utils-1.20.0/utils/ir-ctl/ir-ctl.c:1141:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		out = fopen(args->savetofile, "w");
data/v4l-utils-1.20.0/utils/ir-ctl/ir-encode.c:374:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[10];
data/v4l-utils-1.20.0/utils/ir-ctl/keymap.c:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *scancode, *keycode, s[2048];
data/v4l-utils-1.20.0/utils/ir-ctl/keymap.c:91:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fin = fopen(fname, "r");
data/v4l-utils-1.20.0/utils/ir-ctl/keymap.c:464:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[200];
data/v4l-utils-1.20.0/utils/ir-ctl/keymap.c:470:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fin = fopen(fname, "r");
data/v4l-utils-1.20.0/utils/ir-ctl/toml.c:42:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, s, len);
data/v4l-utils-1.20.0/utils/ir-ctl/toml.c:146:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int toml_ucs_to_utf8(int64_t code, char buf[6])
data/v4l-utils-1.20.0/utils/ir-ctl/toml.c:360:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/v4l-utils-1.20.0/utils/ir-ctl/toml.c:493:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ebuf[80];
data/v4l-utils-1.20.0/utils/ir-ctl/toml.c:1813:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/v4l-utils-1.20.0/utils/ir-ctl/toml.c:1936:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/v4l-utils-1.20.0/utils/ir-ctl/toml.c:2018:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dummy_errbuf[1];
data/v4l-utils-1.20.0/utils/ir-ctl/toml.h:127:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char z[10];
data/v4l-utils-1.20.0/utils/ir-ctl/toml.h:139:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
TOML_EXTERN int toml_ucs_to_utf8(int64_t code, char buf[6]);
data/v4l-utils-1.20.0/utils/ivtv-ctl/ivtv-ctl.c:78:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char options[OptLast];
data/v4l-utils-1.20.0/utils/ivtv-ctl/ivtv-ctl.c:190:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(fn, "w");
data/v4l-utils-1.20.0/utils/ivtv-ctl/ivtv-ctl.c:202:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[1000];
data/v4l-utils-1.20.0/utils/ivtv-ctl/ivtv-ctl.c:203:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(fn, "r");
data/v4l-utils-1.20.0/utils/ivtv-ctl/ivtv-ctl.c:290:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char short_options[26 * 2 * 2 + 1];
data/v4l-utils-1.20.0/utils/ivtv-ctl/ivtv-ctl.c:348:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				static char newdev[20];
data/v4l-utils-1.20.0/utils/ivtv-ctl/ivtv-ctl.c:413:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(device, O_RDWR);
data/v4l-utils-1.20.0/utils/ivtv-ctl/ivtv-ctl.c:456:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[20];
data/v4l-utils-1.20.0/utils/ivtv-ctl/ivtv-ctl.c:459:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%d", debug_level);
data/v4l-utils-1.20.0/utils/ivtv-ctl/ivtv-ctl.c:472:19:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			gdebug_level = atol(buf);
data/v4l-utils-1.20.0/utils/keytable/bpf.c:77:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(attr.map_name, create_attr->name,
data/v4l-utils-1.20.0/utils/keytable/bpf.c:151:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(attr.map_name, name, min(name_len, BPF_OBJ_NAME_LEN - 1));
data/v4l-utils-1.20.0/utils/keytable/bpf.c:193:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(attr.prog_name, load_attr->name,
data/v4l-utils-1.20.0/utils/keytable/bpf_load.c:41:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char bpf_log_buf[BPF_LOG_BUF_SIZE];
data/v4l-utils-1.20.0/utils/keytable/bpf_load.c:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char license[128];
data/v4l-utils-1.20.0/utils/keytable/bpf_load.c:407:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&maps[i].def, def, map_sz_copy);
data/v4l-utils-1.20.0/utils/keytable/bpf_load.c:441:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY, 0);
data/v4l-utils-1.20.0/utils/keytable/bpf_load.c:468:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(bpf_file.license, data->d_buf, data->d_size);
data/v4l-utils-1.20.0/utils/keytable/ir-encode.c:374:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[10];
data/v4l-utils-1.20.0/utils/keytable/keymap.c:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *scancode, *keycode, s[2048];
data/v4l-utils-1.20.0/utils/keytable/keymap.c:91:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fin = fopen(fname, "r");
data/v4l-utils-1.20.0/utils/keytable/keymap.c:464:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[200];
data/v4l-utils-1.20.0/utils/keytable/keymap.c:470:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fin = fopen(fname, "r");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:462:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[2048];
data/v4l-utils-1.20.0/utils/keytable/keytable.c:469:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fin = fopen(fname, "r");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:839:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(file, "r");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:895:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		dname[256];
data/v4l-utils-1.20.0/utils/keytable/keytable.c:981:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *p, buf[4096];
data/v4l-utils-1.20.0/utils/keytable/keytable.c:984:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(name, "r");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1017:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[4096];
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1020:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(name, "/protocol");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1022:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(name, "w");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1040:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *p, buf[4096], name[512];
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1044:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(name, "/enabled");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1046:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(name, "r");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1069:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	rc = atoi(p);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1075:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (atoi(p) == 1)
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1085:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[512];
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1089:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(name, "/enabled");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1091:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(name, "w");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1113:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *p, buf[4096];
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1116:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(name, "r");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1160:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[4096];
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1164:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(name, "/protocols");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1171:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(name, "w");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1428:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(entry.scancode, &ke->scancode, sizeof(ke->scancode));
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1517:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		lircfd = open(rc_dev->lirc_name, O_RDONLY | O_NONBLOCK);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1718:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1754:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(lirc_name, O_RDONLY);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1792:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(lirc_name, O_RDONLY);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1845:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(lirc_name, O_RDONLY);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1931:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(rc_dev->input_name, O_RDONLY);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:2128:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(rc_dev.input_name, O_RDONLY | O_NONBLOCK);
data/v4l-utils-1.20.0/utils/keytable/toml.c:42:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, s, len);
data/v4l-utils-1.20.0/utils/keytable/toml.c:146:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int toml_ucs_to_utf8(int64_t code, char buf[6])
data/v4l-utils-1.20.0/utils/keytable/toml.c:360:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/v4l-utils-1.20.0/utils/keytable/toml.c:493:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ebuf[80];
data/v4l-utils-1.20.0/utils/keytable/toml.c:1813:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/v4l-utils-1.20.0/utils/keytable/toml.c:1936:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/v4l-utils-1.20.0/utils/keytable/toml.c:2018:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dummy_errbuf[1];
data/v4l-utils-1.20.0/utils/keytable/toml.h:127:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char z[10];
data/v4l-utils-1.20.0/utils/keytable/toml.h:139:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
TOML_EXTERN int toml_ucs_to_utf8(int64_t code, char buf[6]);
data/v4l-utils-1.20.0/utils/libcecutil/cec-htng-funcs.h:395:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg->msg + msg->len, date, 8);
data/v4l-utils-1.20.0/utils/libcecutil/cec-htng-funcs.h:402:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(date, msg->msg + 6, 8);
data/v4l-utils-1.20.0/utils/libcecutil/cec-htng-funcs.h:423:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg->msg + msg->len, time, 6);
data/v4l-utils-1.20.0/utils/libcecutil/cec-htng-funcs.h:430:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(time, msg->msg + 6, 6);
data/v4l-utils-1.20.0/utils/libcecutil/cec-htng-funcs.h:611:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg->msg + 6, time, 4);
data/v4l-utils-1.20.0/utils/libcecutil/cec-htng-funcs.h:618:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(time, msg->msg + 6, 4);
data/v4l-utils-1.20.0/utils/libcecutil/cec-htng-funcs.h:626:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg->msg + 6, time, 4);
data/v4l-utils-1.20.0/utils/libcecutil/cec-htng-funcs.h:633:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(time, msg->msg + 6, 4);
data/v4l-utils-1.20.0/utils/libcecutil/cec-info.cpp:320:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char num[4];
data/v4l-utils-1.20.0/utils/libcecutil/cec-info.cpp:328:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(num, "%u", msg.tx_arb_lost_cnt);
data/v4l-utils-1.20.0/utils/libcecutil/cec-info.cpp:334:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(num, "%u", msg.tx_nack_cnt);
data/v4l-utils-1.20.0/utils/libcecutil/cec-info.cpp:340:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(num, "%u", msg.tx_low_drive_cnt);
data/v4l-utils-1.20.0/utils/libcecutil/cec-info.cpp:346:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(num, "%u", msg.tx_error_cnt);
data/v4l-utils-1.20.0/utils/libcecutil/cec-info.cpp:507:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(devname.c_str(), O_RDWR);
data/v4l-utils-1.20.0/utils/libcecutil/cec-log.h:33:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *arg_names[CEC_MAX_ARGS+1];
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:71:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[PATH_MAX + 8], *name, *p;
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:72:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[1024];
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:75:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(file, "r");
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:87:20:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			md_ptr->major = atol(p);
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:89:20:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			md_ptr->minor = atol(p);
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:97:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[PATH_MAX + 9];
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:98:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[1024];
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:105:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(file, "r");
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		dname[PATH_MAX];
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		fname[PATH_MAX + sizeof(entry->d_name)];
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:129:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		link[PATH_MAX];
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:130:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		virt_dev[60];
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:184:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(virt_dev, "virtual%d", virtual++);
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:238:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char node[64];
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:101:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char s[4096]="";
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:104:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"CAPTURE ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:106:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"CAPTURE_MPLANE ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:108:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"OUTPUT ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:110:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"OUTPUT_MPLANE ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:112:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"M2M ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:114:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"M2M_MPLANE ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:116:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"OVERLAY ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:118:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"VBI_CAPTURE ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:120:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"VBI_OUTPUT ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:122:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"SLICED_VBI_CAPTURE ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:124:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"SLICED_VBI_OUTPUT ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:126:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"RDS_CAPTURE ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:128:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"RDS_OUTPUT ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:130:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"SDR_CAPTURE ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:132:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"TUNER ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:134:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"HW_FREQ_SEEK ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:136:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"MODULATOR ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:138:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"AUDIO ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:140:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"RADIO ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:142:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"READWRITE ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:144:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"ASYNCIO ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:146:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"STREAMING ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:148:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"EXT_PIX_FORMAT ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:150:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (s,"DEVICE_CAPS ");
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:196:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((drv->fd = open(device, O_RDWR )) < 0) {
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:355:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			s[256];
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:362:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf (s,"while trying to set STD to %08x",
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:396:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			s[256];
data/v4l-utils-1.20.0/utils/libv4l2util/v4l2_driver.c:402:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf (s,"while trying to set INPUT to %d\n", inp);
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:187:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	media->fd = open(media->devnode, O_RDWR);
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:457:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char devname[32];
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:458:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sysname[32];
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:459:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char target[1024];
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:463:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(sysname, "/sys/dev/char/%u:%u", entity->info.v4l.major,
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:757:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(entity->info.name, desc->name, sizeof entity->info.name);
data/v4l-utils-1.20.0/utils/media-ctl/libv4l2subdev.c:47:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	entity->fd = open(entity->devname, O_RDWR);
data/v4l-utils-1.20.0/utils/media-ctl/media-ctl.c:161:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char unknown[20];
data/v4l-utils-1.20.0/utils/media-ctl/media-ctl.c:169:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(unknown, "Unknown (%u)", type);
data/v4l-utils-1.20.0/utils/media-ctl/media-ctl.c:690:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buffer[32];
data/v4l-utils-1.20.0/utils/media-ctl/mediactl-priv.h:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char devname[32];
data/v4l-utils-1.20.0/utils/media-ctl/options.c:174:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char newdev[300];
data/v4l-utils-1.20.0/utils/media-ctl/options.c:199:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(newdev, O_RDWR);
data/v4l-utils-1.20.0/utils/qv4l2/alsa_stream.c:476:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pdevice_new[32];
data/v4l-utils-1.20.0/utils/qv4l2/capture-win-qt.cpp:121:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(m_image->bits(), m_data, m_image->byteCount());
data/v4l-utils-1.20.0/utils/qv4l2/capture-win-qt.cpp:123:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(m_image->bits(), m_data, m_image->numBytes());
data/v4l-utils-1.20.0/utils/qv4l2/capture-win.h:47:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char *planeData[3];
data/v4l-utils-1.20.0/utils/qv4l2/ctrl-tab.cpp:94:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(qec.name, "User Controls");
data/v4l-utils-1.20.0/utils/qv4l2/ctrl-tab.cpp:103:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(qec.name, "Camera Controls");
data/v4l-utils-1.20.0/utils/qv4l2/ctrl-tab.cpp:425:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			c[idx].string = (char *)malloc(c[idx].size);
data/v4l-utils-1.20.0/utils/qv4l2/ctrl-tab.cpp:651:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			c[cnt].string = (char *)malloc(c[cnt].size);
data/v4l-utils-1.20.0/utils/qv4l2/general-tab.cpp:1849:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[100];
data/v4l-utils-1.20.0/utils/qv4l2/general-tab.cpp:1852:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(buf, "%dx%di%.2f", bt.width, bt.height,
data/v4l-utils-1.20.0/utils/qv4l2/general-tab.cpp:1855:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(buf, "%dx%dp%.2f", bt.width, bt.height,
data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.cpp:409:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (open(device.toLatin1(), true) < 0) {
data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.cpp:1023:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char *plane[3];
data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.cpp:1111:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			m_saveRaw.write((const char *)plane[0], bytesused[0]);
data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.cpp:1660:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(m_buf, buf, size);
data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.cpp:1668:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file.open(QIODevice::WriteOnly | QIODevice::Truncate);
data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.cpp:1710:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	m_saveRaw.open(QIODevice::WriteOnly | QIODevice::Truncate);
data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.cpp:1769:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		.arg((const char *)m_ctrlMap[id].name).arg(strerror(err)));
data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.cpp:1775:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		.arg((const char *)m_ctrlMap[id].name).arg(v).arg(strerror(err)));
data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.cpp:1781:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		.arg((const char *)m_ctrlMap[id].name).arg(v).arg(strerror(err)));
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:1800:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(pos, pix[p], twopixsize / hdiv);
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:1830:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pos, pix[p], twopixsize);
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:1840:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pos, pix[p], twopixsize);
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:1850:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pos, pix[p], twopixsize);
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:1869:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&fg, tpg->textfg[p], sizeof(PIXTYPE));	\
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:1870:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&bg, tpg->textbg[p], sizeof(PIXTYPE));	\
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:2286:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, wss, params->wss_width);
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:2297:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf + left, tpg->contrast_line[p],
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:2302:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(vbuf + left,
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:2306:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(vbuf + right - twopixsize,
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:2312:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, tpg->black_line[p], params->left_pillar_width);
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:2313:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf + params->right_pillar_start, tpg->black_line[p],
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:2332:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf + left, tpg->contrast_line[p], width);
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:2486:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_top, img_width);
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:2488:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_bottom, img_width);
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:2492:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_bottom, img_width);
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:2494:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_top, img_width);
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:2497:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, linestart_top, img_width);
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:2500:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, linestart_bottom, img_width);
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:2504:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, linestart_older, img_width);
data/v4l-utils-1.20.0/utils/qv4l2/vbi-tab.cpp:183:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[50];
data/v4l-utils-1.20.0/utils/qv4l2/vbi-tab.cpp:200:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "PDC: 20XX-%02d-%02d %02d:%02d",
data/v4l-utils-1.20.0/utils/qv4l2/vbi-tab.cpp:377:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char found[m_countF1 + m_countF2];
data/v4l-utils-1.20.0/utils/qvidcap/capture.cpp:818:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!m_file.open(QIODevice::ReadOnly)) {
data/v4l-utils-1.20.0/utils/qvidcap/capture.cpp:1249:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/v4l-utils-1.20.0/utils/qvidcap/capture.cpp:1427:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			m_file.read((char *)m_curData[p], m_curSize[p]);
data/v4l-utils-1.20.0/utils/qvidcap/capture.cpp:1481:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			m_file.read((char *)m_curData[p], m_curSize[p]);
data/v4l-utils-1.20.0/utils/qvidcap/codec-fwht.c:855:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dst, *rlco, width);
data/v4l-utils-1.20.0/utils/qvidcap/codec-fwht.c:875:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(cf->de_fwht, copy, sizeof(copy));
data/v4l-utils-1.20.0/utils/qvidcap/qvidcap.cpp:370:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/v4l-utils-1.20.0/utils/qvidcap/qvidcap.cpp:676:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (fd.open(video_device.toUtf8().data(), true) < 0) {
data/v4l-utils-1.20.0/utils/qvidcap/v4l-stream.c:103:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(dst, dst - bpl / 4, bpl);
data/v4l-utils-1.20.0/utils/qvidcap/v4l-stream.c:282:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(row_ref, row_cap, ref_stride);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-info.cpp:27:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-info.cpp:30:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "0x%08x", num);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-info.cpp:32:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%u", num);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:1800:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(pos, pix[p], twopixsize / hdiv);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:1830:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pos, pix[p], twopixsize);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:1840:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pos, pix[p], twopixsize);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:1850:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pos, pix[p], twopixsize);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:1869:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&fg, tpg->textfg[p], sizeof(PIXTYPE));	\
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:1870:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&bg, tpg->textbg[p], sizeof(PIXTYPE));	\
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:2286:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, wss, params->wss_width);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:2297:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf + left, tpg->contrast_line[p],
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:2302:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(vbuf + left,
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:2306:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(vbuf + right - twopixsize,
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:2312:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, tpg->black_line[p], params->left_pillar_width);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:2313:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf + params->right_pillar_start, tpg->black_line[p],
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:2332:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf + left, tpg->contrast_line[p], width);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:2486:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_top, img_width);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:2488:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_bottom, img_width);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:2492:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_bottom, img_width);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:2494:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_top, img_width);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:2497:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, linestart_top, img_width);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:2500:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, linestart_bottom, img_width);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:2504:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, linestart_older, img_width);
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:76:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char options[OptLast];
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fd_name[80];
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:311:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(iter->c_str(), O_RDWR);
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:353:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd = open(iter->c_str(), O_RDONLY | O_NONBLOCK);
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:590:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char callsign[5] = { 0 };
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:747:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char short_options[26 * 2 * 2 + 1];
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:965:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(params.fd_name, "/dev/radio0");
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:984:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(params.fd_name, O_RDONLY|O_NONBLOCK)) < 0){
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:1005:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(params.fd_name, O_RDONLY | O_NONBLOCK)) < 0) {
data/v4l-utils-1.20.0/utils/v4l2-compliance/media-info.cpp:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/v4l-utils-1.20.0/utils/v4l2-compliance/media-info.cpp:33:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%08x", num);
data/v4l-utils-1.20.0/utils/v4l2-compliance/media-info.cpp:35:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%u", num);
data/v4l-utils-1.20.0/utils/v4l2-compliance/media-info.cpp:105:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fmt[32];
data/v4l-utils-1.20.0/utils/v4l2-compliance/media-info.cpp:108:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(fmt, "%d:%d", major, minor);
data/v4l-utils-1.20.0/utils/v4l2-compliance/media-info.cpp:174:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *uevent_fd = fopen(media_uevent_path.c_str(), "r");
data/v4l-utils-1.20.0/utils/v4l2-compliance/media-info.cpp:229:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			media_fd = open(devname.c_str(), O_RDWR);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:85:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char options[OptLast];
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:256:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[100];
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:721:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fds[i] = open(node->device, O_RDWR);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:773:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[0x4000] = {};
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:843:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			int fd = open(media_devname.c_str(), O_RDWR);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:862:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char newdev[32];
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:1099:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		       ok(node2.open(node.device, false) >= 0 ? 0 : errno));
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:1244:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char suffix[100] = "";
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:1483:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char short_options[26 * 2 * 3 + 1];
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:1722:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = node.open(device.c_str(), false);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:1734:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = expbuf_node.open(expbuf_device.c_str(), false);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-info.cpp:27:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-info.cpp:30:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "0x%08x", num);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-info.cpp:32:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%u", num);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:123:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	stream_from_fd = open(file.c_str(), O_RDONLY);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:2554:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s_crop[32] = "";
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:2555:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s_compose[32] = "";
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:2559:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(s_crop, "Crop %ux%u@%ux%u, ",
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:2565:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(s_compose, "Compose %ux%u@%ux%u, ",
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:2597:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hz[32] = "";
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:2612:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(hz, "@%.2f Hz", 1.0 / fract2f(f));
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-media.cpp:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dev_path[100];
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-media.cpp:600:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = test_node.open(dev.c_str(), false);
data/v4l-utils-1.20.0/utils/v4l2-ctl/codec-fwht.c:855:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dst, *rlco, width);
data/v4l-utils-1.20.0/utils/v4l2-ctl/codec-fwht.c:875:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(cf->de_fwht, copy, sizeof(copy));
data/v4l-utils-1.20.0/utils/v4l2-ctl/media-info.cpp:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/v4l-utils-1.20.0/utils/v4l2-ctl/media-info.cpp:33:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%08x", num);
data/v4l-utils-1.20.0/utils/v4l2-ctl/media-info.cpp:35:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%u", num);
data/v4l-utils-1.20.0/utils/v4l2-ctl/media-info.cpp:105:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fmt[32];
data/v4l-utils-1.20.0/utils/v4l2-ctl/media-info.cpp:108:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(fmt, "%d:%d", major, minor);
data/v4l-utils-1.20.0/utils/v4l2-ctl/media-info.cpp:174:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *uevent_fd = fopen(media_uevent_path.c_str(), "r");
data/v4l-utils-1.20.0/utils/v4l2-ctl/media-info.cpp:229:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			media_fd = open(devname.c_str(), O_RDWR);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l-stream.c:103:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(dst, dst - bpl / 4, bpl);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l-stream.c:282:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(row_ref, row_cap, ref_stride);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-common.cpp:162:9:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			n += atol(s + l);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-common.cpp:202:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd = open(s.c_str(), O_RDWR);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-common.cpp:263:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char link[64+1];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-common.cpp:295:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd = open(iter->c_str(), O_RDWR);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-common.cpp:372:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[3];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-common.cpp:374:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf, "%02x", *name);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-common.cpp:1180:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static char buf[40960];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-common.cpp:1200:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						memcpy(q, "   ", 3);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-edid.cpp:245:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char value[3] = { 0 };
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-edid.cpp:1210:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				fin = fopen(file_in, "r");
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-edid.cpp:1330:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				fout = fopen(file_out, "w+");
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-misc.cpp:228:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(jpegcomp.COM_data, value, len);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-misc.cpp:244:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(jpegcomp.APP_data, value, len);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-overlay.cpp:102:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char dev_name[16];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-overlay.cpp:106:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fb_fd = open(dev_name, O_RDWR);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-overlay.cpp:166:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fb_fd = open(fb_device, O_RDWR);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-overlay.cpp:367:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					static char newdev[20];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-streaming.cpp:474:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[20];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-streaming.cpp:484:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "Type %d", (flags & V4L2_BUF_FLAG_TIMESTAMP_MASK) >> 13);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-streaming.cpp:491:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[20];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-streaming.cpp:499:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "Source %d", (flags & V4L2_BUF_FLAG_TSTAMP_SRC_MASK) >> 16);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-streaming.cpp:994:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[1024];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-streaming.cpp:1657:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fout = fopen(file_to, "w+");
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-streaming.cpp:1691:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(reinterpret_cast<char *>(&serv_addr.sin_addr.s_addr),
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-streaming.cpp:1922:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fin = fopen(file_from, "r");
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-streaming.cpp:1969:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-streaming.cpp:2693:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			file[CAP] = fopen(file_to, "w+");
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-streaming.cpp:2704:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			file[OUT] = fopen(file_from, "r");
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-subdev.cpp:598:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-subdev.cpp:600:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%.3f", (1.0 * f.numerator) / f.denominator);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-subdev.cpp:606:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-subdev.cpp:608:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%.3f", (1.0 * f.denominator) / f.numerator);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-vidcap.cpp:365:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char img[16] = {
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:57:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char options[OptLast];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:548:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:550:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%.3f", (1.0 * f.numerator) / f.denominator);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:556:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:558:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%.3f", (1.0 * f.denominator) / f.numerator);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:1014:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			int fd = open(devname.c_str(), O_RDWR);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:1033:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static char newdev[32];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:1088:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char newdev[32];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:1089:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(newdev, "/dev/char/%d:%d",
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:1127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char short_options[26 * 2 * 3 + 1];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:1322:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = c_fd.open(device);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:1354:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		out_fd = c_out_fd.open(out_device);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:1373:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		exp_fd = c_exp_fd.open(export_device);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.h:269:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char options[OptLast];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-info.cpp:27:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-info.cpp:30:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "0x%08x", num);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-info.cpp:32:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%u", num);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:1800:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(pos, pix[p], twopixsize / hdiv);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:1830:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pos, pix[p], twopixsize);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:1840:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pos, pix[p], twopixsize);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:1850:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pos, pix[p], twopixsize);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:1869:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&fg, tpg->textfg[p], sizeof(PIXTYPE));	\
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:1870:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&bg, tpg->textbg[p], sizeof(PIXTYPE));	\
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:2286:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, wss, params->wss_width);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:2297:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf + left, tpg->contrast_line[p],
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:2302:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(vbuf + left,
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:2306:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(vbuf + right - twopixsize,
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:2312:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, tpg->black_line[p], params->left_pillar_width);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:2313:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf + params->right_pillar_start, tpg->black_line[p],
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:2332:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf + left, tpg->contrast_line[p], width);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:2486:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_top, img_width);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:2488:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_bottom, img_width);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:2492:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_bottom, img_width);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:2494:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(vbuf, linestart_top, img_width);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:2497:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, linestart_top, img_width);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:2500:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, linestart_bottom, img_width);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:2504:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(vbuf, linestart_older, img_width);
data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg.cpp:146:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char options[OptLast];
data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg.cpp:340:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char bin[80];
data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg.cpp:416:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char short_options[26 * 2 * 3 + 1];
data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg.cpp:475:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				static char newdev[20];
data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg.cpp:551:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(device, O_RDWR)) < 0) {
data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg.cpp:774:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static char buf[40960];
data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg.cpp:796:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						memcpy(q, "   ", 3);
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:280:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, &buffer[i], bytes);
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:334:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	length = read(fd, buffer, fs.st_size);
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:471:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			read(fd, verify, bytes_pr_write);
data/v4l-utils-1.20.0/contrib/cobalt-ctl/cobalt-ctl.c:546:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (device[0] >= '0' && device[0] <= '9' && strlen(device) <= 3) {
data/v4l-utils-1.20.0/contrib/decode_tm6000/decode_tm6000.c:222:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int size=read(fd, outbuf, sizeof(outbuf));
data/v4l-utils-1.20.0/contrib/rds-saa6588/rds-saa6588.c:109:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(f,b,6);
data/v4l-utils-1.20.0/contrib/rds-saa6588/rds-saa6588.c:133:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(10*1000);
data/v4l-utils-1.20.0/contrib/test/capture-example.c:84:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (-1 == read(fd, buffers[0].start, buffers[0].length)) {
data/v4l-utils-1.20.0/contrib/test/ioctl-test.c:67:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(ioctls[i].name) > maxlen)
data/v4l-utils-1.20.0/contrib/test/ioctl-test.c:68:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			maxlen = strlen(ioctls[i].name);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:98:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(media_device, arg, sizeof(media_device) - 1);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:901:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (!strncmp(entity->name, DEMUX_TSOUT, strlen(DEMUX_TSOUT)))
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:902:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				i = atoi(&entity->name[strlen(DEMUX_TSOUT)]);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:903:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			else if (!strncmp(entity->name, DVR_TSOUT, strlen(DVR_TSOUT)))
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:904:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				i = atoi(&entity->name[strlen(DVR_TSOUT)]);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:1029:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (!strncmp(sink->name, DEMUX_TSOUT, strlen(DEMUX_TSOUT)))
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:1030:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					i = atoi(&sink->name[strlen(DEMUX_TSOUT)]);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:1031:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				else if (!strncmp(sink->name, DVR_TSOUT, strlen(DVR_TSOUT)))
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:1032:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					i = atoi(&sink->name[strlen(DVR_TSOUT)]);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:1070:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (!strncmp(sink->name, DEMUX_TSOUT, strlen(DEMUX_TSOUT)))
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:1071:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					i = atoi(&sink->name[strlen(DEMUX_TSOUT)]);
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:1072:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				else if (!strncmp(sink->name, DVR_TSOUT, strlen(DVR_TSOUT)))
data/v4l-utils-1.20.0/contrib/test/mc_nextgen_test.c:1073:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					i = atoi(&sink->name[strlen(DVR_TSOUT)]);
data/v4l-utils-1.20.0/contrib/test/pixfmt-test.c:1239:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (-1 == read (dev_fd, buffers[0].start,
data/v4l-utils-1.20.0/contrib/test/sliced-vbi-detect.c:51:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int size = read(fh, buf, fmt->io_size);
data/v4l-utils-1.20.0/contrib/test/sliced-vbi-test.c:457:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int size = read(fh, buf, fmt.fmt.sliced.io_size);
data/v4l-utils-1.20.0/contrib/test/stress-buffer.c:109:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buffer, magic_buffer_size);
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:133:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char				out_name[25 + strlen(out_dir)];
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:211:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char				out_name[25 + strlen(out_dir)];
data/v4l-utils-1.20.0/contrib/test/v4l2grab.c:428:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(arg);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:249:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if(read(fd, ptr, buf.st_size) < 0) {
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:542:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			char name[strlen(binfile)+4], *p;
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:546:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(name, binfile, n);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/firmware-tool.c:551:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				sprintf(name + strlen(name), "%03i", i);
data/v4l-utils-1.20.0/contrib/xc3028-firmware/standards.c:107:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(len >= 9 && memcmp(reset_clk_str, line, strlen(reset_clk_str) - 1) == 0) {
data/v4l-utils-1.20.0/contrib/xc3028-firmware/standards.c:113:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if(len >= 11 && memcmp(reset_tuner_str, line, strlen(reset_tuner_str) - 1) == 0) {
data/v4l-utils-1.20.0/include/gettext.h:213:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t msgctxt_len = strlen (msgctxt) + 1;
data/v4l-utils-1.20.0/include/gettext.h:214:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t msgid_len = strlen (msgid) + 1;
data/v4l-utils-1.20.0/include/gettext.h:259:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t msgctxt_len = strlen (msgctxt) + 1;
data/v4l-utils-1.20.0/include/gettext.h:260:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t msgid_len = strlen (msgid) + 1;
data/v4l-utils-1.20.0/include/linux/cec-funcs.h:748:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	unsigned int len = strlen(prog_title);
data/v4l-utils-1.20.0/include/linux/cec-funcs.h:1197:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	unsigned int len = strlen(osd);
data/v4l-utils-1.20.0/include/linux/cec-funcs.h:1224:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	unsigned int len = strlen(name);
data/v4l-utils-1.20.0/lib/include/libv4l-plugin.h:33:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t (*read)(void *dev_ops_priv, int fd, void *buffer, size_t n);
data/v4l-utils-1.20.0/lib/libdvbv5/countries.c:394:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (! buf || strlen(buf) < 2)
data/v4l-utils-1.20.0/lib/libdvbv5/countries.c:397:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (! strncmp(buf, "POSIX", MIN(strlen(buf), 5)) ||
data/v4l-utils-1.20.0/lib/libdvbv5/countries.c:398:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    ! (strncmp(buf, "en", MIN(strlen(buf), 2)) && !isalpha(buf[2])) )
data/v4l-utils-1.20.0/lib/libdvbv5/countries.c:418:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(pbuf) == 2)
data/v4l-utils-1.20.0/lib/libdvbv5/descriptors.c:1387:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for (i = 0; i < sizeof(spaces) - 1 - strlen(hex); i++)
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-demux.c:180:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (((count = read(patfd, buf, sizeof(buft))) < 0) && errno == EOVERFLOW)
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-demux.c:181:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			count = read(patfd, buf, sizeof(buft));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-local.c:189:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char c = dvb_dev->path[strlen(dvb_dev->path) - 1] - '0';
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-local.c:626:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = TEMP_FAILURE_RETRY(read(fd, buf, count));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-local.c:741:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		count = TEMP_FAILURE_RETRY(read(fd, buf, sizeof(buft)));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-local.c:743:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			count = TEMP_FAILURE_RETRY(read(fd, buf, sizeof(buft)));
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-priv.h:50:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t (*read)(struct dvb_open_descriptor *open_dev,
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:76:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t read, write;
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:155:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(s);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:259:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(cmd);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:352:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(cmd);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:544:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((unsigned)((ringbuf->write - ringbuf->read) % RINGBUF_SIZE) < size)
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:562:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((unsigned)((ringbuf->write - ringbuf->read) % RINGBUF_SIZE) < *len) {
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:564:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(1);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:571:74:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	split = (ringbuf->read + size > RINGBUF_SIZE) ? RINGBUF_SIZE - ringbuf->read : 0;
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:574:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		memcpy(buf, &ringbuf->buf[ringbuf->read], split);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:580:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	memcpy(buf, &ringbuf->buf[ringbuf->read], size);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:606:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		l = strlen(str);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev-remote.c:1666:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(1000);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev.c:281:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!ops->read)
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-dev.c:284:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return ops->read(open_dev, buf, count);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:359:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					entry->channel = calloc(strlen(p) + 1, 1);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:796:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				p += strlen(CHANNEL);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:800:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				entry->channel = calloc(strlen(p) + 1, 1);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:813:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			p = &key[strlen(key) - 1];
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:1201:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(100000);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:1290:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			channel = calloc(1, strlen(p) + 1);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-file.c:1326:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				channel = calloc(strlen(p) + 1, 1);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-sat.c:562:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(15 * 1000);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-sat.c:575:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep((15 + parms->p.diseqc_wait) * 1000);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-sat.c:583:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(15 * 1000);
data/v4l-utils-1.20.0/lib/libdvbv5/dvb-scan.c:364:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		buf_length = read(dmx_fd, buf, DVB_MAX_PAYLOAD_PACKET_SIZE);
data/v4l-utils-1.20.0/lib/libdvbv5/parse_string.c:309:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char out_cs[strlen(output_charset) + 1 + sizeof(CS_OPTIONS)];
data/v4l-utils-1.20.0/lib/libdvbv5/parse_string.c:523:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		*dest = realloc(*dest, strlen(*dest) + 1);
data/v4l-utils-1.20.0/lib/libdvbv5/parse_string.c:534:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		*emph = realloc(*emph, strlen(*emph) + 1);
data/v4l-utils-1.20.0/lib/libv4l1/v4l1compat.c:37:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#if defined open || defined read || defined mmap
data/v4l-utils-1.20.0/lib/libv4l1/v4l1compat.c:38:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#error open/read/mmap is a prepocessor macro !!
data/v4l-utils-1.20.0/lib/libv4l1/v4l1compat.c:115:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
LIBV4L_PUBLIC ssize_t read(int fd, void *buffer, size_t n)
data/v4l-utils-1.20.0/lib/libv4l2/libv4l2.c:422:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		result = devices[index].dev_ops->read(
data/v4l-utils-1.20.0/lib/libv4l2/libv4l2.c:1548:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!devices[index].dev_ops->read) {
data/v4l-utils-1.20.0/lib/libv4l2/libv4l2.c:1560:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		result = devices[index].dev_ops->read(
data/v4l-utils-1.20.0/lib/libv4l2/v4l2-plugin-android.c:92:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			length = strlen(entry->d_name);
data/v4l-utils-1.20.0/lib/libv4l2/v4l2convert.c:51:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#if defined open || defined read || defined mmap
data/v4l-utils-1.20.0/lib/libv4l2/v4l2convert.c:52:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#error open/read/mmap is a prepocessor macro !!
data/v4l-utils-1.20.0/lib/libv4l2/v4l2convert.c:152:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
LIBV4L_PUBLIC ssize_t read(int fd, void *buffer, size_t n)
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:354:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		s[strlen(s) - 1] = 0;
data/v4l-utils-1.20.0/lib/libv4lconvert/control/libv4lcontrol.c:480:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = strlen(start);
data/v4l-utils-1.20.0/lib/libv4lconvert/helper-funcs.h:64:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(fd, buf + r, count - r);
data/v4l-utils-1.20.0/lib/libv4lconvert/helper.c:150:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(data->decompress_in_pipe[READ_END], buf + r, count - r);
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.h:218:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				getchar();				\
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.h:297:22:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = tolower(getchar())) != 'y' && c != 'n');
data/v4l-utils-1.20.0/utils/cec-compliance/cec-compliance.h:298:2:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	getchar();
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp:325:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	fail_on_test(msg.len != strlen(osd_name) + 2);
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp:387:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	fail_on_test(strlen(osd) != 13);
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp:1537:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if (!equal || equal == optarg || !isdigit(equal[1]))
data/v4l-utils-1.20.0/utils/cec-compliance/cec-test.cpp:1537:44:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if (!equal || equal == optarg || !isdigit(equal[1]))
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1134:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(100000);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1524:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(usecs1);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:1591:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(usecs2);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:2475:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(laddrs.osd_name, osd_name, sizeof(laddrs.osd_name));
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:2666:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		has_edid = read(fd, &dummy, 1) > 0;
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:2679:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(100000);
data/v4l-utils-1.20.0/utils/cec-ctl/cec-ctl.cpp:2681:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			edid = read(fd, &dummy, 1) > 0;
data/v4l-utils-1.20.0/utils/common/cv4l-helpers.h:57:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t read(void *buffer, size_t n) { return v4l_read(this, buffer, n); }
data/v4l-utils-1.20.0/utils/common/keymap.c:526:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(fname);
data/v4l-utils-1.20.0/utils/common/media-info.cpp:90:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t len = strlen(devname);
data/v4l-utils-1.20.0/utils/common/toml.c:1227:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ctx.stop = ctx.start + strlen(conf);
data/v4l-utils-1.20.0/utils/common/toml.c:1688:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char* q = src_ + strlen(src_);
data/v4l-utils-1.20.0/utils/common/toml.c:1950:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memmove(p, q, strlen(q) + 1);
data/v4l-utils-1.20.0/utils/common/toml.c:1957:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memmove(p, q, strlen(q) + 1);
data/v4l-utils-1.20.0/utils/common/toml.c:1970:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int srclen = strlen(src);
data/v4l-utils-1.20.0/utils/common/v4l-helpers.h:46:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t (*read)(struct v4l_fd *f, void *buffer, size_t n);
data/v4l-utils-1.20.0/utils/common/v4l-helpers.h:70:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return f->direct ? read(f->fd, buffer, n) : v4l2_read(f->fd, buffer, n);
data/v4l-utils-1.20.0/utils/common/v4l-helpers.h:129:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(f->fd, buffer, n);
data/v4l-utils-1.20.0/utils/common/v4l-helpers.h:238:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return f->read(f, buffer, n);
data/v4l-utils-1.20.0/utils/common/v4l-helpers.h:477:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(f->devname, devname, sizeof(f->devname));
data/v4l-utils-1.20.0/utils/common/v4l-helpers.h:519:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(f->devname, devname, sizeof(f->devname));
data/v4l-utils-1.20.0/utils/common/v4l-helpers.h:552:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(f->devname, devname, sizeof(f->devname));
data/v4l-utils-1.20.0/utils/common/v4l2-tpg-core.c:1951:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	unsigned len = strlen(text);
data/v4l-utils-1.20.0/utils/cx18-ctl/cx18-ctl.c:269:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (device[0] >= '0' && device[0] <= '9' && strlen(device) <= 3) {
data/v4l-utils-1.20.0/utils/dvb/dvb-fe-tool.c:291:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(1000000);
data/v4l-utils-1.20.0/utils/dvb/dvb-fe-tool.c:356:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(1000000);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-daemon.c:350:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(s);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-scan.c:206:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(100000);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:498:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(1000000);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:508:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(1000000);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:528:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(1000000);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:923:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				int i, sl = strlen(args->search);
data/v4l-utils-1.20.0/utils/dvb/dvbv5-zap.c:1372:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(1000000);
data/v4l-utils-1.20.0/utils/ir-ctl/ir-ctl.c:694:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		s = malloc(sizeof(*s) + strlen(arg));
data/v4l-utils-1.20.0/utils/ir-ctl/ir-ctl.c:1154:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = TEMP_FAILURE_RETRY(read(fd, buf, sizeof(buf)));
data/v4l-utils-1.20.0/utils/ir-ctl/ir-ctl.c:1268:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(args.gap);
data/v4l-utils-1.20.0/utils/ir-ctl/keymap.c:526:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(fname);
data/v4l-utils-1.20.0/utils/ir-ctl/toml.c:1227:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ctx.stop = ctx.start + strlen(conf);
data/v4l-utils-1.20.0/utils/ir-ctl/toml.c:1688:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char* q = src_ + strlen(src_);
data/v4l-utils-1.20.0/utils/ir-ctl/toml.c:1950:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memmove(p, q, strlen(q) + 1);
data/v4l-utils-1.20.0/utils/ir-ctl/toml.c:1957:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memmove(p, q, strlen(q) + 1);
data/v4l-utils-1.20.0/utils/ir-ctl/toml.c:1970:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int srclen = strlen(src);
data/v4l-utils-1.20.0/utils/ivtv-ctl/ivtv-ctl.c:347:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (device[0] >= '0' && device[0] <= '9' && strlen(device) <= 3) {
data/v4l-utils-1.20.0/utils/keytable/bpf.c:69:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	__u32 name_len = create_attr->name ? strlen(create_attr->name) : 0;
data/v4l-utils-1.20.0/utils/keytable/bpf.c:142:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	__u32 name_len = name ? strlen(name) : 0;
data/v4l-utils-1.20.0/utils/keytable/bpf.c:180:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	name_len = load_attr->name ? strlen(load_attr->name) : 0;
data/v4l-utils-1.20.0/utils/keytable/keymap.c:526:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(fname);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:501:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		nextcfg->driver = malloc(strlen(driver) + 1);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:504:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		nextcfg->table = malloc(strlen(table) + 1);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:507:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		nextcfg->fname = malloc(strlen(filename) + 1);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:776:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!node_name || !strncmp(entry->d_name, node_name, strlen(node_name))) {
data/v4l-utils-1.20.0/utils/keytable/keytable.c:777:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			cur_name->name = malloc(strlen(dname) + strlen(entry->d_name) + 2);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:777:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			cur_name->name = malloc(strlen(dname) + strlen(entry->d_name) + 2);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:783:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(cur_name->name, "/");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:831:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	file = malloc(strlen(dname) + strlen(event) + 1);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:831:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	file = malloc(strlen(dname) + strlen(event) + 1);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:849:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		next->key = malloc(strlen(p) + 1);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:866:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		next->value = malloc(strlen(p) + 1);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:920:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = malloc(strlen(name) + 2);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:922:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(n,"/");
data/v4l-utils-1.20.0/utils/keytable/keytable.c:925:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				p = cur->name + strlen(dname);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1134:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			p[strlen(p)-1] = '\0';
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1209:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					rc_dev->lirc_name = malloc(strlen(uevent->value) + strlen(DEV) + 1);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1209:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					rc_dev->lirc_name = malloc(strlen(uevent->value) + strlen(DEV) + 1);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1253:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			rc_dev->input_name = malloc(strlen(uevent->value) + strlen(DEV) + 1);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1253:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			rc_dev->input_name = malloc(strlen(uevent->value) + strlen(DEV) + 1);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1272:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			rc_dev->drv_name = malloc(strlen(uevent->value) + 1);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1276:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			rc_dev->dev_name = malloc(strlen(uevent->value) + 1);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1280:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			rc_dev->keytable_name = malloc(strlen(uevent->value) + 1);
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1544:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rd = read(lircfd, sc, sizeof(sc));
data/v4l-utils-1.20.0/utils/keytable/keytable.c:1554:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rd = read(fd, ev, sizeof(ev));
data/v4l-utils-1.20.0/utils/keytable/toml.c:1227:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ctx.stop = ctx.start + strlen(conf);
data/v4l-utils-1.20.0/utils/keytable/toml.c:1688:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char* q = src_ + strlen(src_);
data/v4l-utils-1.20.0/utils/keytable/toml.c:1950:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memmove(p, q, strlen(q) + 1);
data/v4l-utils-1.20.0/utils/keytable/toml.c:1957:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memmove(p, q, strlen(q) + 1);
data/v4l-utils-1.20.0/utils/keytable/toml.c:1970:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int srclen = strlen(src);
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:258:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (md->node[strlen(md->node) - 1] == 'p')
data/v4l-utils-1.20.0/utils/libmedia_dev/get_media_devices.c:260:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if (md->node[strlen(md->node) - 1] == 'c')
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:427:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(entity->devname, p, sizeof(entity->devname));
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:751:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(entity->devname, devnode, sizeof entity->devname);
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:974:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (pos > strlen(p))
data/v4l-utils-1.20.0/utils/media-ctl/libmediactl.c:975:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pos = strlen(p);
data/v4l-utils-1.20.0/utils/media-ctl/libv4l2subdev.c:434:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(str);
data/v4l-utils-1.20.0/utils/media-ctl/options.c:158:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int spaces = 30 - (int)strlen(str);
data/v4l-utils-1.20.0/utils/media-ctl/options.c:181:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (device[0] >= '0' && device[0] <= '9' && strlen(device) <= 3) {
data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.cpp:85:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(fd, buf, len);
data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.cpp:760:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		s = read(m_frameData, m_vbiSize);
data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.cpp:858:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		s = read(m_frameData, m_sdrSize);
data/v4l-utils-1.20.0/utils/qv4l2/qv4l2.cpp:1037:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		s = read(m_frameData, m_capSrcFormat.g_sizeimage(0));
data/v4l-utils-1.20.0/utils/qv4l2/v4l2-tpg-core.c:1951:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	unsigned len = strlen(text);
data/v4l-utils-1.20.0/utils/qvidcap/capture.cpp:1206:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(m_sock, &v, sizeof(v));
data/v4l-utils-1.20.0/utils/qvidcap/capture.cpp:1255:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(m_sock, buf, rdsize);
data/v4l-utils-1.20.0/utils/qvidcap/capture.cpp:1302:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(m_sock, dst + offset, sz);
data/v4l-utils-1.20.0/utils/qvidcap/capture.cpp:1427:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			m_file.read((char *)m_curData[p], m_curSize[p]);
data/v4l-utils-1.20.0/utils/qvidcap/capture.cpp:1481:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			m_file.read((char *)m_curData[p], m_curSize[p]);
data/v4l-utils-1.20.0/utils/qvidcap/qvidcap.cpp:319:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, &v, sizeof(v));
data/v4l-utils-1.20.0/utils/qvidcap/qvidcap.cpp:385:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(sock_fd, buf, rdsize);
data/v4l-utils-1.20.0/utils/qvidcap/v4l2-tpg-core.c:1951:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	unsigned len = strlen(text);
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:691:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((byte_cnt=read(fd, &rds_data, 3)) != 3) {
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:703:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(wait_limit * 1000);
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:772:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(params.fd_name, optarg, sizeof(params.fd_name) - 1);
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:773:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (optarg[0] >= '0' && optarg[0] <= '9' && strlen(optarg) <= 3) {
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:794:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(params.fd_name, optarg, sizeof(params.fd_name));
data/v4l-utils-1.20.0/utils/rds-ctl/rds-ctl.cpp:1001:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(params.fd_name, devices[0].c_str(), sizeof(params.fd_name));
data/v4l-utils-1.20.0/utils/v4l2-compliance/media-info.cpp:90:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t len = strlen(devname);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:861:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (device[0] >= '0' && device[0] <= '9' && strlen(device) <= 3) {
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-compliance.cpp:1592:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if (equal) {
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:145:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(stream_from_fd, &v, sizeof(v)) != sizeof(v))
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:162:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ssize_t sz = read(stream_from_fd, q.g_dataptr(buf.g_index(), p), len);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:172:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(stream_from_fd, &bytesused, sizeof(bytesused)) != sizeof(bytesused)) {
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:184:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t sz = read(stream_from_fd, q.g_dataptr(buf.g_index(), p), bytesused);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:653:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				ret = node->read(&buf, 1);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:779:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = node->read(&buf, 1);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:805:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret2 = node->read(&buf, 1);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:2261:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(100000);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:2282:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(250000);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-buffers.cpp:2477:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = node->read(tmp, size);
data/v4l-utils-1.20.0/utils/v4l2-compliance/v4l2-test-colors.cpp:521:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = node->read(tmp, size);
data/v4l-utils-1.20.0/utils/v4l2-ctl/media-info.cpp:90:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t len = strlen(devname);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-common.cpp:141:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		unsigned l = strlen(prefixes[i]);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-common.cpp:158:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		unsigned l = strlen(prefixes[i]);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-common.cpp:973:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(ctrl.string, iter->second.c_str(), qc.maximum);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-edid.cpp:253:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = fgetc(f)) != EOF) {
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-meta.cpp:51:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(optarg) == 0) {
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-meta.cpp:54:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (strlen(optarg) == 4) {
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-misc.cpp:224:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(value);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-misc.cpp:236:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(value);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-overlay.cpp:366:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (fb_device[0] >= '0' && fb_device[0] <= '9' && strlen(fb_device) <= 3) {
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-sdr.cpp:54:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(optarg) == 0) {
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-sdr.cpp:57:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (strlen(optarg) == 4) {
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-vidcap.cpp:121:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		be_pixfmt = strlen(optarg) == 7 && !memcmp(optarg + 4, "-BE", 3);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-vidcap.cpp:122:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (be_pixfmt || strlen(optarg) == 4) {
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-vidcap.cpp:152:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				be_pixfmt = strlen(value) == 7 && !memcmp(value + 4, "-BE", 3);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl-vidcap.cpp:153:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (be_pixfmt || strlen(value) == 4) {
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:787:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			be_pixfmt = strlen(value) == 7 && !memcmp(value + 4, "-BE", 3);
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:788:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (be_pixfmt || strlen(value) == 4) {
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-ctl.cpp:1032:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (device[0] >= '0' && device[0] <= '9' && strlen(device) <= 3) {
data/v4l-utils-1.20.0/utils/v4l2-ctl/v4l2-tpg-core.c:1951:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	unsigned len = strlen(text);
data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg.cpp:292:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(1);
data/v4l-utils-1.20.0/utils/v4l2-dbg/v4l2-dbg.cpp:474:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (device[0] >= '0' && device[0] <= '9' && strlen(device) <= 3) {

ANALYSIS SUMMARY:

Hits = 1501
Lines analyzed = 203423 in approximately 5.64 seconds (36080 lines/second)
Physical Source Lines of Code (SLOC) = 153487
Hits@level = [0] 3511 [1] 245 [2] 1059 [3]  33 [4] 157 [5]   7
Hits@level+ = [0+] 5012 [1+] 1501 [2+] 1256 [3+] 197 [4+] 164 [5+]   7
Hits/KSLOC@level+ = [0+] 32.6542 [1+] 9.77933 [2+] 8.1831 [3+] 1.2835 [4+] 1.06849 [5+] 0.0456065
Dot directories skipped = 2 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.