Closed
Bug 1213436
Opened 9 years ago
Closed 9 years ago
Reject core dumps with node IDs that don't fit in an IEEE 754 double
Categories
(DevTools :: Memory, defect)
DevTools
Memory
Tracking
(firefox44 fixed)
RESOLVED
FIXED
Firefox 44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: fitzgen, Assigned: fitzgen)
References
Details
Attachments
(1 file, 1 obsolete file)
4.83 KB,
patch
|
sfink
:
review+
|
Details | Diff | Splinter Review |
Our IDs are derived from pointers (48 bits, which will fit) but some annoying person could purposely generate IDs that don't fit since we store them as unsigned 64 bit ints on disk / in protobuf. Depends on bug 1211006 because we would like to use the JS::Value::isRepresentableNumber function defined in that patch.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8672126 -
Flags: review?(sphink)
Assignee | ||
Comment 2•9 years ago
|
||
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=2a6a481a3bf2
Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8672126 [details] [diff] [review] Reject core dumps with node IDs that don't fit in an IEEE 754 double That try push went pretty poorly. Will fix this patch up before re-requesting review.
Attachment #8672126 -
Flags: review?(sphink)
Assignee | ||
Comment 4•9 years ago
|
||
Looks like it is only 32 bit platforms that are getting caught in this assertion. Suspect my conversions are bad or something.
Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8673260 -
Flags: review?(sphink)
Assignee | ||
Updated•9 years ago
|
Attachment #8672126 -
Attachment is obsolete: true
Assignee | ||
Comment 6•9 years ago
|
||
Alright, the issue was that when we were doing uint64_t(ptr) the ptr was getting sign extended on 32 bit platforms. So now we do uint64_t(uintptr_t(ptr)) to avoid the sign extending. Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e0f68ff505f8
Assignee | ||
Comment 7•9 years ago
|
||
Woops, that try push didn't include the patch for bug 1211006. New try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=6c3f279c4ea3
Updated•9 years ago
|
Attachment #8673260 -
Flags: review?(sphink) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/888009041487
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•