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/librsb-1.2.0.9+real+dfsg/rsb_gen.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_util.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_csr.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_bcss_misc_u.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_internals.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_op.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_rsb.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_bcss.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_mio.h
Examining data/librsb-1.2.0.9+real+dfsg/ot-scale.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_coo_check.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_lbl.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_fpb.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_spsv.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_mkl.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_garbage.c
Examining data/librsb-1.2.0.9+real+dfsg/ot-rowssums.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_srtp.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_perf.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_spgemm.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_bcoo_spmv_u.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_bcss_spsv_u.h
Examining data/librsb-1.2.0.9+real+dfsg/ot-spmv_uaua.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_cpmv.c
Examining data/librsb-1.2.0.9+real+dfsg/ot-spsv_sxsx.c
Examining data/librsb-1.2.0.9+real+dfsg/ot-spmv_unua.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_ompio.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_rec2csr.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_render.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_test_matops.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_dump.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_rec2csr.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_spgemm_csr.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_limiter.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_pcnt.h
Examining data/librsb-1.2.0.9+real+dfsg/rsbench.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_libspblas.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_tune.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_csr2coo.c
Examining data/librsb-1.2.0.9+real+dfsg/ot-spmv_sasa.c
Examining data/librsb-1.2.0.9+real+dfsg/ch2icfb.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_bench.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_set.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_coo.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_ompio.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_csr2coo.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_src.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_prec.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_idx.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_clone.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_permute.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_mergesort.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_permute.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_failure_tests.h
Examining data/librsb-1.2.0.9+real+dfsg/ot-spsv_uxua.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_lb.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_err.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_mergesort.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_failure_tests.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_bcss.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_bcss_u.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_idx.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_genmm.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_test_accuracy.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_eps.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_strmif.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_bcoo_spmv_u.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_coo_check.c
Examining data/librsb-1.2.0.9+real+dfsg/ot-spmv_uauz.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_csr.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_srt.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_get.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_err.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_limiter.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_lock.c
Examining data/librsb-1.2.0.9+real+dfsg/ot-spmv.c
Examining data/librsb-1.2.0.9+real+dfsg/ot.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_srtp.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_set.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_srt.h
Examining data/librsb-1.2.0.9+real+dfsg/blas_sparse.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_coo.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_tune.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_swt.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_merge.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_swt.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_mmls.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_rec2coo.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_psblas.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_coo_symm.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_spgemm_csr.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_do.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_msort_up.c
Examining data/librsb-1.2.0.9+real+dfsg/sbtc.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_spsum.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_op.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_render.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_coo_symm.h
Examining data/librsb-1.2.0.9+real+dfsg/ot-spsv.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_bcss_l.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_spsum_misc.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_bcss_spmv_u.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_mbw.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_spmv.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_partition.h
Examining data/librsb-1.2.0.9+real+dfsg/examples/hello-spblas.c
Examining data/librsb-1.2.0.9+real+dfsg/examples/io-spblas.c
Examining data/librsb-1.2.0.9+real+dfsg/examples/power.c
Examining data/librsb-1.2.0.9+real+dfsg/examples/transpose.c
Examining data/librsb-1.2.0.9+real+dfsg/examples/hello.c
Examining data/librsb-1.2.0.9+real+dfsg/examples/autotune.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_is.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_test_accuracy.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_garbage.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_asm.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_bio.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_dump.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_rec2coo.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_struct.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_get.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_mbw.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_spsv.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_pr.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_clone.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_mkl.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_bcss_spsv_u.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_mio.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_bcss_spmv_u.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_is.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_bcss_misc_u.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_merge.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_bio.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_vb.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_internals.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_src.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_msort_up.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_pr.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_init.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_asm.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_bench.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_gen.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_eps.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_handle.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_user.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_lock.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_util.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_rec.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_mmio.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_rec.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_spsum.h
Examining data/librsb-1.2.0.9+real+dfsg/blas_sparse/blas_enum.h
Examining data/librsb-1.2.0.9+real+dfsg/blas_sparse/blas_sparse_proto.h
Examining data/librsb-1.2.0.9+real+dfsg/blas_sparse/blas_sparse.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_unroll.c
Examining data/librsb-1.2.0.9+real+dfsg/ot-spmv_sxsa.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_bcss_l.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_blas_stuff.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_fpb.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_handle.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_bcss_u.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_spgemm.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_lb.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_test_matops.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_stropts.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_do.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_blas_stuff.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_perf.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_init.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_prec.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_common.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_partition.c
Examining data/librsb-1.2.0.9+real+dfsg/ot-spmv_uxua.c
Examining data/librsb-1.2.0.9+real+dfsg/ot-infty_norm.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_sys.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_spmv.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_coo2rec.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_krnl_vb.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_cpmv.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_spsum_misc.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_unroll.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_types.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_coo2rec.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_sys.h
Examining data/librsb-1.2.0.9+real+dfsg/rsb_pcnt.c
Examining data/librsb-1.2.0.9+real+dfsg/rsb_libspblas.h
Examining data/librsb-1.2.0.9+real+dfsg/debian/rsb127_bugfix.c

FINAL RESULTS:

