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/yatm-0.9/yatm.cc

FINAL RESULTS:

data/yatm-0.9/yatm.cc:757: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(stderr, header->vbr ? ", VBR)\n" : ")\n");
data/yatm-0.9/yatm.cc:180:15:  [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, "b:e:c:s:qt:vVh")) != -1) {
data/yatm-0.9/yatm.cc:149: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 buffer[bufsize * channels * sizeof(signed int)];
data/yatm-0.9/yatm.cc:189:24:  [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).
      pitchCentDelta = atoi(optarg);
data/yatm-0.9/yatm.cc:192:24:  [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).
      pitchCentDelta = atoi(optarg)*100;
data/yatm-0.9/yatm.cc:227: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(input_file, O_RDONLY);

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 934 in approximately 0.04 seconds (22764 lines/second)
Physical Source Lines of Code (SLOC) = 761
Hits@level = [0]  40 [1]   0 [2]   4 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]  46 [1+]   6 [2+]   6 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 60.4468 [1+] 7.88436 [2+] 7.88436 [3+] 2.62812 [4+] 1.31406 [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.