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/dov4l-0.9+repack/dov4l.c

FINAL RESULTS:

data/dov4l-0.9+repack/dov4l.c:347:20:  [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((c = getopt(argc, argv, "p:d:qi:t:m:f:b:u:c:n:w:hs:")) != -1)
data/dov4l-0.9+repack/dov4l.c:352: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).
			bri = atoi(optarg);
data/dov4l-0.9+repack/dov4l.c:355: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).
			hue = atoi(optarg);
data/dov4l-0.9+repack/dov4l.c:358: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).
			col = atoi(optarg);
data/dov4l-0.9+repack/dov4l.c:361: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).
			con = atoi(optarg);
data/dov4l-0.9+repack/dov4l.c:364: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).
			whi = atoi(optarg);
data/dov4l-0.9+repack/dov4l.c:376: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).
			ichannel = atoi(optarg);
data/dov4l-0.9+repack/dov4l.c:407:12:  [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).
			tuner = atoi(optarg);
data/dov4l-0.9+repack/dov4l.c:410: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).
			frequency = atoi(optarg);
data/dov4l-0.9+repack/dov4l.c:422: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).
				width = atoi(optarg);
data/dov4l-0.9+repack/dov4l.c:423: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).
				height = atoi(dummy + 1);
data/dov4l-0.9+repack/dov4l.c:428: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);

ANALYSIS SUMMARY:

Hits = 12
Lines analyzed = 533 in approximately 0.06 seconds (9242 lines/second)
Physical Source Lines of Code (SLOC) = 470
Hits@level = [0] 118 [1]   0 [2]  11 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+] 130 [1+]  12 [2+]  12 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 276.596 [1+] 25.5319 [2+] 25.5319 [3+] 2.12766 [4+]   0 [5+]   0
Dot directories skipped = 1 (--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.