March 27, 2026
3:05 p.m.
Alfred Agrell (@Alcaro) commented about dlls/kernelbase/loader.c:
+ /* the folder/directory containing the "MUI" file and reset work index "j" to -1. */ + + if (i >= j && j > 0) { + for (l = 0; l < 5; l++) { + mui_name[k] = mui_locale[l]; + k++; + } + mui_name[k] = '/'; + k++; + j = -1; + } + } + + /* Finally, append the literal ".mui" onto the file reference. */ + + wcscat(mui_name, L".mui"); There are fewer bounds checks in this function than I'd expect.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10365#note_134084