Actions
Bug #22461
closedUse-after-free in `String` formatting with wide character encodings
Bug #22461:
Use-after-free in `String` formatting with wide character encodings
Description
A heap use-after-free bug exists in Ruby's string formatting implementation (String#% and Kernel#sprintf) when processing wide character encoded strings.
Updated by nobu (Nobuyoshi Nakada) 1 day ago
- Description updated (diff)
Updated by nobu (Nobuyoshi Nakada) 1 day ago
Updated by nobu (Nobuyoshi Nakada) 1 day ago
- Status changed from Open to Closed
Applied in changeset git|faefcb11050ea61ee011e3b73c929ff406d30b68.
[Bug #22461] Fix dangling pointers after associating encoding
rb_enc_associate may re-allocate the string buffer because of the
terminator length change.
Actions