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-opus-0.1.3/src/opus_stubs.c

FINAL RESULTS:

data/ocaml-opus-0.1.3/src/opus_stubs.c:190: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(String_val(Field(ans,0)), op->packet+off, vendor_length);
data/ocaml-opus-0.1.3/src/opus_stubs.c:217: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(String_val(Field(comments, i)), op->packet+off, len);
data/ocaml-opus-0.1.3/src/opus_stubs.c:415: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 header_packet[19] = {
data/ocaml-opus-0.1.3/src/opus_stubs.c:434: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(op->packet, header_packet, op->bytes);
data/ocaml-opus-0.1.3/src/opus_stubs.c:438: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(op->packet+10, &int16le_to_native(pre_skip), sizeof(opus_int16));
data/ocaml-opus-0.1.3/src/opus_stubs.c:439: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(op->packet+12, &int32le_to_native(sr), sizeof(opus_int32));
data/ocaml-opus-0.1.3/src/opus_stubs.c:440: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(op->packet+16, &int16le_to_native(gain), sizeof(opus_int16));
data/ocaml-opus-0.1.3/src/opus_stubs.c:464: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(op->packet, "OpusTags", 8);
data/ocaml-opus-0.1.3/src/opus_stubs.c:468: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(op->packet+8, &int32le_to_native(vendor_length), sizeof(opus_int32));
data/ocaml-opus-0.1.3/src/opus_stubs.c:469: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(op->packet+12,vendor,vendor_length);
data/ocaml-opus-0.1.3/src/opus_stubs.c:473: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(op->packet+pos, &comments_len, sizeof(opus_int32));
data/ocaml-opus-0.1.3/src/opus_stubs.c:480: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(op->packet+pos, &int32le_to_native(comment_length), sizeof(opus_int32));
data/ocaml-opus-0.1.3/src/opus_stubs.c:481: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(op->packet+pos+4, comment, comment_length);
data/ocaml-opus-0.1.3/src/opus_stubs.c:449: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).
  opus_int32 vendor_length = strlen(vendor);

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 733 in approximately 0.07 seconds (11069 lines/second)
Physical Source Lines of Code (SLOC) = 573
Hits@level = [0]   0 [1]   1 [2]  13 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  14 [1+]  14 [2+]  13 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 24.4328 [1+] 24.4328 [2+] 22.6876 [3+]   0 [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.