Protect against stack overflows.