Page 1 of 1

Image Has Safe Exception Handlers is no supported

Posted: Tue Aug 26, 2014 6:25 am
by TCS
Hey,

When linking to MadCodeHook binaries with VS2013 (I guess it also happens in earlier versions), the linker fails because safe exception Handling is no supported in the MadCodeHook lib (/SAFESEH option http://msdn.microsoft.com/en-us/library/9a89h429.aspx).
It is possible to add this feature quite easily by recompiling MadCodeHook with a newer version of CRT (or newer visual studio...)

Re: Image Has Safe Exception Handlers is no supported

Posted: Mon Sep 01, 2014 5:55 am
by choochy2003
I spoke with Mathias a while back about this and he mentioned that this can not be enabled for the 32bit static lib, because the 32bit static lib is still based on the Delphi source code. Delphi still does not support enabling of SafeSEH for 32 bit binaries. Although, I do have information from EMBT that they are looking into its support in future compiler releases.

Re: Image Has Safe Exception Handlers is no supported

Posted: Wed Sep 03, 2014 7:08 am
by TCS
Okay, thanks!

Re: Image Has Safe Exception Handlers is no supported

Posted: Sun Jul 08, 2018 7:38 am
by _NN_
Is there any improvement since 2014 here ?
Currently I get:
1>madCHook32.lib(madCHook.obj) : error LNK2026: module unsafe for SAFESEH image.
SafeSEH is something that is mandatory by several clients same way as ASLR.

Re: Image Has Safe Exception Handlers is no supported

Posted: Sun Jul 08, 2018 9:03 am
by madshi
The Delphi based static lib doesn't support SafeSEH, but I suppose compiling the C++ code base to create a 32bit static lib should work. No complaints with 64bit, right?

Re: Image Has Safe Exception Handlers is no supported

Posted: Sun Jul 08, 2018 9:07 am
by _NN_
SafeSEH flag is irrelevant for 64-bit since SEH in 64-bit is already table based.

Re: Image Has Safe Exception Handlers is no supported

Posted: Mon Jul 09, 2018 7:44 am
by madshi
Ah yes. Hmmmm... So anyway, I think using the C++ sources it should probably be possible to create a SafeSEH compatible 32bit static lib.

Re: Image Has Safe Exception Handlers is no supported

Posted: Wed Jul 11, 2018 6:57 am
by _NN_
Can you compile lib using C++ and add it to madchook package?
Thanks

Re: Image Has Safe Exception Handlers is no supported

Posted: Wed Jul 11, 2018 7:37 am
by madshi
Yes, that should be possible.

Re: Image Has Safe Exception Handlers is no supported

Posted: Wed Jul 11, 2018 12:42 pm
by _NN_
That would be great ! :greenBalloon:
Waiting for an update.

Re: Image Has Safe Exception Handlers is no supported

Posted: Thu Jul 19, 2018 12:25 pm
by madshi
C++ based static libs in the latest test build now:

http://madshi.net/madCollectionBeta.exe

Re: Image Has Safe Exception Handlers is no supported

Posted: Sun Jul 22, 2018 1:01 pm
by _NN_
Not Found
The requested URL /madCollectionBeta.exe was not found on this server.

Re: Image Has Safe Exception Handlers is no supported

Posted: Sun Jul 22, 2018 4:40 pm
by madshi
Ooops, sorry. Should work now.

Re: Image Has Safe Exception Handlers is no supported

Posted: Thu Sep 20, 2018 10:21 am
by _NN_
Thanks.
C++ library compiles with SafeSEH.