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