[ruby-core:126829] [Ruby Bug#22342] IO#gets can ignore the limit argument in some edge cases