WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
285591
Missing Validation for Sub-Section Order in Custom Section
https://bugs.webkit.org/show_bug.cgi?id=285591
Summary
Missing Validation for Sub-Section Order in Custom Section
tombox1337
Reported
2025-01-08 03:42:42 PST
Created
attachment 473835
[details]
program.js ### Description WebKit does not enforce the requirement for sub-sections within a custom section to be in a specific order. This behavior violates the WebAssembly specification, which mandates that sub-sections should follow a particular order. ### Environment - OS: Ubuntu 20.04 - CPU: amd64 - WebKit Version: 146fa28a329d220785d2972c1d691555141e6406 ### Steps to Reproduce Run the following WebAssembly module: ``` ./JSCOnly/Debug/bin/jsc ./program.js ``` ### Current State ```plaintext No validation error is produced. ``` ### Expected Behavior The WebAssembly module should fail validation and report an error similar to: ``` out-of-order sub-section ```
Attachments
program.js
(254 bytes, application/x-javascript)
2025-01-08 03:42 PST
,
tombox1337
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-01-15 03:43:35 PST
<
rdar://problem/142957426
>
Yusuke Suzuki
Comment 2
2025-01-30 22:22:25 PST
Can you point out the spec text describing this validation?
Yusuke Suzuki
Comment 3
2025-02-07 18:07:45 PST
This is not specified, and tolerant handling is better.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug