func: void CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int_memcpy_42_bad() int * data ; data = NULL; data = badSource ( data ); static int * badSource(int * data) data = ( int * ) malloc ( 50 * sizeof ( int ) ); return data ; int source [ 100 ] = { 0 } ; memcpy ( data , source , 100 * sizeof ( int ) ); printIntLine ( data [ 0 ] ); void printIntLine (int intNumber) printf ( "%d\n" , intNumber ); free ( data ); 