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/golang-github-golang-snappy-0.0+git20160529.d9eb7a3/cmd/snappytool/main.cpp

FINAL RESULTS:

data/golang-github-golang-snappy-0.0+git20160529.d9eb7a3/cmd/snappytool/main.cpp:18:1:  [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 dst[N];
data/golang-github-golang-snappy-0.0+git20160529.d9eb7a3/cmd/snappytool/main.cpp:19:1:  [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 src[N];
data/golang-github-golang-snappy-0.0+git20160529.d9eb7a3/cmd/snappytool/main.cpp:41:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t n = read(0, src+s, N-s);

ANALYSIS SUMMARY:

Hits = 3
Lines analyzed = 77 in approximately 0.02 seconds (4255 lines/second)
Physical Source Lines of Code (SLOC) = 59
Hits@level = [0]   8 [1]   1 [2]   2 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  11 [1+]   3 [2+]   2 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 186.441 [1+] 50.8475 [2+] 33.8983 [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.