validate line buffer size