Actions
Bug #19754
closed`IO::Buffer#get_string` raises unsuitable exception for too large offset
Bug #19754:
`IO::Buffer#get_string` raises unsuitable exception for too large offset
Actions
Added by nobu (Nobuyoshi Nakada) about 3 years ago. Updated almost 3 years ago.
Applied in changeset git|19346c2336053b351673da030b00c704138252d8.
[Bug #19754] Make IO::Buffer#get_string check offset range (#8016)
This change isn't sufficient, it just protects against the invalid value of offset. We can backport it, but I don't feel strongly about whether it's required or not.
It also begs the question whether NUM2SIZET should allow negative values..
ruby_3_2 8bbf909bb561732057b533cee1618b14886e07ba merged revision(s) 19346c2336053b351673da030b00c704138252d8.
ruby_3_1 4f7b595815bd75706c276b03c8d445748e869f2e merged revision(s) 19346c2336053b351673da030b00c704138252d8.
Thanks!