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/octave-sparsersb-1.0.8/src/sparsersb.cc

FINAL RESULTS:

data/octave-sparsersb-1.0.8/src/sparsersb.cc:122:29:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RSBOI_PRINTF( ... ) printf( __VA_ARGS__ )
data/octave-sparsersb-1.0.8/src/sparsersb.cc:127:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf( __VA_ARGS__ )
data/octave-sparsersb-1.0.8/src/sparsersb.cc:131:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf( __VA_ARGS__ )
data/octave-sparsersb-1.0.8/src/sparsersb.cc:414:2:  [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 errstr[errstrlen];
data/octave-sparsersb-1.0.8/src/sparsersb.cc:1383:4:  [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 ss[RSBOI_INFOBUF];
data/octave-sparsersb-1.0.8/src/sparsersb.cc:1404:4:  [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 ss[RSBOI_INFOBUF];
data/octave-sparsersb-1.0.8/src/sparsersb.cc:2953: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 is[RSBOI_INFOBUF];
data/octave-sparsersb-1.0.8/src/sparsersb.cc:2954: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 ss[RSBOI_INFOBUF];
data/octave-sparsersb-1.0.8/src/sparsersb.cc:2999:4:  [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 ss[RSBOI_INFOBUF];
data/octave-sparsersb-1.0.8/src/sparsersb.cc:2959:6:  [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(strlen(args(2).string_value().c_str())==0)
data/octave-sparsersb-1.0.8/src/sparsersb.cc:2960:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(is,"RSB_MIF_MATRIX_INFO__TO__CHAR_P",sizeof(is));
data/octave-sparsersb-1.0.8/src/sparsersb.cc:2962:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(is,args(2).string_value().c_str(),sizeof(is));

ANALYSIS SUMMARY:

Hits = 12
Lines analyzed = 5715 in approximately 0.19 seconds (30455 lines/second)
Physical Source Lines of Code (SLOC) = 2708
Hits@level = [0]   2 [1]   3 [2]   6 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  14 [1+]  12 [2+]   9 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 5.16987 [1+] 4.43131 [2+] 3.32349 [3+] 1.10783 [4+] 1.10783 [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.