27 Sep
2024
27 Sep
'24
5:06 p.m.
Esme Povirk (@madewokherd) commented about dlls/mscoree/mscoree_main.c:
} }
+void CDECL mono_log_handler_fn(const char *log_domain, const char *log_level, const char *message, INT fatal, void *user_data) +{ + char *msg = calloc(strlen(log_domain) + (log_domain ? 2 : 0) + strlen(message) + strlen("\n") + 1, sizeof(char));
I don't think strlen works with a NULL string? At least I can't find any documentation saying it does. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6572#note_83565