data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:84:15:  [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 DEBUG printf
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:85:14:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define INFO fprintf
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:93:17:  [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 PRINTF  printf 
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:95:17:  [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 IPRINTF printf
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:422:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(buf,g_fortran_append);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:423:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(buf,g_fortran_prepend);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:500:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf,DOXY_SEE_STR);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:501:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf,c2f_funname(funname,funnamel));
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:522:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf,c2f_rettype(rettype,rettypel,NULL));
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:524:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf,linbrk);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:525:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf,c2f_funname(funname,funnamel));
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:526:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf,linbrk);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:538:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf,linbrk);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:560:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(buf,c2f_argtype(arglabels[i],arglabelsl[i],argtypes[i],argtypesl[i],ds));
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:563:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(buf,c2f_varlabel(arglabels[i],arglabelsl[i]));
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:575:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(buf,ds);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:579:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf,c2f_funname(funname,funnamel));
data/librsb-1.2.0.9+real+dfsg/rsb_bench.c:964:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(s,"%s\t%s\t",types[ti], mops[moi]);
data/librsb-1.2.0.9+real+dfsg/rsb_bench.c:1574:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(s,"%s\t%s\t",types[ti], mops[moi]);
data/librsb-1.2.0.9+real+dfsg/rsb_bench.c:2184:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(s,"%s\t%s\t",types[ti], mops[moi]);
data/librsb-1.2.0.9+real+dfsg/rsb_bench.c:2794:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(s,"%s\t%s\t",types[ti], mops[moi]);
data/librsb-1.2.0.9+real+dfsg/rsb_common.h:923:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define rsb__sprintf sprintf
data/librsb-1.2.0.9+real+dfsg/rsb_coo2rec.c:87:25:  [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 RSB_MTXASM_INFO printf	/* NEW */
data/librsb-1.2.0.9+real+dfsg/rsb_do.c:852:16:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		        else snprintf(cis,buflen,RSB_PRINTF_MTX_SUMMARY_ARGS(mtxAp));
data/librsb-1.2.0.9+real+dfsg/rsb_eps.c:626:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(fstr," %d/%d %s%s %0.1e",1+smi,mtxAp->all_leaf_matrices_n,(RSB_DO_FLAG_HAS(submatrix->flags,RSB_FLAG_USE_HALFWORD_INDICES))?"H":"",(submatrix->matrix_storage == RSB_MATRIX_STORAGE_BCOR)?"COO":"CSR",(double)(submatrix->nnz));
data/librsb-1.2.0.9+real+dfsg/rsb_err.c:32:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
#define rsb__strcpy strcpy
data/librsb-1.2.0.9+real+dfsg/rsb_err.c:33:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define rsb__sprintf sprintf
data/librsb-1.2.0.9+real+dfsg/rsb_internals.c:44:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
#define rsb__strcpy strcpy
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:239:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
				return fscanf(ngzfd,fs,VAR,VAI);
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:241:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
				return fscanf(ngzfd,fs,VAR);
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:246:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
				return fscanf(ngzfd,fs,IV,JV,VAR,VAI);
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:248:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
				return fscanf(ngzfd,fs,IV,JV,VAR);
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:250:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
				return fscanf(ngzfd,fs,IV,JV);
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:271:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			return sscanf(line,fs,VAR,VAI);
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:273:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			return sscanf(line,fs,VAR);
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:280:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			return sscanf(line,fs,IV,JV,VAR,VAI);
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:282:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			return sscanf(line,fs,IV,JV,VAR);
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:284:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			return sscanf(line,fs,IV,JV);
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:290:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			return fscanf(fd,fs,VAR,VAI);
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:292:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			return fscanf(fd,fs,VAR);
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:299:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			return fscanf(fd,fs,IV,JV,VAR,VAI);
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:301:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			return fscanf(fd,fs,IV,JV,VAR);
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:303:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			return fscanf(fd,fs,IV,JV);
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:77:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (sscanf(line, "%s %s %s %s %s", banner, mtxs, crd, data_type, 
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:460:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	return strcpy(s2, s);
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:515:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer,"%s %s %s %s", types[0], types[1], types[2], types[3]);
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:34:26:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
#define rsb__strcpy(A,B) strcpy((rsb_char_t*)A,B)
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:2060:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(pfn,"%s%s.eps",ppl,ltag?ltag:"plot");
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:2065:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(pfn,"%s%s.png",ppl,ltag?ltag:"plot");
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:2412:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(tag,"file-%d-%s",filenamei+1,bfn);
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:2426:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(tag,"file-%d-%s-transA-%c",filenamei+1,bfn,RSB_TRANSPOSITION_AS_CHAR(tf));
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:2438:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(tag,"file-%d-%s-type-%c",filenamei+1,bfn,typecodes[typecodesi]);
data/librsb-1.2.0.9+real+dfsg/rsb_sys.c:754:7:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	rc = vprintf(format,ap);
data/librsb-1.2.0.9+real+dfsg/rsb_sys.h:147:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RSB_STDERR( ... ) fprintf(stderr, __VA_ARGS__ )
data/librsb-1.2.0.9+real+dfsg/rsb_sys.h:156:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RSB_STDOUT( ... ) fprintf(stdout, __VA_ARGS__ )
data/librsb-1.2.0.9+real+dfsg/rsb_sys.h:180:65:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RSB_INFO( ... ) ((rsb_global_session_handle.out_stream)?fprintf(rsb_global_session_handle.out_stream, __VA_ARGS__ ):RSB_NULL_EXPRESSION_FOR_ZEN_HAPPINESS)
data/librsb-1.2.0.9+real+dfsg/rsb_sys.h:183:28:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RSB_FPRINTF( ... ) fprintf( __VA_ARGS__ )
data/librsb-1.2.0.9+real+dfsg/rsb_sys.h:212:20:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
#define RSB_STRCPY strcpy	/**< we have the chance of using a custom strcpy function in this way */
data/librsb-1.2.0.9+real+dfsg/rsb_test_matops.h:95:31:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RSBENCH_STDOUT( ... ) fprintf(RSB_STDOUT_FD, __VA_ARGS__ )
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:77:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	       	sprintf(ename,"--%s-tuned_%s%d_%0lgx%0dth.eps",(W_SPMM?"mv":"sv"),ROP,RVAL,SVAL,TVAL); \
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:83:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(FN,"%s--%c-%c-%d%s",BASEFILENAME,TYPECODE,RSB_TRANSPOSITION_AS_CHAR(TRANSA),NRHS,ename); \
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:248:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(fname,"%s--%c-%c-%d--%s%s",BASEFILENAME,(MTXAP)->typecode,RSB_TRANSPOSITION_AS_CHAR(TRANSA),NRHS,ocs,/*ename*/"-tuning_trace.dat");
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:250:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(fname,"%s--%c-%c-%d--%s%s",BASEFILENAME,(MTXAP)->typecode,RSB_TRANSPOSITION_AS_CHAR(TRANSA),NRHS,ocs,/*ename*/"-tuning_trace.gnu");
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:251:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf((TTRP)->bname,"%s--%c-%c-%d--%s%s",BASEFILENAME,(MTXAP)->typecode,RSB_TRANSPOSITION_AS_CHAR(TRANSA),NRHS,ocs,/*ename*/"-tuning_trace");
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:253:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf((TTRP)->mname,"%s",BASEFILENAME);
data/librsb-1.2.0.9+real+dfsg/rsbench.c:431:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cs+strlen(cs),"MKL:%d.%d-%d, %s, %s, %s, %s\n",mv.MajorVersion,mv.MinorVersion,mv.UpdateVersion,mv.ProductStatus,mv.Build,mv.Processor,mv.Platform);
data/librsb-1.2.0.9+real+dfsg/rsbench.c:452:4:  [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(
data/librsb-1.2.0.9+real+dfsg/sbtc.c:43:19:  [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 RSB_ERROR printf
data/librsb-1.2.0.9+real+dfsg/rsb_clone.c:720:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if( rsb__util_atoi(getenv("RSB_MTX_CLONE_STATS") ) != 0)
data/librsb-1.2.0.9+real+dfsg/rsb_common.h:1245:53:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define RSB_NUM_THREADS_DECL	const char * rnt_str = getenv("RSB_NUM_THREADS"); rsb_int_t ornt = rsb_get_num_threads(), rnt = (rnt_str? rsb__util_atoi(rnt_str) :0);
data/librsb-1.2.0.9+real+dfsg/rsb_coo2rec.c:251:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(!getenv("RSB_CB"))bnz = nnz;
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:54:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if((usmhi = getenv("RSB_USER_SET_MEM_HIERARCHY_INFO"))!=NULL && *usmhi)
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:850:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	rsb__txt_ar(getenv("RSB_BMT_ALPHA"),  &   alphaa[0], NULL);
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:851:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	rsb__txt_ar(getenv("RSB_BMT_INCXA"),  &    incXa[0], NULL);
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:852:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	rsb__txt_ar(getenv("RSB_BMT_INCBA"),  &    incBa[0], NULL);
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:853:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	rsb__txt_ar(getenv("RSB_BMT_SYMMA"),  &   stypea[0], NULL);
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:854:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	rsb__txt_ar(getenv("RSB_BMT_STYPA"),  &typecodea[0], NULL);
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:855:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	rsb__txt_ar(getenv("RSB_BMT_DIAGA"),  &    diaga[0], NULL);
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:856:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	rsb__txt_ar(getenv("RSB_BMT_TRANSA"), &  transTa[0], NULL);
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:857:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	rsb__txt_ar(getenv("RSB_BMT_DIMA"),   &     dima[0],&dims);
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:859:5:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_BMT_ISEMPTYM")) isemptym = rsb__util_atoi(getenv("RSB_BMT_ISEMPTYM"));
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:859:59:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_BMT_ISEMPTYM")) isemptym = rsb__util_atoi(getenv("RSB_BMT_ISEMPTYM"));
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1102:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(! ( getenv("RSB_BMT_SPMV") && rsb__util_atoi(getenv("RSB_BMT_SPMV")) == 0 ) )
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1102:51:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(! ( getenv("RSB_BMT_SPMV") && rsb__util_atoi(getenv("RSB_BMT_SPMV")) == 0 ) )
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1154:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(! ( getenv("RSB_BMT_SPGEMM") && rsb__util_atoi(getenv("RSB_BMT_SPGEMM")) == 0 ) )
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1154:53:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(! ( getenv("RSB_BMT_SPGEMM") && rsb__util_atoi(getenv("RSB_BMT_SPGEMM")) == 0 ) )
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1247:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(! ( getenv("RSB_BMT_SUM") && rsb__util_atoi(getenv("RSB_BMT_SUM")) == 0 ) )
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1247:50:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(! ( getenv("RSB_BMT_SUM") && rsb__util_atoi(getenv("RSB_BMT_SUM")) == 0 ) )
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1336:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if( getenv("RSB_BMT_AUTOTUNE") )
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1337:41:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		       	do_tune_test = rsb__util_atoi(getenv("RSB_BMT_AUTOTUNE"));
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1581:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(! ( getenv("RSB_BMT_SPSV") && rsb__util_atoi(getenv("RSB_BMT_SPSV")) == 0 ) )
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1581:51:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(! ( getenv("RSB_BMT_SPSV") && rsb__util_atoi(getenv("RSB_BMT_SPSV")) == 0 ) )
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1796:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(! ( getenv("RSB_BMT_GET") && rsb__util_atoi(getenv("RSB_BMT_GET")) == 0 ) )
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1796:50:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(! ( getenv("RSB_BMT_GET") && rsb__util_atoi(getenv("RSB_BMT_GET")) == 0 ) )
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1861:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(! ( getenv("RSB_BMT_SCALE") && rsb__util_atoi(getenv("RSB_BMT_SCALE")) == 0 ) )
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1861:52:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(! ( getenv("RSB_BMT_SCALE") && rsb__util_atoi(getenv("RSB_BMT_SCALE")) == 0 ) )
data/librsb-1.2.0.9+real+dfsg/rsb_rec.c:1023:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if( ( msss = getenv(envv) ) != NULL )
data/librsb-1.2.0.9+real+dfsg/rsb_rec.c:1132:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	nst = getenv("RSB_SPLIT_NT") ? rsb__util_atoi(getenv("RSB_SPLIT_NT")) : nst;
data/librsb-1.2.0.9+real+dfsg/rsb_rec.c:1132:48:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	nst = getenv("RSB_SPLIT_NT") ? rsb__util_atoi(getenv("RSB_SPLIT_NT")) : nst;
data/librsb-1.2.0.9+real+dfsg/rsb_rec.c:1506:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		nmt = getenv("RSB_MERGE_NT") ? rsb__util_atoi(getenv("RSB_MERGE_NT")) : nmt;
data/librsb-1.2.0.9+real+dfsg/rsb_rec.c:1506:49:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		nmt = getenv("RSB_MERGE_NT") ? rsb__util_atoi(getenv("RSB_MERGE_NT")) : nmt;
data/librsb-1.2.0.9+real+dfsg/rsb_rec.c:1507:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		sc = getenv("RSB_MERGE_SC")  ? rsb__util_atoi(getenv("RSB_MERGE_SC")) : sc;
data/librsb-1.2.0.9+real+dfsg/rsb_rec.c:1507:49:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		sc = getenv("RSB_MERGE_SC")  ? rsb__util_atoi(getenv("RSB_MERGE_SC")) : sc;
data/librsb-1.2.0.9+real+dfsg/rsb_rec.c:1568:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			if(getenv("RSB_MERGE_KEEP_COO"))
data/librsb-1.2.0.9+real+dfsg/rsb_rec.c:1569:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				kc = rsb__util_atoi(getenv("RSB_MERGE_KEEP_COO"));
data/librsb-1.2.0.9+real+dfsg/rsb_rec.c:1673:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				if(getenv("RSB_MERGE_USRT"))
data/librsb-1.2.0.9+real+dfsg/rsb_rec.c:1674:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
					mo = rsb__util_atoi(getenv("RSB_MERGE_USRT"));
data/librsb-1.2.0.9+real+dfsg/rsb_sys.c:990:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	return getopt_long(argc,argv,optstring,longopts,longindex);
data/librsb-1.2.0.9+real+dfsg/rsb_sys.c:992:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	return getopt(argc,argv,optstring);	/* a remedy */
data/librsb-1.2.0.9+real+dfsg/rsb_sys.c:1041:3:  [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(uiseed);
data/librsb-1.2.0.9+real+dfsg/rsb_sys.c:1316:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	evv = getenv(name);
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:468:5:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_VERBOSE_TUNING_INNER"))
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:469:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		verbose = rsb__util_atoi(getenv("RSB_VERBOSE_TUNING_INNER"));
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1031:5:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_MERGE_WOM")) wom = rsb__util_atoi(getenv("RSB_MERGE_WOM"));
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1031:51:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_MERGE_WOM")) wom = rsb__util_atoi(getenv("RSB_MERGE_WOM"));
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1032:5:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_MERGE_DB")) db = rsb__util_atoi(getenv("RSB_MERGE_DB"));
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1032:49:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_MERGE_DB")) db = rsb__util_atoi(getenv("RSB_MERGE_DB"));
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1416:5:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_AT_GR" )) gr  = rsb__util_atoi(getenv("RSB_AT_GR" )); /* override: grace rounds */
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1416:48:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_AT_GR" )) gr  = rsb__util_atoi(getenv("RSB_AT_GR" )); /* override: grace rounds */
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1690:5:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_MAXMS")) maxms = rsb__util_atoi(getenv("RSB_MAXMS")); /* override: max merge steps */
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1690:49:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_MAXMS")) maxms = rsb__util_atoi(getenv("RSB_MAXMS")); /* override: max merge steps */
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1691:5:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_MAXSS")) maxss = rsb__util_atoi(getenv("RSB_MAXSS")); /* override: max subdivide steps */
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1691:49:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_MAXSS")) maxss = rsb__util_atoi(getenv("RSB_MAXSS")); /* override: max subdivide steps */
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1692:5:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_MAXR" )) maxr  = rsb__util_atoi(getenv("RSB_MAXR" )); /* override: max rounds */
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1692:49:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("RSB_MAXR" )) maxr  = rsb__util_atoi(getenv("RSB_MAXR" )); /* override: max rounds */
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1714:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(getenv("RSB_VERBOSE_TUNING")) aia.verbose = rsb__util_atoi(getenv("RSB_VERBOSE_TUNING"));
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1714:65:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(getenv("RSB_VERBOSE_TUNING")) aia.verbose = rsb__util_atoi(getenv("RSB_VERBOSE_TUNING"));
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1728:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(getenv("RSB_MINTIMES")) aia.mintimes = rsb__util_atoi(getenv("RSB_MINTIMES"));
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1728:60:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(getenv("RSB_MINTIMES")) aia.mintimes = rsb__util_atoi(getenv("RSB_MINTIMES"));
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1729:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(getenv("RSB_CONTINUE_PARTITIONING")) aia.continue_partitioning = rsb__util_atoi(getenv("RSB_CONTINUE_PARTITIONING"));
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1729:86:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(getenv("RSB_CONTINUE_PARTITIONING")) aia.continue_partitioning = rsb__util_atoi(getenv("RSB_CONTINUE_PARTITIONING"));
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1730:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(getenv("RSB_MAXTIMES")) aia.maxtimes = rsb__util_atoi(getenv("RSB_MAXTIMES"));
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1730:60:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(getenv("RSB_MAXTIMES")) aia.maxtimes = rsb__util_atoi(getenv("RSB_MAXTIMES"));
data/librsb-1.2.0.9+real+dfsg/rsbench.c:622:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				if(getenv("RSB_RSBENCH_BBMB") && rsb__util_atoi(getenv("RSB_RSBENCH_BBMB")) )
data/librsb-1.2.0.9+real+dfsg/rsbench.c:622:53:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				if(getenv("RSB_RSBENCH_BBMB") && rsb__util_atoi(getenv("RSB_RSBENCH_BBMB")) )
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:126: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 g_fns[g_fnlmax][TKLMAX];
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:182:11:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		       	strcpy(ds, " ! INTEGER(C_INT)");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:212:10:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	       	strcpy(ds, " ! A single variable of the same numerical type of the matrix.");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:218:10:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	       	strcpy(ds, " ! C_NULL_PTR is a safe value. Please consult the rsb.h documentation for other options.");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:276:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(ds, " ! A text string."); /* FIXME */
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:321:43:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	if(parse_c_type_kw(s,l,"rsb_flags_t")) { sprintf(ds," " DOXY_SEE_STR "rsb_flags_t");goto ii; }
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:323:43:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	if(parse_c_type_kw(s,l,"rsb_extff_t")) { sprintf(ds," " DOXY_SEE_STR "rsb_extff_t");goto ii; }
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:325:43:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	if(parse_c_type_kw(s,l,"rsb_marf_t"))  { sprintf(ds," " DOXY_SEE_STR "rsb_marf_t");goto ii; }
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:326:43:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	if(parse_c_type_kw(s,l,"rsb_bool_t"))  { sprintf(ds," " DOXY_SEE_STR "rsb_bool_t");goto ii; }
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:347:41:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		if(parse_substr(s,l,"rsb_coo_idx_t")) sprintf(ds," ! INTEGER(C_INT)");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:348:41:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		if(parse_substr(s,l,"rsb_nnz_idx_t")) sprintf(ds," ! INTEGER(C_INT)");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:349:37:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		if(parse_substr(s,l,"rsb_int_t")) sprintf(ds," ! INTEGER(C_INT)");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:350:39:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		if(parse_substr(s,l,"rsb_flags_t")) sprintf(ds," ! INTEGER(C_INT)");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:351:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		if(parse_substr(s,l,"char")) sprintf(ds," ! CHARACTER(C_CHAR)");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:352:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		if(parse_substr(s,l,"void")) sprintf(ds," ! A numerical type");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:353:37:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		if(parse_substr(s,l,"rsb_mtx_t")) sprintf(ds," ! A matrix pointer variable: (TYPE(C_PTR),TARGET)");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:354:38:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		if(parse_substr(s,l,"rsb_real_t")) sprintf(ds," ! REAL*8");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:378:11:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		       	strcpy(ds, " ! INTEGER(C_INT)");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:389:11:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		       	strcpy(ds, " ! An array of numerical type");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:406:9:  [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.
	static char buf[BUFLEN];
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:415:9:  [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.
	static char buf[BUFLEN];
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:420:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(buf,"_c2f");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:495: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 buf[BUFLEN],*linbrk = "&\n  &";
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:502:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf,".\n");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:503:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf,"INTERFACE\n");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:516:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
				strcat(buf," PURE ");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:520:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(buf," PURE ");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:523:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf," FUNCTION ");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:534:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
				strcat(buf,"&\n&"),
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:539:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf,"BIND(c,NAME = '");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:541:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf,"')\n");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:542:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf," USE ISO_C_BINDING\n");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:546: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 ds[BUFLEN];
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:561:25:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			if(!as && !ar && !av)strcat(buf,", VALUE ");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:562:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(buf," :: ");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:564:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			if(as)strcat(buf,"(*)");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:566:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(buf," ! ");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:578:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf," END FUNCTION ");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:582:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf,"END INTERFACE");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:1365: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 buf[bl];
data/librsb-1.2.0.9+real+dfsg/examples/autotune.c:50: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 ib[200];
data/librsb-1.2.0.9+real+dfsg/examples/autotune.c:195: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 ib[200];
data/librsb-1.2.0.9+real+dfsg/examples/autotune.c:219:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		nrA = ncA = atoi(argv[1]);
data/librsb-1.2.0.9+real+dfsg/examples/hello.c:69: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 ib[200];
data/librsb-1.2.0.9+real+dfsg/examples/hello.c:90: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 errbuf[256];
data/librsb-1.2.0.9+real+dfsg/examples/transpose.c:136: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 pixmap[3*2*2];
data/librsb-1.2.0.9+real+dfsg/rsb_bio.c:389: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.
	const char * signature[RSB_BINARY_SPARSE_MATRIX_FILE_HEADER_LEN];
