summaryrefslogtreecommitdiff
path: root/test/lit/basic
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-03-18 21:17:55 -0700
committerGitHub <noreply@github.com>2024-03-18 21:17:55 -0700
commit63db13bf0f0f5dcc76c45a22ff43c424fa54a011 (patch)
tree35d3255d02908372a01b954f4dce4d8e66efb8de /test/lit/basic
parentbfb5ec04ddba295c9e1390314f6610a8bf7fefbe (diff)
downloadbinaryen-63db13bf0f0f5dcc76c45a22ff43c424fa54a011.tar.gz
binaryen-63db13bf0f0f5dcc76c45a22ff43c424fa54a011.tar.bz2
binaryen-63db13bf0f0f5dcc76c45a22ff43c424fa54a011.zip
[Strings] Avoid mishandling unicode in interpreter (#6405)
Our interpreter implementations of `stringview_wtf16.length`, `stringview_wtf16.get_codeunit`, and `string.encode_wtf16_array` are not unicode-aware, so they were previously incorrect in the face of multi-byte code units. As a fix, bail out of the interpretation if there is a non-ascii code point that would make our naive implementation incorrect.
Diffstat (limited to 'test/lit/basic')
0 files changed, 0 insertions, 0 deletions