Skip to content

[pull] master from ruby:master - #1386

Merged
pull[bot] merged 6 commits into
turkdevops:masterfrom
ruby:master
Sep 7, 2026
Merged

[pull] master from ruby:master#1386
pull[bot] merged 6 commits into
turkdevops:masterfrom
ruby:master

Conversation

@pull

@pull pull Bot commented Sep 7, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

elang2 and others added 6 commits September 7, 2026 06:53
…n string values

The C parser guards leading-first surrogate pairs but silently accepts
a lone trailing surrogate, encoding U+DC00..U+DFFF as three UTF-8 bytes
into the output buffer. The returned Ruby String is tagged UTF-8 but
fails valid_encoding? and raises misleading errors from downstream
String operations (upcase, split, regex, encode, JSON.generate).

Add a symmetric branch alongside the leading-surrogate check to raise
JSON::ParserError at the parse boundary. Extend test_invalid_surogates
with the new cases and move the three JSONTestSuite fixtures that this
fix newly rejects from INVALID_ENCODING_TESTS into UNDEFINED_FAILING,
closing the CRuby/JRuby parser parity gap documented in the file.

ruby/json@82bf6bedcf
`.deps/depend` depends on `$(REVISION_H)`, so make makes it while
remaking the included makefiles, before `update-src` removes it.  As
make does not make a target twice in a run, `after-update` kept using
the emptied `revision.h` and `make up` failed to compile version.c with
undefined `RUBY_RELEASE_MONTH`.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
sizeof(((rb_method_entry_t *)obj)->def) returned the size of the pointer
(8 bytes) and not the size of the rb_method_entry_t.
@pull pull Bot locked and limited conversation to collaborators Sep 7, 2026
@pull pull Bot added the ⤵️ pull label Sep 7, 2026
@pull
pull Bot merged commit 11ce377 into turkdevops:master Sep 7, 2026
1 of 3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants