From 765c61445550c6e4ecfd250e1893d776d570b4fd Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Tue, 18 Jun 2024 20:08:25 -0700 Subject: Validate that names are valid UTF-8 (#6682) Add an `isUTF8` utility and use it in both the text and binary parsers. Add missing checks for overlong encodings and overlarge code points in our WTF8 reader, which the new utility uses. Re-enable the spec tests that test UTF-8 validation. --- scripts/test/shared.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'scripts/test') diff --git a/scripts/test/shared.py b/scripts/test/shared.py index 4034f95ef..909b20c4b 100644 --- a/scripts/test/shared.py +++ b/scripts/test/shared.py @@ -400,10 +400,6 @@ os.chdir(options.out_dir) # expected-output/ if any. SPEC_TESTS_TO_SKIP = [ # Malformed module accepted - 'utf8-custom-section-id.wast', - 'utf8-import-field.wast', - 'utf8-import-module.wast', - 'utf8-invalid-encoding.wast', 'const.wast', 'address.wast', -- cgit v1.2.3