Changeset 77165 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- Jan 31, 2011, 3:11:21 PM (14 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r77159 r77165 1 2011-01-31 Oliver Hunt <[email protected]> 2 3 Reviewed by Sam Weinig. 4 5 Bogus callframe during stack unwinding 6 https://bugs.webkit.org/show_bug.cgi?id=53454 7 8 Trying to access a callframe's globalData after destroying its 9 ScopeChain is not a good thing. While we could access the 10 globalData directly through the (known valid) scopechain we're 11 holding on to, it feels fragile. Instead we push the valid 12 ScopeChain onto the callframe again to ensure that the callframe 13 itself remains valid. 14 15 * interpreter/Interpreter.cpp: 16 (JSC::Interpreter::unwindCallFrame): 17 1 18 2011-01-31 Michael Saboff <[email protected]> 2 19 -
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r77151 r77165 567 567 while (!scopeChain->object->inherits(&JSActivation::info)) 568 568 scopeChain = scopeChain->pop(); 569 570 callFrame->setScopeChain(scopeChain); 569 571 JSActivation* activation = asActivation(scopeChain->object.get()); 570 572 activation->copyRegisters();
Note:
See TracChangeset
for help on using the changeset viewer.