Closed Bug 1440727 Opened 6 years ago Closed 2 years ago

StructuredClone reader silently ignores extraneous bytes at the end

Categories

(Core :: JavaScript Engine, defect, P3)

defect

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox60 --- wontfix
firefox101 --- fixed

People

(Reporter: jorendorff, Assigned: sfink)

Details

Attachments

(1 file)

This should be an error.

Rookie parser mistake. D'oh.
Priority: -- → P3
The SCTAG_TRANSFER_MAP_STORED_ARRAY_BUFFER code makes use of this, but we can afford to be a little stricter than we are currently, at least.
Assignee: nobody → sphink
Status: NEW → ASSIGNED
Pushed by sfink@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ad9857e4fb96
Disallow extra data at the end of serialized data buffer r=decoder
Pushed by sfink@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1697fb86fbb2
Disallow extra data at the end of serialized data buffer r=decoder,jonco
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
Flags: needinfo?(sphink) → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: