March 29, 2026
1:13 a.m.
On Sun Mar 29 06:13:57 2026 +0000, Alistair Leslie-Hughes wrote:
The issue is caused by this function ImageList_Duplicate (HIMAGELIST himlSrc) The ImageList_Create call in the function truncates the size, then further down assumes the image will be same size,. and does a memcpy which causes an access violation. Okay, I see. Let's limit the maximum initial image size to USHORT_MAX and print a warning when it gets truncated. USHORT_MAX is the largest value that we can safely serialize according to ILHEAD. Another way is to call IMAGELIST_InternalExpandBitmaps() after ImageList_Create() in ImageList_Duplicate().
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10469#note_134245