PREfast Warning 255 (Windows CE 5.0)
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