summaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-06-18 11:13:05 -0700
committerGitHub <noreply@github.com>2024-06-18 18:13:05 +0000
commitc3b9cde9d99efe46fc34af1d5b27351f34962e94 (patch)
tree4b82a3198e329cdffcab3b8c6d16df3922b82632 /scripts/test
parent0f9f2dc21a913164c5a8681b93b7db4d383a8c47 (diff)
downloadbinaryen-c3b9cde9d99efe46fc34af1d5b27351f34962e94.tar.gz
binaryen-c3b9cde9d99efe46fc34af1d5b27351f34962e94.tar.bz2
binaryen-c3b9cde9d99efe46fc34af1d5b27351f34962e94.zip
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.
Diffstat (limited to 'scripts/test')
-rw-r--r--scripts/test/shared.py1
1 files changed, 0 insertions, 1 deletions
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',