April 11, 2026
6:46 a.m.
That's not how this estimated size works, I believe. It's the size of results glyph array, not necessarily a maximum length during intermediate substitution steps. In any case, since array sizes are passed to shaping logic, it should check for bounds. But I agree that "likely safe" approach is unfortunately better in this case, there is no quick fix and I'd rather reuse shaping logic from newer text API here, at some point. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10612#note_135847