From c3b9cde9d99efe46fc34af1d5b27351f34962e94 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Tue, 18 Jun 2024 11:13:05 -0700 Subject: Reject invalid section IDs (#6675) Rather than treating them as custom sections. Also fix UB where invalid `Section` enum values could be used as keys in a map. Use the raw `uint8_t` section IDs as keys instead. Re-enable a disabled spec test that was failing because of this bug and UB. --- scripts/test/shared.py | 1 - 1 file changed, 1 deletion(-) (limited to 'scripts/test') diff --git a/scripts/test/shared.py b/scripts/test/shared.py index 847dd9de5..f5fda92a5 100644 --- a/scripts/test/shared.py +++ b/scripts/test/shared.py @@ -408,7 +408,6 @@ SPEC_TESTS_TO_SKIP = [ 'utf8-invalid-encoding.wast', 'const.wast', 'address.wast', - 'custom.wast', # invalid section ID accepted as Custom, triggering UBSan # Unlinkable module accepted 'linking.wast', -- cgit v1.2.3