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