Protection against stack-based memory corruption errors using SafeStack