Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
255 - _alloca indicates failure by raising a stack overflow exception.
Recommended Fix: Consider using an exception handler.
This warning indicates that a call to _alloca has been detected outside of local exception handling.
_alloca should always be called from within the protected range of an exception handler because it can raise a stack overflow exception on failure.
Example
Defective Source
_alloca(10);
Corrected Source
__try {
_alloca(10);
} __except(GetExceptionCode() == STATUS_STACK_OVERFLOW) {
_resetstkoflw();
}
Send Feedback on this topic to the authors