27 Jan
2023
27 Jan
'23
5:46 p.m.
\__WINE_MALLOC is not appropriate for functions that return initialized objects.
I was confused about this assertion, so I went and looked at the documentation, which includes the restriction "no pointers to valid objects occur in any storage addressed by [the return value]". I don't know why this is a restriction, but it also means that we can't put that attribute on realloc or anything like it, which we already have incorrectly done. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2046#note_22172