[Bug 41086] Unimplemented function msvcp140.dll.??0? $codecvt at _WDU_Mbstatet@@@std@@QAE at I@Z needed by Battle.net

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Sep 25 02:16:56 CDT 2016


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

wine-devel at hurrikhan.eu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wine-devel at hurrikhan.eu

--- Comment #8 from wine-devel at hurrikhan.eu ---
Created attachment 55744
  --> https://bugs.winehq.org/attachment.cgi?id=55744
With stack trace

locale__Locimp__Locimp_Addfac is called with 'id' set to  4125123688 =
0xF5E06468
void __cdecl locale__Locimp__Locimp_Addfac(locale__Locimp *locimp, locale_facet
*facet, MSVCP_size_t id)

If id is bigger than what is currently supported in 'facet', it tries to grow
'facet' to that size ... and of course it blows up.

Actually the math overflows before the call, which may result in successful
allocation of a (bogus) very small size (ie: 0x0007fffe 00000001, truncated
into 00000001)

One may want to add something like "if( ( <MSVCP_size_t_MAX> /
sizeof(locale_facet*)) < new_size ) { complain }"

-- 
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