...
Do not explicitly or implicitly call std::abort()
or std::_Exit()
. When the default terminate_handler
is installed, or the current terminate_handler
responds by calling std::abort()
or std::_Exit()
, do not explicitly or implicitly call std::terminate()
. Abnormal process termination is the typical vector for denial-of-service attacks.
Noncompliant Code Example
...
ERR30-CPP-EX1: It is acceptable to explicitly call std::abort()
, std::_Exit()
, or std::terminate()
in response to a critical program error for which no recovery is possible, after indicating the nature of the problem to the operator, as in this example:
...