a9b84adbd2 (ruby_4_0): string.c: guard tmp in rb_str_format_m (GH-16280)

0 views
Skip to first unread message

ZHIJIE XIE

unread,
Mar 3, 2026, 10:57:49 AM (20 hours ago) Mar 3
to ruby...@g.ruby-lang.org
ZHIJIE XIE 2026-03-02 17:40:57 +0000 (Mon, 02 Mar 2026)

New Revision: a9b84adbd2

https://github.com/ruby/ruby/commit/a9b84adbd2

Log:
string.c: guard tmp in rb_str_format_m (GH-16280)

[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 <Xr...@users.noreply.github.com>

Modified files:
string.c
Reply all
Reply to author
Forward
0 new messages