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/ocaml-lame-0.3.4/src/lame_stubs.c

FINAL RESULTS:

data/ocaml-lame-0.3.4/src/lame_stubs.c:195: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 outbuf[LAME_MAXMP3BUFFER];
data/ocaml-lame-0.3.4/src/lame_stubs.c:198: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(inbuf, String_val(_buf), inbuf_len);
data/ocaml-lame-0.3.4/src/lame_stubs.c:217: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(Bytes_val(ret), outbuf, ans);
data/ocaml-lame-0.3.4/src/lame_stubs.c:235: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 outbuf[LAME_MAXMP3BUFFER];
data/ocaml-lame-0.3.4/src/lame_stubs.c:254: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(Bytes_val(ret), outbuf, ans);
data/ocaml-lame-0.3.4/src/lame_stubs.c:272: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 outbuf[LAME_MAXMP3BUFFER];
data/ocaml-lame-0.3.4/src/lame_stubs.c:283: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(Bytes_val(ret), outbuf, ans);
data/ocaml-lame-0.3.4/src/lame_stubs.c:293: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 outbuf[LAME_MAXMP3BUFFER];
data/ocaml-lame-0.3.4/src/lame_stubs.c:302: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(Bytes_val(ret), outbuf, ans);
data/ocaml-lame-0.3.4/src/lame_stubs.c:312: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 outbuf[LAME_MAXMP3BUFFER];
data/ocaml-lame-0.3.4/src/lame_stubs.c:321: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(Bytes_val(ret), outbuf, ans);

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 371 in approximately 0.03 seconds (12793 lines/second)
Physical Source Lines of Code (SLOC) = 267
Hits@level = [0]   2 [1]   0 [2]  11 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  13 [1+]  11 [2+]  11 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 48.6891 [1+] 41.1985 [2+] 41.1985 [3+]   0 [4+]   0 [5+]   0
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.