We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mruby built with MRB_UTF8_STRING enabled does not count characters in the 0x80...0xc0 in broken strings.
MRB_UTF8_STRING
0x80...0xc0
Here is the result when built with build_config/host-debug.rb:
build_config/host-debug.rb
p "\x80\x81\x82\x83".size # => 0 (acctual; currently master 7edbff8c83cd19749da576aca945fcbf64602bd5, mruby-3.3.0, mruby-3.2.0) # => 4 (expected; mruby-3.1.0, CRuby)
I checked with git bisect and it reported commit 916fd64. But now it has been replaced by the SWAR technique, so a simple revert is not possible.
git bisect
I don't know how to fix it, so I'll just report it.
The text was updated successfully, but these errors were encountered:
Ah, the new SWAR code assumes the string UTF-8 encoding is valid. Let me think for a while. Thank you for the report.
Sorry, something went wrong.
714ef4c
string.c (search_nonascii): prevent buffer overrun; ref #6255
fa213a2
No branches or pull requests
mruby built with
MRB_UTF8_STRING
enabled does not count characters in the0x80...0xc0
in broken strings.Here is the result when built with
build_config/host-debug.rb
:I checked with
git bisect
and it reported commit 916fd64.But now it has been replaced by the SWAR technique, so a simple revert is not possible.
I don't know how to fix it, so I'll just report it.
The text was updated successfully, but these errors were encountered: