mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
![]() The documentation for `rb_enc_interned_str_cstr` notes that `enc` can be a null pointer, but this currently causes a segmentation fault when trying to autoload the encoding. This commit fixes the issue by checking for NULL before calling `rb_enc_autoload`. |
||
---|---|---|
.. | ||
capacity.c | ||
coderange.c | ||
cstr.c | ||
depend | ||
ellipsize.c | ||
enc_associate.c | ||
enc_dummy.c | ||
enc_str_buf_cat.c | ||
extconf.rb | ||
fstring.c | ||
init.c | ||
modify.c | ||
new.c | ||
nofree.c | ||
normalize.c | ||
qsort.c | ||
rb_interned_str.c | ||
rb_str_dup.c | ||
set_len.c |