Closed
Bug 841759
Opened 13 years ago
Closed 13 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
Details
Attachments
(1 file)
|
41.87 KB,
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•13 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•13 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•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•