MemoryModulePP icon indicating copy to clipboard operation
MemoryModulePP copied to clipboard

SEH handler gets installed after DLLMain() call

Open BigJim opened this issue 3 years ago • 0 comments

The optional SEH handler local implementation of RtlInsertInvertedFunctionTable() is called after the DLLMain() gets called in LdrMapDllMemory.

If an exception happens in DLLMain() it won't be caught (and thus becomes "unhandled").

It would be better to have the exception handler be installed before DLLMain() and is default behavior for the OS too.

BigJim avatar Mar 10 '21 18:03 BigJim