option to limit size of input lines read into memory

Otherwise, very large lines (result of some other bugs) cause hard failures.