data/librsb-1.2.0.9+real+dfsg/rsb_bio.c:395:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(filename,"r");
data/librsb-1.2.0.9+real+dfsg/rsb_common.h:949:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define RSB_FOPEN(X,Y) fopen((X),(Y))
data/librsb-1.2.0.9+real+dfsg/rsb_do.c:1228:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		stream = fopen(filename,"w");
data/librsb-1.2.0.9+real+dfsg/rsb_eps.c:622:5:  [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 fstr[RSB_MAX_STRERRLEN];
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:89:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(s,"%ldG",n/RSB_CONST_GB);
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:92:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(s,"%ldM",n/RSB_CONST_MB);
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:95:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(s,"%ldK",n/RSB_CONST_KB);
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:97:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(s,"%ld",n);
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:123:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(usmhib+strlen(usmhib),"L%ld:%ld/%ld/%ld;",(rsb_long_t)level,
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:130:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(usmhib+strlen(usmhib),"L%ld:",(rsb_long_t)level),
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1079: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 errstr[errstrlen];
data/librsb-1.2.0.9+real+dfsg/rsb_mbw.c:271:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(p,((char*)p)+dim/2,dim/2);
data/librsb-1.2.0.9+real+dfsg/rsb_mbw.c:275:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(p,q,dim);
data/librsb-1.2.0.9+real+dfsg/rsb_mbw.c:580:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( &(mbw_ms[cl-1]) ,&mbw_m,sizeof(struct rsb_mbw_m_t));
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:108: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 matcode[RSB_MMIOH_CL]; // !?
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:265: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 line[MM_MAX_LINE_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:371: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 matcode[RSB_MMIOH_CL]; // !?
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:509:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = fopen(fn,"r")) == NULL)
data/librsb-1.2.0.9+real+dfsg/rsb_mio.c:513:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((_fd = open(fn,O_RDONLY|O_DIRECT)) < 0)
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:55:5:  [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 line[MM_MAX_LINE_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:56:5:  [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 banner[MM_MAX_TOKEN_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:57:5:  [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 mtxs[MM_MAX_TOKEN_LENGTH]; 
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:58:5:  [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 crd[MM_MAX_TOKEN_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:59:5:  [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 data_type[MM_MAX_TOKEN_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:60:5:  [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 storage_scheme[MM_MAX_TOKEN_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:157:5:  [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 line[MM_MAX_LINE_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:200:5:  [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 line[MM_MAX_LINE_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:349:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen(fname, "r")) == NULL)
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:416:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen(fname, "w")) == NULL)
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:465:5:  [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 buffer[MM_MAX_LINE_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:466:5:  [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 *types[4];
data/librsb-1.2.0.9+real+dfsg/rsb_ompio.c:64: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 line[RSB_MAX_FGETS_LINES][MM_MAX_LINE_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_ompio.c:110: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 line[RSB_MAX_FGETS_LINES][MM_MAX_LINE_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_ompio.c:156: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 line[RSB_MAX_FGETS_LINES][MM_MAX_LINE_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_ompio.c:203: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 line[RSB_MAX_FGETS_LINES][MM_MAX_LINE_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_ompio.c:250: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 line[RSB_MAX_FGETS_LINES][MM_MAX_LINE_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_pcnt.c:111: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 descr[PAPI_MAX_STR_LEN];
data/librsb-1.2.0.9+real+dfsg/rsb_pcnt.c:123: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 descr[PAPI_MAX_STR_LEN];
data/librsb-1.2.0.9+real+dfsg/rsb_pcnt.h:53: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          eventdesc[RSB_PC_MAX_ITEMS][PAPI_MAX_STR_LEN];
data/librsb-1.2.0.9+real+dfsg/rsb_perf.c:48: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 sigbuf[RSB_PERFORMANCE_BINARY_DUMP_FILE_SIGNATURE_MAX_CHARS];
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:252:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        stream = fopen(filename,"r");
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:294:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		stream = fopen(filename,"wb");
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:445:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		stream = fopen(filename,"rb");
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:2394:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(tag,"all");
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:2477:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tag,"symmetry-%c",scb[si]);
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:2489:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(tag,"type-%c",typecodes[typecodesi]);
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:2500:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(tag,"nrhs-%d",nrhsa[nrhsi]);
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:2511:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(tag,"transA-%c",RSB_TRANSPOSITION_AS_CHAR(ta[ti]));
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:2524:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(tag,"transA-%c",RSB_TRANSPOSITION_AS_CHAR(tf));
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:2533:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tag,"transA-%c-nrhs-%d",RSB_TRANSPOSITION_AS_CHAR(tf),nrhsa[nrhsi]);
data/librsb-1.2.0.9+real+dfsg/rsb_sys.c:1067:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	return memcpy(dest,src,n);
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:74:9:  [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 ename[RSB_MAX_FILENAME_LENGTH]; \
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:81:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(ename,"--base.eps"); \
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:90:9:  [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 fname[RSB_MAX_FILENAME_LENGTH]; \
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:244:10:  [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 fname[RSB_MAX_FILENAME_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_tune.c:1172: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 likwid_marker_string[RSB_MAX_FILENAME_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_tune.h:141:9:  [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 bname[RSB_MAX_FILENAME_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsb_tune.h:142:9:  [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 mname[RSB_MAX_FILENAME_LENGTH];
data/librsb-1.2.0.9+real+dfsg/rsbench.c:433:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(cs+strlen(cs),"MKL:version unknown.\n");
data/librsb-1.2.0.9+real+dfsg/rsbench.c:436:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(cs+strlen(cs),"MKL:not linked.\n");
data/librsb-1.2.0.9+real+dfsg/rsbench.c:439:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(cs+strlen(cs),"XDR support: on.\n");
data/librsb-1.2.0.9+real+dfsg/rsbench.c:441:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(cs+strlen(cs),"XDR support: off.\n");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:128:27:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#define FNADD(FNAME,FNL) {strncpy(&g_fns[g_fnlc][0],FNAME,FNL);g_fnl[g_fnlc]=FNL;/* printf("%s",g_fns[g_fnlc]);*/g_fnlc++;}
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:141:7:  [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).
	kl = strlen(kw);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:408:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf,s,l);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:417:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(buf,"");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:418:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(buf,s,l);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:499:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(buf,"");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:504:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(buf," ");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:527:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(buf,"(");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:528: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).
		ol=strlen(buf);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:531:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			if(i)strcat(buf,",");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:532:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(buf,arglabels[i],arglabelsl[i]);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:533:7:  [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(buf+ol)-nl*mll>mll)
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:537:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(buf,")");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:540:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(buf,funname,funnamel);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:559:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(buf," ");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:567:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(buf,argtypes[i],argtypesl[i]);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:568:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(buf," ");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:569:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(buf,arglabels[i],arglabelsl[i]);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:576:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(buf,"\n");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:581:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(buf,"\n");
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:679:14:  [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).
	size_t sl = strlen(ss),n = 0;
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:1255:21:  [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).
	size_t n = 0,ell = strlen(el);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:1277:27:  [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).
	size_t n = 0,nn = 0,sl = strlen(ts);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:1366:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(buf,s,bl-1);
data/librsb-1.2.0.9+real+dfsg/ch2icfb.c:1398:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while( rb>0 && (rn = read(0,s+sb,rb))>0 )
data/librsb-1.2.0.9+real+dfsg/rsb_eps.c:627:38:  [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).
				fs = ( xs * submatrix->nc ) /  ( strlen(fstr) ) * 1.3 ;
data/librsb-1.2.0.9+real+dfsg/rsb_genmm.c:149:25:  [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(*optarg && optarg[strlen(optarg)-1]=='%')want_percentage=nnz;
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:98:9:  [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).
	return strlen(s);
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:123:18:  [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).
		sprintf(usmhib+strlen(usmhib),"L%ld:%ld/%ld/%ld;",(rsb_long_t)level,
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:130:18:  [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).
		sprintf(usmhib+strlen(usmhib),"L%ld:",(rsb_long_t)level),
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:131:35:  [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).
		rsb_do_numerical_sprintf(usmhib+strlen(usmhib),(rsb_long_t)rsb_global_session_handle.caches[level].associativity),
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:132:3:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
		sprintf(usmhib+strlen(usmhib),"/"),
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:132:18:  [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).
		sprintf(usmhib+strlen(usmhib),"/"),
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:133:35:  [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).
		rsb_do_numerical_sprintf(usmhib+strlen(usmhib),(rsb_long_t)rsb_global_session_handle.caches[level].linesize),
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:134:3:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
		sprintf(usmhib+strlen(usmhib),"/"),
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:134:18:  [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).
		sprintf(usmhib+strlen(usmhib),"/"),
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:135:35:  [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).
		rsb_do_numerical_sprintf(usmhib+strlen(usmhib),(rsb_long_t)rsb_global_session_handle.caches[level].size);
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:137:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
			sprintf(usmhib+strlen(usmhib),",");
data/librsb-1.2.0.9+real+dfsg/rsb_init.c:137:19:  [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).
			sprintf(usmhib+strlen(usmhib),",");
data/librsb-1.2.0.9+real+dfsg/rsb_internals.c:2678:30:  [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).
            	rsb__sprintf(cs+strlen(cs),"%s.\n\n",RSB_COPYRIGHT_STRING);
data/librsb-1.2.0.9+real+dfsg/rsb_internals.c:2679:30:  [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).
            	rsb__sprintf(cs+strlen(cs),"Written by %s.\n",RSB_PACKAGE_BUGREPORT);
data/librsb-1.2.0.9+real+dfsg/rsb_internals.c:3248:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		goto equal;
data/librsb-1.2.0.9+real+dfsg/rsb_internals.c:3289:1:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
equal:
data/librsb-1.2.0.9+real+dfsg/rsb_internals.c:3748:8:  [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).
	rl -= strlen(sbuf);
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1080:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
			strcpy(errstr,"");
data/librsb-1.2.0.9+real+dfsg/rsb_libspblas_tests.c:1082:7:  [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(errstr)<1)
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:87:45:  [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 (strncmp(banner, MatrixMarketBanner, strlen(MatrixMarketBanner)) != 0)
data/librsb-1.2.0.9+real+dfsg/rsb_mmio.c:458:15:  [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).
	size_t len = strlen(s);
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:35:24:  [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).
#define rsb__strlen(A) strlen((rsb_char_t*)A)
data/librsb-1.2.0.9+real+dfsg/rsb_pr.c:958:34:  [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( !argv || argc < 1 || strlen(argv[0]) < 1 )
data/librsb-1.2.0.9+real+dfsg/rsb_sys.c:369:9:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	return memalign( alignment, size);
data/librsb-1.2.0.9+real+dfsg/rsb_sys.c:1325:56:  [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).
	return rsb__getenv(name) ? rsb__getenv(name) : name + strlen(name);
data/librsb-1.2.0.9+real+dfsg/rsb_test_matops.c:161:13:  [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(!r || !strlen(r))
data/librsb-1.2.0.9+real+dfsg/rsb_test_matops.c:198:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(buf,"");
data/librsb-1.2.0.9+real+dfsg/rsb_test_matops.c:1520:24:  [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).
				rsb__sprintf(fnbuf+strlen(fnbuf),"-incX-%d",incX);
data/librsb-1.2.0.9+real+dfsg/rsb_test_matops.c:1522:24:  [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).
				rsb__sprintf(fnbuf+strlen(fnbuf),"-incY-%d",incY);
data/librsb-1.2.0.9+real+dfsg/rsb_test_matops.c:5313:24:  [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).
				rsb__sprintf(fnbuf+strlen(fnbuf),"-incX-%d",incX);
data/librsb-1.2.0.9+real+dfsg/rsb_test_matops.c:5315:24:  [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).
				rsb__sprintf(fnbuf+strlen(fnbuf),"-incY-%d",incY);
data/librsb-1.2.0.9+real+dfsg/rsb_test_matops.c:9085:24:  [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).
				rsb__sprintf(fnbuf+strlen(fnbuf),"-incX-%d",incX);
data/librsb-1.2.0.9+real+dfsg/rsb_test_matops.c:9087:24:  [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).
				rsb__sprintf(fnbuf+strlen(fnbuf),"-incY-%d",incY);
data/librsb-1.2.0.9+real+dfsg/rsbench.c:431:13:  [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).
	sprintf(cs+strlen(cs),"MKL:%d.%d-%d, %s, %s, %s, %s\n",mv.MajorVersion,mv.MinorVersion,mv.UpdateVersion,mv.ProductStatus,mv.Build,mv.Processor,mv.Platform);
data/librsb-1.2.0.9+real+dfsg/rsbench.c:433:13:  [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).
	sprintf(cs+strlen(cs),"MKL:version unknown.\n");
data/librsb-1.2.0.9+real+dfsg/rsbench.c:436:13:  [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).
	sprintf(cs+strlen(cs),"MKL:not linked.\n");
data/librsb-1.2.0.9+real+dfsg/rsbench.c:439:13:  [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).
	sprintf(cs+strlen(cs),"XDR support: on.\n");
data/librsb-1.2.0.9+real+dfsg/rsbench.c:441:13:  [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).
	sprintf(cs+strlen(cs),"XDR support: off.\n");

ANALYSIS SUMMARY:

Hits = 309
Lines analyzed = 635687 in approximately 21.82 seconds (29131 lines/second)
Physical Source Lines of Code (SLOC) = 426569
Hits@level = [0] 4813 [1]  65 [2] 109 [3]  67 [4]  68 [5]   0
Hits@level+ = [0+] 5122 [1+] 309 [2+] 244 [3+] 135 [4+]  68 [5+]   0
Hits/KSLOC@level+ = [0+] 12.0074 [1+] 0.724385 [2+] 0.572006 [3+] 0.316479 [4+] 0.159411 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Suppressed hits = 7 (use --neverignore to show them)
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.