diff options
author | Thomas Lively <tlively@google.com> | 2024-03-18 21:17:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 21:17:55 -0700 |
commit | 63db13bf0f0f5dcc76c45a22ff43c424fa54a011 (patch) | |
tree | 35d3255d02908372a01b954f4dce4d8e66efb8de /test/lit/basic | |
parent | bfb5ec04ddba295c9e1390314f6610a8bf7fefbe (diff) | |
download | binaryen-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