New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perl_is_utf8_string reads out of bounds #7553
Comments
From derhoermi@gmx.netHi, In Perl 5.9.1 and earlier Perl_is_utf8_string(...) reads out of array Perl_is_utf8_string("\xF0\x9D\x80", 3) the string lacks e.g. the final \xAD for U+1D02D, Perl_is_utf8_string Returns true if first C<len> bytes of the given string form a valid which is thus not accurate, it checks the first len plus 0-3 bytes (if Further, I think the documentation for Perl_is_utf8_char() should note WARNING: use only if you *know* that s has at least UTF8SKIP(s) regards. |
From @khwilliamsonFixed (finally) in commit e032854 I modified both this function, and is_utf8_string_loclen() to check Karl Williamson |
From [Unknown Contact. See original ticket]Fixed (finally) in commit e032854 I modified both this function, and is_utf8_string_loclen() to check Karl Williamson |
@khwilliamson - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#32080 (status was 'resolved')
Searchable as RT32080$
The text was updated successfully, but these errors were encountered: