catch input buffer overrun