func: void bad() int64_t * data ; data = NULL; CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_memmove_84_bad * badObject = new CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_memmove_84_bad ( data ) ; CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_memmove_84_bad::CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_memmove_84_bad(int64_t * dataCopy) data = dataCopy; data = ( int64_t * ) malloc ( 50 * sizeof ( int64_t ) ); delete badObject CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_memmove_84_bad::~CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_memmove_84_bad() int64_t source [ 100 ] = { 0 } ; memmove ( data , source , 100 * sizeof ( int64_t ) ); free ( data ); 