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/libchardet-1.0.4/chardet-config.h
Examining data/libchardet-1.0.4/include/version.h
Examining data/libchardet-1.0.4/include/prmem.h
Examining data/libchardet-1.0.4/include/nscore.h
Examining data/libchardet-1.0.4/acconfig.h
Examining data/libchardet-1.0.4/src/nsSJISProber.cpp
Examining data/libchardet-1.0.4/src/nsBig5Prober.cpp
Examining data/libchardet-1.0.4/src/chardet.cpp
Examining data/libchardet-1.0.4/src/nsHebrewProber.h
Examining data/libchardet-1.0.4/src/nsSJISProber.h
Examining data/libchardet-1.0.4/src/LangHebrewModel.cpp
Examining data/libchardet-1.0.4/src/nsSBCharSetProber.cpp
Examining data/libchardet-1.0.4/src/CharDistribution.h
Examining data/libchardet-1.0.4/src/LangCyrillicModel.cpp
Examining data/libchardet-1.0.4/src/nsEUCJPProber.h
Examining data/libchardet-1.0.4/src/nsMBCSGroupProber.cpp
Examining data/libchardet-1.0.4/src/nsLatin1Prober.h
Examining data/libchardet-1.0.4/src/nsCharSetProber.cpp
Examining data/libchardet-1.0.4/src/nsGB2312Prober.cpp
Examining data/libchardet-1.0.4/src/LangHungarianModel.cpp
Examining data/libchardet-1.0.4/src/nsEUCTWProber.cpp
Examining data/libchardet-1.0.4/src/nsEscCharsetProber.h
Examining data/libchardet-1.0.4/src/nsEUCKRProber.h
Examining data/libchardet-1.0.4/src/nsBig5Prober.h
Examining data/libchardet-1.0.4/src/nsEscSM.cpp
Examining data/libchardet-1.0.4/src/nsSBCharSetProber.h
Examining data/libchardet-1.0.4/src/nsCodingStateMachine.h
Examining data/libchardet-1.0.4/src/nsGB2312Prober.h
Examining data/libchardet-1.0.4/src/JpCntx.h
Examining data/libchardet-1.0.4/src/nsSBCSGroupProber.cpp
Examining data/libchardet-1.0.4/src/chardet.h
Examining data/libchardet-1.0.4/src/nsPkgInt.h
Examining data/libchardet-1.0.4/src/nsEUCTWProber.h
Examining data/libchardet-1.0.4/src/LangThaiModel.cpp
Examining data/libchardet-1.0.4/src/nsEUCJPProber.cpp
Examining data/libchardet-1.0.4/src/JpCntx.cpp
Examining data/libchardet-1.0.4/src/nsUniversalDetector.h
Examining data/libchardet-1.0.4/src/nsHebrewProber.cpp
Examining data/libchardet-1.0.4/src/nsLatin1Prober.cpp
Examining data/libchardet-1.0.4/src/nsUTF8Prober.h
Examining data/libchardet-1.0.4/src/LangBulgarianModel.cpp
Examining data/libchardet-1.0.4/src/nsMBCSGroupProber.h
Examining data/libchardet-1.0.4/src/nsMBCSSM.cpp
Examining data/libchardet-1.0.4/src/nsUTF8Prober.cpp
Examining data/libchardet-1.0.4/src/nsEscCharsetProber.cpp
Examining data/libchardet-1.0.4/src/CharDistribution.cpp
Examining data/libchardet-1.0.4/src/nsSBCSGroupProber.h
Examining data/libchardet-1.0.4/src/LangGreekModel.cpp
Examining data/libchardet-1.0.4/src/nsUniversalDetector.cpp
Examining data/libchardet-1.0.4/src/nsEUCKRProber.cpp
Examining data/libchardet-1.0.4/src/nsCharSetProber.h

FINAL RESULTS:

data/libchardet-1.0.4/src/JpCntx.cpp:42: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 jp2CharContext[83][83] = 
data/libchardet-1.0.4/src/JpCntx.h:49: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.
extern char jp2CharContext[83][83];
data/libchardet-1.0.4/src/nsBig5Prober.h:65: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 mLastChar[2];
data/libchardet-1.0.4/src/nsEUCJPProber.h:70: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 mLastChar[2];
data/libchardet-1.0.4/src/nsEUCKRProber.h:65: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 mLastChar[2];
data/libchardet-1.0.4/src/nsEUCTWProber.h:65: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 mLastChar[2];
data/libchardet-1.0.4/src/nsGB2312Prober.h:67: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 mLastChar[2];
data/libchardet-1.0.4/src/nsSJISProber.h:71: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 mLastChar[2];
data/libchardet-1.0.4/src/chardet.cpp:106:40:  [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).
	if ( (*det)->detect->HandleData (buf, strlen (buf)) == NS_ERROR_OUT_OF_MEMORY )
data/libchardet-1.0.4/src/chardet.cpp:134:29:  [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).
	if ( det->HandleData (buf, strlen (buf)) == NS_ERROR_OUT_OF_MEMORY ) {

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 7186 in approximately 0.52 seconds (13837 lines/second)
Physical Source Lines of Code (SLOC) = 4262
Hits@level = [0]   8 [1]   2 [2]   8 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  18 [1+]  10 [2+]   8 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 4.22337 [1+] 2.34632 [2+] 1.87705 [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.