diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-06-02 09:55:25 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2026-06-02 02:10:54 +0000 |
| commit | 14bc2930e1cfbd8e6bd9985a47998583b0824d1f (patch) | |
| tree | d2587f453edcc6f09c6a7d7ab4c24e3d51b4c317 /spec/ruby/library/net-http/http/fixtures/http_server.rb | |
| parent | 770ccaa6fb2425f560dd8e69b5f617a5ca2cf7cd (diff) | |
Clamping the over-read at exactly the requested size could split a
multibyte character, since the string an IO returns may carry a
non-binary encoding. Round the cut down to the last character boundary
at or before the size so the bytes handed to libyaml are always whole
characters.
https://github.com/ruby/psych/commit/6201ae17c1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'spec/ruby/library/net-http/http/fixtures/http_server.rb')
0 files changed, 0 insertions, 0 deletions
