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