News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Secured functions of the masm32 msvcrt.lib

Started by ToutEnMasm, October 28, 2011, 12:24:02 PM

Previous topic - Next topic

ToutEnMasm

Secured functions of the msvcrt generate an "invalid parameter events".
as explain here:
http://msdn.microsoft.com/en-us/library/a9yf33zb(v=vs.80).aspx
Quote
Many C run-time functions check the validity of arguments passed to them. If an invalid argument is passed, the function can set the errno error number or return an error code. In such cases, the invalid parameter handler is also called. This function allows that handler to be set to another function. Only one function can be specified as the invalid argument handler at a time.
Is this event is not redirected(further method ?),he just made a crash.
The masm32 msvcrt.lib haven't the function who allow this.
Quote
invoke _set_invalid_parameter_handler,invalid_parameter
There is also _CrtSetReportMode
sample:
http://www.masm32.com/board/index.php?topic=17604.msg148463#msg148463