Closed
Bug 950118
Opened 12 years ago
Closed 12 years ago
Don't allow the object metadata hook to reenter JS
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: bhackett1024, Assigned: bhackett1024)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file)
|
6.08 KB,
patch
|
jimb
:
review+
|
Details | Diff | Splinter Review |
Allowing the object metadata hook to reenter JS allows all sorts of silly cases to be found by fuzzers and which have no bearing on how the metadata hook will be used. Users of this callback do not need to let it reenter JS (let alone invoke arbitrary JS).
The attached patch uses AutoEnterAnalysis to disallow reentering JS within the metadata hook, and updates the C++ hook in the testing functions to do something interesting --- make a metadata object with the creation index and stack information for the allocation.
| Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → bhackett1024
Attachment #8347337 -
Flags: review?(jimb)
Comment 2•12 years ago
|
||
Comment on attachment 8347337 [details] [diff] [review]
patch
Review of attachment 8347337 [details] [diff] [review]:
-----------------------------------------------------------------
Looks fine.
I wonder whether this is part of a creeping expansion of the meaning of JSCompartment::activeAnalysis, but we can cross that bridge when we come to it.
Attachment #8347337 -
Flags: review?(jimb) → review+
| Assignee | ||
Comment 3•12 years ago
|
||
Comment 4•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Updated•12 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•