Skip to content
  • NARUSE, Yui's avatar
    4e2738f4
    merge revision(s) 7e8a9af9: [Backport #17732] · 4e2738f4
    NARUSE, Yui authored
    	rb_enc_interned_str: handle autoloaded encodings
    
    	If called with an autoloaded encoding that was not yet
    	initialized, `rb_enc_interned_str` would crash with
    	a NULL pointer exception.
    
    	See: https://github.com/ruby/ruby/pull/4119#issuecomment-800189841
    	---
    	 encoding.c                        | 28 ++++++++++++----------------
    	 ext/-test-/string/depend          |  3 +++
    	 ext/-test-/string/fstring.c       | 15 +++++++++++++++
    	 internal/encoding.h               |  3 +++
    	 string.c                          |  4 ++++
    	 test/-ext-/string/test_fstring.rb | 16 ++++++++++++++++
    	 6 files changed, 53 insertions(+), 16 deletions(-)
    4e2738f4
    merge revision(s) 7e8a9af9: [Backport #17732]
    NARUSE, Yui authored
    	rb_enc_interned_str: handle autoloaded encodings
    
    	If called with an autoloaded encoding that was not yet
    	initialized, `rb_enc_interned_str` would crash with
    	a NULL pointer exception.
    
    	See: https://github.com/ruby/ruby/pull/4119#issuecomment-800189841
    	---
    	 encoding.c                        | 28 ++++++++++++----------------
    	 ext/-test-/string/depend          |  3 +++
    	 ext/-test-/string/fstring.c       | 15 +++++++++++++++
    	 internal/encoding.h               |  3 +++
    	 string.c                          |  4 ++++
    	 test/-ext-/string/test_fstring.rb | 16 ++++++++++++++++
    	 6 files changed, 53 insertions(+), 16 deletions(-)
Loading