func: void CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int_memcpy_66_bad() int * data ; int * dataArray [ 5 ] ; data = NULL; data = ( int * ) malloc ( 50 * sizeof ( int ) ); dataArray [ 2 ] = data; CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int_memcpy_66b_badSink ( dataArray ); void CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int_memcpy_66b_badSink(int * dataArray[]) int * data = dataArray [ 2 ] ; int source [ 100 ] = { 0 } ; memcpy ( data , source , 100 * sizeof ( int ) ); printIntLine ( data [ 0 ] ); void printIntLine (int intNumber) printf ( "%d\n" , intNumber ); free ( data ); 