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