Skip to content

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

Merged
hsbt merged 1 commit intoruby:ruby_3_3from
byroot:ruby_3_3_str_format_crash
Mar 4, 2026
Merged

[3.3] string.c: guard tmp in rb_str_format_m (GH-16280)#16288
hsbt merged 1 commit intoruby:ruby_3_3from
byroot:ruby_3_3_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 changed the title string.c: guard tmp in rb_str_format_m (GH-16280) [3.3] string.c: guard tmp in rb_str_format_m (GH-16280) Mar 3, 2026
@hsbt hsbt merged commit 6cd7b1a into ruby:ruby_3_3 Mar 4, 2026
97 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