diff options
| author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2023-09-14 20:37:43 +1200 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2024-05-18 20:09:56 +0900 |
| commit | 0e664ebcd36879591223d1ecbb181aa05d82a4d9 (patch) | |
| tree | c553e13e411287a834ece8873156cfec0ae7455f /test/ruby/test_method_cache.rb | |
| parent | 67d499a7646a4f2f5294b6c83ac9503fcd873270 (diff) | |
Fix `io_buffer_get_string` default length computation. (#8427)
* Fix `io_buffer_get_string` default length computation.
When an offset bigger than the size is given, the resulting length will be
computed incorrectly. Raise an argument error in this case.
* Validate all arguments.
Diffstat (limited to 'test/ruby/test_method_cache.rb')
0 files changed, 0 insertions, 0 deletions
