func: void CWE789_Uncontrolled_Mem_Alloc__malloc_wchar_t_fscanf_67_bad() size_t data ; CWE789_Uncontrolled_Mem_Alloc__malloc_wchar_t_fscanf_67_structType myStruct ; data = 0; myStruct . structFirst = data; CWE789_Uncontrolled_Mem_Alloc__malloc_wchar_t_fscanf_67b_badSink ( myStruct ); void CWE789_Uncontrolled_Mem_Alloc__malloc_wchar_t_fscanf_67b_badSink(CWE789_Uncontrolled_Mem_Alloc__malloc_wchar_t_fscanf_67_structType myStruct) size_t data = myStruct . structFirst ; wchar_t * myString ; if ( data > wcslen ( HELLO_STRING ) )  myString = ( wchar_t * ) malloc ( data * sizeof ( wchar_t ) ); wcscpy ( myString , HELLO_STRING ); free ( myString ); 