c++ - try catch on reflective loaded dll -
i testing injection technique (reflective dll injection) , found try/catch on code rise unhandle windows error (kernelbase.dll, code error e06d7363) , host process dies.
i injecting test dll basic function. work flow is: print "starting..." , dies.
my dll.
bool winapi dllmain(hinstance hinstdll, dword dwreason, lpvoid lpreserved) { bool breturnvalue = true; switch (dwreason) { case dll_process_attach: function(); break; } return breturnvalue; } void function() { cout << "starting..." << std::endl; try { throw std::exception(); } catch (...) { cout << " exception... " << std::endl; } } any technical explanation?
Comments
Post a Comment