Closed
Bug 841759
Opened 12 years ago
Closed 12 years ago
BaselineCompiler: Correctly handle situation where getStubCode() on an IC compiler fails.
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: djvj, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
patch
|
jandem
:
review+
|
Details | Diff | Splinter Review |
If for whatever reason ICBlah_Blah::Compiler::getStubCode() fails, then the getStub() method will silently pass the NULL IonCode pointer returned by getStubCode() into a newly allocated stub, where it will cause a null-deref when the native address is attempted to be retrieved.
Needs fixing.
Reporter | ||
Comment 1•12 years ago
|
||
I wish I could just make the allocator do this. With variadic templates in C++ we can make this a whole lot cleaner.. but this is the redundant stuff we need otherwise.
Attachment #718709 -
Flags: review?(jdemooij)
Comment 2•12 years ago
|
||
Comment on attachment 718709 [details] [diff] [review]
Fix.
Review of attachment 718709 [details] [diff] [review]:
-----------------------------------------------------------------
Makes sense.
Attachment #718709 -
Flags: review?(jdemooij) → review+
Reporter | ||
Comment 3•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•