[Bug 45942] AnyRail6: crashing when open Options. ( native gdiplus is work around)

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Oct 6 18:00:30 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=45942

--- Comment #5 from Nikolay Sivov <bunglehead at gmail.com> ---
Created attachment 62486
  --> https://bugs.winehq.org/attachment.cgi?id=62486
patch

It seems the issue is the lack of input data validation. Application tries to
load GDI+ image from stream, created on icon group resource. Icon group
resource format is close to .ico, but not the same - header matches, but icon
entries are 2 bytes shorter, entry size field is followed by icon id WORD
instead of offset.

Obviously GDI or WIC won't be able to load something like that, because it does
not have access to module resources, even if it did there's no way to tell one
format from another.

Attached patch works for me. Icon in question is IDB_OPTIONSICON_GENERAL.
displayed next to "General options" text.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list