fsviewer
fsviewer copied to clipboard
macOS: Crash when opening folder with subfolder called "Öffentlich"
This seems to happen, because a custom Icon is searched for every file/dir name, stack:
char* GetFileImgName(char* fileName, enum FileType fileType)infiles.cchar* FSGetStringForNameKey(char* name, char* key)inprop.cWMPropList* FSGetUDObjectForKey(WMUserDefaults* database, char* defaultName)inprop.cWMPropList* WMGetUDObjectForKey(WMUserDefaults *database, const char *defaultName)(in WINGs/WUtil)
There seems to be an issue with hashing UTF-8 keys in this function. The real fix is twofold: Fix the hash function in WINGs and make sure FSViewer does not try to load userdefaults for every file entry. I'll fix the latter here, it will probably still show up for files that contain umlauts in the extension ....