func: static void goodG2B() void * data ; data = NULL; CWE121_Stack_Based_Buffer_Overflow__CWE135_84_goodG2B * goodG2BObject = new CWE121_Stack_Based_Buffer_Overflow__CWE135_84_goodG2B ( data ) ; CWE121_Stack_Based_Buffer_Overflow__CWE135_84_goodG2B::CWE121_Stack_Based_Buffer_Overflow__CWE135_84_goodG2B(void * dataCopy) data = dataCopy; data = ( void * ) CHAR_STRING; delete goodG2BObject CWE121_Stack_Based_Buffer_Overflow__CWE135_84_goodG2B::~CWE121_Stack_Based_Buffer_Overflow__CWE135_84_goodG2B() size_t dataLen = strlen ( ( char * ) data ) ; void * dest = ( void * ) calloc ( dataLen + 1 , 1 ) ; memcpy ( dest , data , ( dataLen + 1 ) ); printLine ( ( char * ) dest ); void printLine (const char * line) if ( line != NULL )  printf ( "%s\n" , line ); free ( dest ); 