summaryrefslogtreecommitdiff
path: root/src/passes/GlobalStructInference.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-09-16 15:42:28 -0700
committerGitHub <noreply@github.com>2024-09-16 22:42:28 +0000
commit6c07a328e5ce0e1ac187a55d07faf6be642774a5 (patch)
tree45e6adaa112431059e52877c2b07f487da6670ae /src/passes/GlobalStructInference.cpp
parented19e3f699ddb72d59f227a9f20846c9ce79e2c6 (diff)
downloadbinaryen-6c07a328e5ce0e1ac187a55d07faf6be642774a5.tar.gz
binaryen-6c07a328e5ce0e1ac187a55d07faf6be642774a5.tar.bz2
binaryen-6c07a328e5ce0e1ac187a55d07faf6be642774a5.zip
Require string-style identifiers to be UTF-8 (#6941)
In the WebAssembly text format, strings can generally be arbitrary bytes, but identifiers must be valid UTF-8. Check for UTF-8 validity when parsing string-style identifiers in the lexer. Update StringLowering to generate valid UTF-8 global names even for strings that may not be valid UTF-8 and test that text round tripping works correctly after StringLowering. Fixes #6937.
Diffstat (limited to 'src/passes/GlobalStructInference.cpp')
0 files changed, 0 insertions, 0 deletions