func: void CWE789_Uncontrolled_Mem_Alloc__malloc_wchar_t_rand_17_bad() int i , j ; size_t data ; data = 0; for(i = 0; i < 1; i++) data = rand ( ); for(j = 0; j < 1; j++) wchar_t * myString ; if ( data > wcslen ( HELLO_STRING ) )  myString = ( wchar_t * ) malloc ( data * sizeof ( wchar_t ) ); wcscpy ( myString , HELLO_STRING ); printWLine ( myString ); void printWLine (const wchar_t * line) if ( line != NULL )  wprintf ( L "%ls\n" , line ) free ( myString ); 