mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
Bug 1019810: Crashing in InlineFrameIterator::findNextFrame() with MOZ_CRASH when numActualArgs_ fails to get initialized, r=h4writer
This commit is contained in:
parent
e49b1d978d
commit
995b8b1c13
@ -1875,9 +1875,7 @@ InlineFrameIterator::findNextFrame()
|
||||
si_.settleOnFrame();
|
||||
|
||||
pc_ = script_->offsetToPC(si_.pcOffset());
|
||||
#ifdef DEBUG
|
||||
numActualArgs_ = 0xbadbad;
|
||||
#endif
|
||||
|
||||
// This unfortunately is O(n*m), because we must skip over outer frames
|
||||
// before reading inner ones.
|
||||
@ -1904,7 +1902,8 @@ InlineFrameIterator::findNextFrame()
|
||||
numActualArgs_ = 1;
|
||||
}
|
||||
|
||||
JS_ASSERT(numActualArgs_ != 0xbadbad);
|
||||
if (numActualArgs_ == 0xbadbad)
|
||||
MOZ_CRASH("Couldn't deduce the number of arguments of an ionmonkey frame");
|
||||
|
||||
// Skip over non-argument slots, as well as |this|.
|
||||
unsigned skipCount = (si_.numAllocations() - 1) - numActualArgs_ - 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user