func: static void goodG2B() char * data ; data = NULL; CWE124_Buffer_Underwrite__new_char_cpy_84_goodG2B * goodG2BObject = new CWE124_Buffer_Underwrite__new_char_cpy_84_goodG2B ( data ) ; CWE124_Buffer_Underwrite__new_char_cpy_84_goodG2B::CWE124_Buffer_Underwrite__new_char_cpy_84_goodG2B(char * dataCopy) data = dataCopy; char * dataBuffer = new char [ 100 ] ; memset ( dataBuffer , 'A' , 100 - 1 ); dataBuffer [ 100 - 1 ] = '\0'; data = dataBuffer; delete goodG2BObject CWE124_Buffer_Underwrite__new_char_cpy_84_goodG2B::~CWE124_Buffer_Underwrite__new_char_cpy_84_goodG2B() char source [ 100 ] ; memset ( source , 'C' , 100 - 1 ); source [ 100 - 1 ] = '\0'; strcpy ( data , source ); printLine ( data ); void printLine (const char * line) if ( line != NULL )  printf ( "%s\n" , line ); 