ReClass.NET icon indicating copy to clipboard operation
ReClass.NET copied to clipboard

multibyte conversion to unicode leads to crash

Open undexedcheater opened this issue 7 years ago • 4 comments

i've tried to attach reclass to an certain game and it crashed, then i debugged and found that it crashes here:

const auto temp = converter{}.from_bytes(src + srcOffset); at ReclassNET_plugin.hpp line 285

i've only able to fix the problem using the MultiByteToWideChar API with CP_ACP option.

here's my fix for now:

unsigned long minSize = ::MultiByteToWideChar(CP_ACP, 0, src, -1, NULL, 0);

::MultiByteToWideChar(CP_ACP, 0, src, -1, ( LPWSTR )dst, minSize);

undexedcheater avatar Jan 08 '19 21:01 undexedcheater

Which game? When did it crash (after which action in ReClass.NET)?

Btw, you forgot srcOffset.

KN4CK3R avatar Jan 08 '19 21:01 KN4CK3R

CrossFire NA version, right when i attach into the game, using the last stable release and the last commited version too.

undexedcheater avatar Jan 09 '19 20:01 undexedcheater

How do you prevent Xigncode from blocking ReClass.NET? Do you use the HandleAbuser plugin?

KN4CK3R avatar Jan 12 '19 17:01 KN4CK3R

https://github.com/VirtualPuppet/XignCode3-bypass works for atleast 5 minutes which is enought for me, btw xigncode isnt too aggressive in crossfire anyway.

undexedcheater avatar Jan 12 '19 17:01 undexedcheater