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/libopenaptx-0.2.0/openaptx.h
Examining data/libopenaptx-0.2.0/openaptx.c
Examining data/libopenaptx-0.2.0/openaptxdec.c
Examining data/libopenaptx-0.2.0/openaptxenc.c

FINAL RESULTS:

data/libopenaptx-0.2.0/openaptx.c:134:14:  [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 decode_sync_buffer[6];
data/libopenaptx-0.2.0/openaptx.c:1075:14:  [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 decode_sync_buffer[6];
data/libopenaptx-0.2.0/openaptx.c:1118:20:  [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 *)ctx)[i] = 0;
data/libopenaptx-0.2.0/openaptxdec.c:30:17:  [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 unsigned char input_buffer[512*6];
data/libopenaptx-0.2.0/openaptxdec.c:31:17:  [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 unsigned char output_buffer[512*3*2*6+3*2*4];
data/libopenaptx-0.2.0/openaptxenc.c:30:17:  [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 unsigned char input_buffer[512*3*2*4];
data/libopenaptx-0.2.0/openaptxenc.c:31:17:  [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 unsigned char output_buffer[512*6];

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 1777 in approximately 0.10 seconds (17070 lines/second)
Physical Source Lines of Code (SLOC) = 1333
Hits@level = [0]  69 [1]   0 [2]   7 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  76 [1+]   7 [2+]   7 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 57.0143 [1+] 5.25131 [2+] 5.25131 [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.