Memory checks for out of bounds errors.