func: static void goodG2B() char * data ; char dataBuffer [ 100 ] = "" ; data = dataBuffer; CWE134_Uncontrolled_Format_String__char_file_w32_vsnprintf_84_goodG2B * goodG2BObject = new CWE134_Uncontrolled_Format_String__char_file_w32_vsnprintf_84_goodG2B ( data ) ; CWE134_Uncontrolled_Format_String__char_file_w32_vsnprintf_84_goodG2B::CWE134_Uncontrolled_Format_String__char_file_w32_vsnprintf_84_goodG2B(char * dataCopy) data = dataCopy; strcpy ( data , "fixedstringtest" ); delete goodG2BObject CWE134_Uncontrolled_Format_String__char_file_w32_vsnprintf_84_goodG2B::~CWE134_Uncontrolled_Format_String__char_file_w32_vsnprintf_84_goodG2B() goodG2BVaSink ( data , data ); static void goodG2BVaSink(char * data, ...) char dest [ 100 ] = "" ; va_list args ; vsnprintf ( dest , 100 - 1 , data , args ); printLine ( dest ); void printLine (const char * line) if ( line != NULL )  printf ( "%s\n" , line ); 