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/r-cran-bdgraph-2.63/src/matrix.h
Examining data/r-cran-bdgraph-2.63/src/ggm_bd.cpp
Examining data/r-cran-bdgraph-2.63/src/rgwish.cpp
Examining data/r-cran-bdgraph-2.63/src/gcgm_DMH.cpp
Examining data/r-cran-bdgraph-2.63/src/gm_mpl_bd_dis.cpp
Examining data/r-cran-bdgraph-2.63/src/rgwish.h
Examining data/r-cran-bdgraph-2.63/src/copula.cpp
Examining data/r-cran-bdgraph-2.63/src/gcgm_dw_bd.cpp
Examining data/r-cran-bdgraph-2.63/src/matrix.cpp
Examining data/r-cran-bdgraph-2.63/src/BDgraph_init.c
Examining data/r-cran-bdgraph-2.63/src/ggm_mpl_bd.cpp
Examining data/r-cran-bdgraph-2.63/src/ggm_DMH.cpp
Examining data/r-cran-bdgraph-2.63/src/omp_set_num_cores.cpp
Examining data/r-cran-bdgraph-2.63/src/util.h
Examining data/r-cran-bdgraph-2.63/src/gm_mpl_Hill_Climb.cpp
Examining data/r-cran-bdgraph-2.63/src/copula.h
Examining data/r-cran-bdgraph-2.63/src/gcgm_bd.cpp
Examining data/r-cran-bdgraph-2.63/src/gm_rj.cpp

FINAL RESULTS:

