func: static void goodB2G() void * data ; data = NULL; CWE121_Stack_Based_Buffer_Overflow__CWE135_84_goodB2G * goodB2GObject = new CWE121_Stack_Based_Buffer_Overflow__CWE135_84_goodB2G ( data ) ; CWE121_Stack_Based_Buffer_Overflow__CWE135_84_goodB2G::CWE121_Stack_Based_Buffer_Overflow__CWE135_84_goodB2G(void * dataCopy) data = dataCopy; data = ( void * ) WIDE_STRING; delete goodB2GObject CWE121_Stack_Based_Buffer_Overflow__CWE135_84_goodB2G::~CWE121_Stack_Based_Buffer_Overflow__CWE135_84_goodB2G() size_t dataLen = wcslen ( ( wchar_t * ) data ) ; void * dest = ( void * ) calloc ( dataLen + 1 , sizeof ( wchar_t ) ) ; memcpy ( dest , data , ( dataLen + 1 ) * sizeof ( wchar_t ) ); free ( dest ); 