func: static void goodG2B() char * data ; data = NULL; data = ( char * ) malloc ( ( 10 + 1 ) * sizeof ( char ) ); CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_82_base * baseObject = new CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_82_goodG2B baseObject -> action ( data ); void CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_82_goodG2B::action(char * data) char source [ 10 + 1 ] = SRC_STRING ; strcpy ( data , source ); free ( data ); 