func: static void goodG2B() char * data ; char dataBuffer [ FILENAME_MAX ] = BASEPATH ; data = dataBuffer; strcat ( data , "file.txt" ); CWE23_Relative_Path_Traversal__char_file_fopen_82_base * baseObject = new CWE23_Relative_Path_Traversal__char_file_fopen_82_goodG2B baseObject -> action ( data ); void CWE23_Relative_Path_Traversal__char_file_fopen_82_goodG2B::action(char * data) pFile = FOPEN ( data , "wb+" ); if ( pFile != NULL )  fclose ( pFile ); 