data/r-cran-bdgraph-2.63/src/copula.cpp:270:2:  [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( &copy_Ds[0], Ds, sizeof( double ) * dim * dim );
data/r-cran-bdgraph-2.63/src/gcgm_DMH.cpp:37:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gcgm_DMH.cpp:190:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gcgm_DMH.cpp:359:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gcgm_DMH.cpp:517:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gcgm_DMH.cpp:693:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gcgm_DMH.cpp:857:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gcgm_bd.cpp:35:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gcgm_bd.cpp:190:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gcgm_bd.cpp:365:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gcgm_bd.cpp:524:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gcgm_dw_bd.cpp:35:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gcgm_dw_bd.cpp:190:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gcgm_dw_bd.cpp:365:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gcgm_dw_bd.cpp:524:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_DMH.cpp:38:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_DMH.cpp:177:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_DMH.cpp:341:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_DMH.cpp:485:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_DMH.cpp:652:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_DMH.cpp:806:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_bd.cpp:48:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_bd.cpp:186:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_bd.cpp:355:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_bd.cpp:502:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_mpl_bd.cpp:220:2:  [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( &copyS[0], S, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_mpl_bd.cpp:370:2:  [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( &copyS[0], S, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_mpl_bd.cpp:545:2:  [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( &copyS[0], S, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_mpl_bd.cpp:710:2:  [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( &copyS[0], S, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_mpl_bd.cpp:957:2:  [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( &copyS[0], S, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/ggm_mpl_bd.cpp:1083:2:  [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_links[0], &p_links_Cpp[0], sizeof( double ) * pxp );    
data/r-cran-bdgraph-2.63/src/ggm_mpl_bd.cpp:1104:2:  [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( &copyS[0], S, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gm_mpl_Hill_Climb.cpp:275: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( &data_mb[0], &data[0] + mb_node_x_lf, sizeof( int ) * *length_freq_data );    
data/r-cran-bdgraph-2.63/src/gm_mpl_Hill_Climb.cpp:298: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( &mb_conf[0], &data_mb[0], sizeof( int ) * *length_freq_data );
data/r-cran-bdgraph-2.63/src/gm_mpl_bd_dis.cpp:2308:2:  [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_links[0], &p_links_Cpp[0], sizeof( double ) * pxp );    
data/r-cran-bdgraph-2.63/src/gm_rj.cpp:129:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gm_rj.cpp:272:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gm_rj.cpp:446:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/gm_rj.cpp:598:2:  [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( &copyK[0], K, sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/matrix.cpp:60:2:  [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( sub_A       , A + subxp           , sizeof( double ) * subj );		
data/r-cran-bdgraph-2.63/src/matrix.cpp:61:2:  [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( sub_A + subj, A + subxp + subj + 1, sizeof( double ) * ( pdim - subj - 1 ) );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:101:2:  [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( sub_A           , A + subixp           , sizeof( double ) * subi );		
data/r-cran-bdgraph-2.63/src/matrix.cpp:102:2:  [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( sub_A + subi    , A + subixp + subi + 1, sizeof( double ) * ( subj - subi - 1 ) );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:103:2:  [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( sub_A + subj - 1, A + subixp + subj + 1, sizeof( double ) * ( pdim - subj - 1 ) );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:105:2:  [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( sub_A + p2           , A + subjxp           , sizeof( double ) * subi );		
data/r-cran-bdgraph-2.63/src/matrix.cpp:106:2:  [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( sub_A + p2 + subi    , A + subjxp + subi + 1, sizeof( double ) * ( subj - subi - 1 ) );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:107:2:  [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( sub_A + p2 + subj - 1, A + subjxp + subj + 1, sizeof( double ) * ( pdim - subj - 1 ) );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:121:2:  [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( A12,        A + subxp,            size_psub );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:122:2:  [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( A12 + psub, A + subxp + psub + 1, size_mpsub );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:129: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( A22 + ixp1       , A + ixpdim           , size_psub );
data/r-cran-bdgraph-2.63/src/matrix.cpp:130: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( A22 + ixp1 + psub, A + ixpdim + psub + 1, size_mpsub );
data/r-cran-bdgraph-2.63/src/matrix.cpp:138: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( A22 + ixp1       , A + ixpdim           , size_psub );
data/r-cran-bdgraph-2.63/src/matrix.cpp:139: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( A22 + ixp1 + psub, A + ixpdim + psub + 1, size_mpsub );
data/r-cran-bdgraph-2.63/src/matrix.cpp:236:2:  [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( A21           , A + sub0xp            , size_sub0 );		
data/r-cran-bdgraph-2.63/src/matrix.cpp:237:2:  [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( A21 + sub0    , A + sub0xp + sub0_plus, size_sub1_sub0 );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:238:2:  [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( A21 + sub1 - 1, A + sub0xp + sub1_plus, size_pdim_sub0 );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:240:2:  [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( A21 + p2           , A + sub1xp            , size_sub0 );		
data/r-cran-bdgraph-2.63/src/matrix.cpp:241:2:  [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( A21 + p2 + sub0    , A + sub1xp + sub0_plus, size_sub1_sub0 );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:242:2:  [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( A21 + p2 + sub1 - 1, A + sub1xp + sub1_plus, size_pdim_sub0 );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:249: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( A22 + ixp2           , A + ixp            , size_sub0 );
data/r-cran-bdgraph-2.63/src/matrix.cpp:250: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( A22 + ixp2 + sub0    , A + ixp + sub0_plus, size_sub1_sub0 );
data/r-cran-bdgraph-2.63/src/matrix.cpp:251: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( A22 + ixp2 + sub1 - 1, A + ixp + sub1_plus, size_pdim_sub0 );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:259: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( A22 + ixp2           , A + ixp            , size_sub0 );
data/r-cran-bdgraph-2.63/src/matrix.cpp:260: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( A22 + ixp2 + sub0    , A + ixp + sub0_plus, size_sub1_sub0 );
data/r-cran-bdgraph-2.63/src/matrix.cpp:261: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( A22 + ixp2 + sub1 - 1, A + ixp + sub1_plus, size_pdim_sub0 );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:269: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( A22 + ixp2           , A + ixp            , size_sub0 );
data/r-cran-bdgraph-2.63/src/matrix.cpp:270: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( A22 + ixp2 + sub0    , A + ixp + sub0_plus, size_sub1_sub0 );
data/r-cran-bdgraph-2.63/src/matrix.cpp:271: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( A22 + ixp2 + sub1 - 1, A + ixp + sub1_plus, size_pdim_sub0 );		
data/r-cran-bdgraph-2.63/src/matrix.cpp:315:2:  [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( U, A, sizeof( double ) * dim * dim );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:982: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( A22 + i * p1       , A + ixpdim           , sizeof( double ) * psub );
data/r-cran-bdgraph-2.63/src/matrix.cpp:983: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( A22 + i * p1 + psub, A + ixpdim + psub + 1, sizeof( double ) * mpsub );
data/r-cran-bdgraph-2.63/src/matrix.cpp:989: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( A22 + ( i - 1 ) * p1       , A + ixpdim           , sizeof( double ) * psub);
data/r-cran-bdgraph-2.63/src/matrix.cpp:990: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( A22 + ( i - 1 ) * p1 + psub, A + ixpdim + psub + 1, sizeof( double ) * mpsub );
data/r-cran-bdgraph-2.63/src/matrix.cpp:1013: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( A22 + i * p2,            A + ixp,            sizeof( double ) * sub0 );
data/r-cran-bdgraph-2.63/src/matrix.cpp:1014: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( A22 + i * p2 + sub0,     A + ixp + sub0 + 1, sizeof( double ) * ( sub1 - sub0 - 1 ) );
data/r-cran-bdgraph-2.63/src/matrix.cpp:1015: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( A22 + i * p2 + sub1 - 1, A + ixp + sub1 + 1, sizeof( double ) * ( pdim - sub1 - 1 ) );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:1026: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( A22 + i1 * p2,            A + ixp,            sizeof( double ) * sub0 );
data/r-cran-bdgraph-2.63/src/matrix.cpp:1027: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( A22 + i1 * p2 + sub0,     A + ixp + sub0 + 1, sizeof( double ) * ( sub1 - sub0 - 1 ) );
data/r-cran-bdgraph-2.63/src/matrix.cpp:1028: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( A22 + i1 * p2 + sub1 - 1, A + ixp + sub1 + 1, sizeof( double ) * ( pdim - sub1 - 1 ) );	
data/r-cran-bdgraph-2.63/src/matrix.cpp:1039: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( A22 + i2 * p2,            A + ixp,            sizeof( double ) * sub0 );
data/r-cran-bdgraph-2.63/src/matrix.cpp:1040: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( A22 + i2 * p2 + sub0,     A + ixp + sub0 + 1, sizeof( double ) * ( sub1 - sub0 - 1 ) );
data/r-cran-bdgraph-2.63/src/matrix.cpp:1041: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( A22 + i2 * p2 + sub1 - 1, A + ixp + sub1 + 1, sizeof( double ) * ( pdim - sub1 - 1 ) );		
data/r-cran-bdgraph-2.63/src/rgwish.cpp:79: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( &sigma_last[0], &sigma[0], sizeof( double ) * pxp );
data/r-cran-bdgraph-2.63/src/rgwish.cpp:200:2:  [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( sigma, &sigma_start[0], sizeof( double ) * pxp ); 
data/r-cran-bdgraph-2.63/src/rgwish.cpp:241: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( sigma + ip, sigma_i, sizeof( double ) * i );	
data/r-cran-bdgraph-2.63/src/rgwish.cpp:254: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( sigma + ip + i1, sigma_i + i1, sizeof( double ) * ( dim - i1 ) );	
data/r-cran-bdgraph-2.63/src/rgwish.cpp:293:2:  [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( &sigma_start[0], sigma, sizeof( double ) * pxp );	 	

ANALYSIS SUMMARY:

Hits = 87
Lines analyzed = 11098 in approximately 0.32 seconds (34744 lines/second)
Physical Source Lines of Code (SLOC) = 7864
Hits@level = [0]   0 [1]   0 [2]  87 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  87 [1+]  87 [2+]  87 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 11.0631 [1+] 11.0631 [2+] 11.0631 [3+]   0 [4+]   0 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.