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/chaosread-1.1/chaosread.c

FINAL RESULTS:

data/chaosread-1.1/chaosread.c:250:14:  [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 ((c = getopt_long(argc, argv, "s:l:ibcrfV?", options, NULL)) != -1) {
data/chaosread-1.1/chaosread.c:70: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).
	match_len = strlen(match_serial);
data/chaosread-1.1/chaosread.c:264: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).
			else if (strlen(length_end))

ANALYSIS SUMMARY:

Hits = 3
Lines analyzed = 328 in approximately 0.04 seconds (8057 lines/second)
Physical Source Lines of Code (SLOC) = 270
Hits@level = [0]  10 [1]   2 [2]   0 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  13 [1+]   3 [2+]   1 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 48.1481 [1+] 11.1111 [2+] 3.7037 [3+] 3.7037 [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.