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/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp
Examining data/libmsnumpress-1.0.0/src/main/cpp/MSNumpress.hpp
Examining data/libmsnumpress-1.0.0/src/main/cpp/MSNumpress.cpp

FINAL RESULTS:

data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:332:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(123459);
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:347:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(123459);
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:444:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(123459);
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:476:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(123459);
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:514:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(123662);
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:558:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(123459);
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:582:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(123459);
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:625:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(123459);
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:639:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(123459);
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:690:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(123459);
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpress.cpp:278:11:  [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 halfBytes[10];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpress.cpp:575:11:  [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 halfBytes[10];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:51:11:  [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 encoded[12];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:72:11:  [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 encoded[20];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:96:11:  [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 encoded[28];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:124:12:  [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 encoded[33]; // max length is 33 bytes
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:201:11:  [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 encoded[28];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:225:11:  [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 encoded[28];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:246:11:  [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 encoded[28];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:267:11:  [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 encoded[28];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:280:11:  [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 encoded[20];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:313:11:  [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 encoded[28];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:378:11:  [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 encoded[75];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:413:11:  [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 encoded[8000];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:454:11:  [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 encoded[8000];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:486:11:  [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 encoded[5000];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:524:11:  [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 encoded[5000];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:565:11:  [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 encoded[5000];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:595:11:  [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 encoded[5000];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:652:11:  [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 encoded[5000];
data/libmsnumpress-1.0.0/src/main/cpp/MSNumpressTest.cpp:705:11:  [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 encoded[5000];

ANALYSIS SUMMARY:

Hits = 31
Lines analyzed = 1898 in approximately 0.06 seconds (30909 lines/second)
Physical Source Lines of Code (SLOC) = 1161
Hits@level = [0]   0 [1]   0 [2]  21 [3]  10 [4]   0 [5]   0
Hits@level+ = [0+]  31 [1+]  31 [2+]  31 [3+]  10 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 26.7011 [1+] 26.7011 [2+] 26.7011 [3+] 8.61326 [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.