Actions
Bug #20189
closed`rb_str_resize` does not clear coderange when expanding
Bug #20189:
`rb_str_resize` does not clear coderange when expanding
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.4.0dev (2024-01-09T07:07:19Z master db476cc71c) [x86_64-linux]
Description
Expanding string in some encoding (utf16 utf32) can change coderange to either valid or broken, but rb_str_resize does not clear coderange.
This will cause a bug in c-extension libraries that use rb_str_resize.
Actions