func: static void goodG2B() int * data ; data = NULL; data = CWE122_Heap_Based_Buffer_Overflow__CWE131_memcpy_61b_goodG2BSource ( data ); int * CWE122_Heap_Based_Buffer_Overflow__CWE131_memcpy_61b_goodG2BSource(int * data) data = ( int * ) malloc ( 10 * sizeof ( int ) ); return data ; int source [ 10 ] = { 0 } ; memcpy ( data , source , 10 * sizeof ( int ) ); free ( data ); 