func: void bad() int64_t * data ; data = NULL; CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int64_t_memcpy_84_bad * badObject = new CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int64_t_memcpy_84_bad ( data ) ; CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int64_t_memcpy_84_bad::CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int64_t_memcpy_84_bad(int64_t * dataCopy) data = dataCopy; data = new int64_t [ 50 ]; delete badObject CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int64_t_memcpy_84_bad::~CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int64_t_memcpy_84_bad() int64_t source [ 100 ] = { 0 } ; memcpy ( data , source , 100 * sizeof ( int64_t ) ); printLongLongLine ( data [ 0 ] ); void printLongLongLine (int64_t longLongIntNumber) printf ( "%lld\n" , longLongIntNumber ); delete [ ] data 