[ruby-cvs:69043] mame:r61862 (trunk): parse.y (new_regexp): Fix SEGV of `/#{"\u3042"}#{'?\227?\129?\132'}/` in non UTF-8

mame at ruby-lang.org mame at ruby-lang.org
Tue Jan 16 10:43:25 JST 2018


mame	2018-01-16 10:43:25 +0900 (Tue, 16 Jan 2018)

  New Revision: 61862

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61862

  Log:
    parse.y (new_regexp): Fix SEGV of `/#{"\u3042"}#{'?\227?\129?\132'}/` in non UTF-8
    
    Mixing other encoding string literals in one Regexp caused SEGV.
    This bug was found by CoverityScan.

  Modified files:
    trunk/parse.y
    trunk/test/ruby/test_mixed_unicode_escapes.rb


More information about the ruby-cvs mailing list