Project

General

Profile

ยซ Previous | Next ยป 

Revision 2fa051f6

Added by kddnewton (Kevin Newton) over 1 year ago

[ruby/prism] Validate multibyte characters in strings

Check that multibyte characters are valid using pm_strpbrk. We need
to add a couple of codepaths to ensure all encodings are covered.

Importantly this doesn't check regular expressions, because
apparently you're allowed to have invalid multibyte characters
inside regular expression comment groups/extended mode.

https://github.com/ruby/prism/commit/2857d3e1b5