Add alignment requirement for TranscodeRange and TranscodeBuffer
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox86 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(1 file)
To directly use XDR buffer from decoded stencil data, buffer+cursor and range passed to the following should align to 4 bytes:
DecodeOffThreadScriptEncodeScriptDecodeScriptDecodeScriptMaybeStencilDecodeScriptAndStartIncrementalEncodingFinishIncrementalEncoding
| Assignee | ||
Comment 1•5 years ago
|
||
currently ScriptLoader has 5 bytes or some data summary at the beginning of buffer
https://searchfox.org/mozilla-central/rev/ffdb6a4d934b3f5294f18cf0e1df618109ccb36b/dom/security/SRICheck.cpp#346-392
to align 32-bit, the consumer of transcoding API should add padding after that.
Comment 2•5 years ago
|
||
(In reply to Tooru Fujisawa [:arai] from comment #1)
currently ScriptLoader has 5 bytes or some data summary at the beginning of buffer
https://searchfox.org/mozilla-central/rev/ffdb6a4d934b3f5294f18cf0e1df618109ccb36b/dom/security/SRICheck.cpp#346-392
Note, It has more than 5 bytes, it also contains the hash payload which size depends on the last script tag which recorded it.
| Assignee | ||
Comment 3•5 years ago
|
||
Depends on D101124
Comment 5•5 years ago
|
||
| bugherder | ||
Description
•