func: static void goodG2B1() char * data ; data = NULL; data = CWE127_Buffer_Underread__malloc_char_ncpy_22_goodG2B1Source ( data ); char * CWE127_Buffer_Underread__malloc_char_ncpy_22_goodG2B1Source(char * data) if ( CWE127_Buffer_Underread__malloc_char_ncpy_22_goodG2B1Global )  char * dataBuffer = ( char * ) malloc ( 100 * sizeof ( char ) ) ; memset ( dataBuffer , 'A' , 100 - 1 ); dataBuffer [ 100 - 1 ] = '\0'; data = dataBuffer; return data ; char dest [ 100 ] ; memset ( dest , 'C' , 100 - 1 ); dest [ 100 - 1 ] = '\0'; strncpy ( dest , data , strlen ( dest ) ); dest [ 100 - 1 ] = '\0'; printLine ( dest ); void printLine (const char * line) if ( line != NULL )  printf ( "%s\n" , line ); 