func: static void goodG2B() int64_t * data ; data = NULL; CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_memcpy_84_goodG2B * goodG2BObject = new CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_memcpy_84_goodG2B ( data ) ; CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_memcpy_84_goodG2B::CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_memcpy_84_goodG2B(int64_t * dataCopy) data = dataCopy; data = ( int64_t * ) malloc ( 100 * sizeof ( int64_t ) ); delete goodG2BObject CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_memcpy_84_goodG2B::~CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_memcpy_84_goodG2B() int64_t source [ 100 ] = { 0 } ; memcpy ( data , source , 100 * sizeof ( int64_t ) ); printLongLongLine ( data [ 0 ] ); void printLongLongLine (int64_t longLongIntNumber) printf ( "%lld\n" , longLongIntNumber ); free ( data ); 