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/libencode-detect-perl-1.01/src/nsBig5Prober.h Examining data/libencode-detect-perl-1.01/src/nsUniversalDetector.h Examining data/libencode-detect-perl-1.01/src/CharDistribution.h Examining data/libencode-detect-perl-1.01/src/JpCntx.h Examining data/libencode-detect-perl-1.01/src/LangBulgarianModel.cpp Examining data/libencode-detect-perl-1.01/src/LangGreekModel.cpp Examining data/libencode-detect-perl-1.01/src/nsCharSetProber.cpp Examining data/libencode-detect-perl-1.01/src/nsGB2312Prober.cpp Examining data/libencode-detect-perl-1.01/src/nsPkgInt.h Examining data/libencode-detect-perl-1.01/src/nsEUCJPProber.h Examining data/libencode-detect-perl-1.01/src/nsEUCJPProber.cpp Examining data/libencode-detect-perl-1.01/src/nsSJISProber.cpp Examining data/libencode-detect-perl-1.01/src/nsUTF8Prober.cpp Examining data/libencode-detect-perl-1.01/src/nsEUCTWProber.cpp Examining data/libencode-detect-perl-1.01/src/nsSJISProber.h Examining data/libencode-detect-perl-1.01/src/nsLatin1Prober.cpp Examining data/libencode-detect-perl-1.01/src/nsMBCSSM.cpp Examining data/libencode-detect-perl-1.01/src/nsSBCharSetProber.h Examining data/libencode-detect-perl-1.01/src/nsLatin1Prober.h Examining data/libencode-detect-perl-1.01/src/nsEscSM.cpp Examining data/libencode-detect-perl-1.01/src/nsCharSetProber.h Examining data/libencode-detect-perl-1.01/src/nsBig5Prober.cpp Examining data/libencode-detect-perl-1.01/src/CharDistribution.cpp Examining data/libencode-detect-perl-1.01/src/nsEscCharsetProber.h Examining data/libencode-detect-perl-1.01/src/nsUniversalDetector.cpp Examining data/libencode-detect-perl-1.01/src/nsSBCSGroupProber.h Examining data/libencode-detect-perl-1.01/src/nsEscCharsetProber.cpp Examining data/libencode-detect-perl-1.01/src/nsMBCSGroupProber.cpp Examining data/libencode-detect-perl-1.01/src/nsSBCSGroupProber.cpp Examining data/libencode-detect-perl-1.01/src/JpCntx.cpp Examining data/libencode-detect-perl-1.01/src/nsEUCTWProber.h Examining data/libencode-detect-perl-1.01/src/nsHebrewProber.cpp Examining data/libencode-detect-perl-1.01/src/LangHungarianModel.cpp Examining data/libencode-detect-perl-1.01/src/nsEUCKRProber.cpp Examining data/libencode-detect-perl-1.01/src/nsCodingStateMachine.h Examining data/libencode-detect-perl-1.01/src/nsGB2312Prober.h Examining data/libencode-detect-perl-1.01/src/nsEUCKRProber.h Examining data/libencode-detect-perl-1.01/src/nsMBCSGroupProber.h Examining data/libencode-detect-perl-1.01/src/LangHebrewModel.cpp Examining data/libencode-detect-perl-1.01/src/nsUTF8Prober.h Examining data/libencode-detect-perl-1.01/src/LangCyrillicModel.cpp Examining data/libencode-detect-perl-1.01/src/nsHebrewProber.h Examining data/libencode-detect-perl-1.01/src/nsSBCharSetProber.cpp Examining data/libencode-detect-perl-1.01/src/LangThaiModel.cpp Examining data/libencode-detect-perl-1.01/include/prmem.h Examining data/libencode-detect-perl-1.01/include/nscore.h FINAL RESULTS: data/libencode-detect-perl-1.01/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/libencode-detect-perl-1.01/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/libencode-detect-perl-1.01/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/libencode-detect-perl-1.01/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/libencode-detect-perl-1.01/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/libencode-detect-perl-1.01/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/libencode-detect-perl-1.01/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/libencode-detect-perl-1.01/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]; ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 6754 in approximately 0.40 seconds (16703 lines/second) Physical Source Lines of Code (SLOC) = 4053 Hits@level = [0] 8 [1] 0 [2] 8 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 16 [1+] 8 [2+] 8 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 3.94769 [1+] 1.97385 [2+] 1.97385 [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.