Protect against overrun of input buffer