Closed Bug 1940420 Opened 1 month ago Closed 1 month ago

Missing Duplicate Function Name Validation in Custom Section

Categories

(Core :: JavaScript: WebAssembly, defect)

Firefox 136
defect

Tracking

()

RESOLVED DUPLICATE of bug 1940399

People

(Reporter: tombox1337, Unassigned)

Details

Attachments

(1 file)

262 bytes, application/x-javascript
Details
Attached file program.js

Steps to reproduce:

Description

gecko-dev does not perform validation to check for duplicate function names within a custom section. This omission results in non-compliance with the WebAssembly specification, which requires that function names be unique within their respective modules.

Environment

  • OS: Ubuntu 20.04
  • CPU: amd64
  • Version: 047a913194120e9f4b3d86abfa670cbe7846a022

Steps to Reproduce

Run the following WebAssembly module:

/gecko-dev/obj-debug-x86_64-pc-linux-gnu/dist/bin/js ./program.js

Output

No validation error is produced.

Expected Behavior

The WebAssembly module should fail validation and report an error similar to:

duplicate function name
Status: UNCONFIRMED → RESOLVED
Closed: 1 month ago
Duplicate of bug: 1940399
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: