June 2, 2026
4:32 a.m.
The length of the exported function name is the first byte in the name table entry. Since the length field is one byte, the maximum name length is 255 bytes, plus one byte for the null terminator. Instead of using a 200-byte name buffer (which might be too small) and then doing the equivalent of strdup, allocate the buffer on the heap to begin with. The bug was identified by Cursor, which is a mix of LLM models. I wrote the fix myself. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11048