Jump to content

Any wstring/wchar_t gets blocked by Defender as Trojan:Win32/Wacatac.B!ml


Recommended Posts

Guest trueToastedCode
Posted

Whenever i use a wstring/wchar_t in a cpp program, zip the binary, send it over to another Win machine and unzip the program, it gets blocked as a "dangerous" Win32/Wacatac.B!ml trojan - Which is obviously wrong. How do i solve this? This is completely acceptable :(Sample 1:int main() { const string s = "Hello World!"; const wstring ws(s.begin(), s.end()); const wchar_t *wc = ws.c_str(); wcout << wc << endl; }Sample 2:wchar_t* c2wc(const char* c) { size_t size = strlen© + 1; wchar_t *wc = new wchar_t; size_t outSize; mbstowcs_s(&

 

Continue reading...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...