Changeset 35053 in webkit for trunk/JavaScriptCore/VM/Machine.cpp


Ignore:
Timestamp:
Jul 7, 2008, 6:25:36 PM (17 years ago)
Author:
[email protected]
Message:

2008-07-07 Cameron Zwarich <[email protected]>

Reviewed by Geoff.

Bug 19926: URL causes crash within a minute
<https://bugs.webkit.org/show_bug.cgi?id=19926>

Add a check that lastGlobalObject is non-null in Machine::execute()
before copying its globals to the current register file.

In theory, it is possible to make a test case for this, but it will
take a while to get it right.

  • VM/Machine.cpp: (KJS::Machine::execute):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/Machine.cpp

    r35046 r35053  
    710710    }
    711711
    712     if (m_reentryDepth && globalObject != lastGlobalObject)
     712    if (m_reentryDepth && lastGlobalObject && globalObject != lastGlobalObject)
    713713        lastGlobalObject->copyGlobalsTo(m_registerFile);
    714714
Note: See TracChangeset for help on using the changeset viewer.