Skip to content

[4.0] string.c: guard tmp in rb_str_format_m (GH-16280)#16286

Merged
k0kubun merged 1 commit intoruby:ruby_4_0from
byroot:ruby_4_0_str_format_crash
Mar 3, 2026
Merged

[4.0] string.c: guard tmp in rb_str_format_m (GH-16280)#16286
k0kubun merged 1 commit intoruby:ruby_4_0from
byroot:ruby_4_0_str_format_crash

Conversation

@byroot
Copy link
Copy Markdown
Member

@byroot byroot commented Mar 3, 2026

[Bug #21931]

Keep tmp alive while RARRAY_CONST_PTR(tmp) is used by rb_str_format.

[Bug #21931]

Keep tmp alive while RARRAY_CONST_PTR(tmp) is used by rb_str_format.

[alan: sunk the guard below usage]
Reviewed-by: Alan Wu <XrXr@users.noreply.github.com>
@byroot byroot requested a review from k0kubun as a code owner March 3, 2026 09:17
@byroot byroot changed the title string.c: guard tmp in rb_str_format_m (GH-16280) [4.0] string.c: guard tmp in rb_str_format_m (GH-16280) Mar 3, 2026
@k0kubun k0kubun merged commit a9b84ad into ruby:ruby_4_0 Mar 3, 2026
90 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants