Closed
Bug 1310149
Opened 8 years ago
Closed 8 years ago
Baldr: tighten the check in DecodeLimits after the switch to 0xd
Categories
(Core :: JavaScript Engine: JIT, defect, P3)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: bbouvier, Unassigned)
References
()
Details
Attachments
(1 file)
In the AngryBots demo, the memory is marked as a default one (0x1) and with a maximum (0x2), so the flags for the limits are 0x3. This is wrong, per 0xc, and our impl was wrong too.
To not block testing of emscripten & spidermonkey, it has been decided to:
1. update to the new behavior (no more default flag; having a maximum is 0x1)
2. allow flags to be 0x3 in the worst case
Then we are still binary compatible with the demo (the default flag being now interpreted as the has-maximum flag, which is true in this case). When the demo gets updated, we should tighten the flags checking (2). Next demo update should come with 0xd, I assume.
Comment hidden (mozreview-request) |
Reporter | ||
Comment 2•8 years ago
|
||
I've checked that the newer AngryBots wasm binary still gets validated and compiled with this patch.
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8804611 [details]
Bug 1310149: Tighten the check in DecodeLimits;
https://reviewboard.mozilla.org/r/88524/#review87826
Thanks!
Attachment #8804611 -
Flags: review?(luke) → review+
Pushed by bbouvier@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ddb7b94d3a6a
Tighten the check in DecodeLimits; r=luke
Comment 5•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in
before you can comment on or make changes to this bug.
Description
•