Changeset 51128 in webkit for trunk/JavaScriptCore
- Timestamp:
- Nov 18, 2009, 12:46:10 PM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r51123 r51128 1 2009-11-18 Oliver Hunt <[email protected]> 2 3 Reviewed by Alexey Proskuryakov. 4 5 Interpreter may do an out of range access when throwing an exception in the profiler. 6 https://bugs.webkit.org/show_bug.cgi?id=31635 7 8 Add bounds check. 9 10 * interpreter/Interpreter.cpp: 11 (JSC::Interpreter::throwException): 12 1 13 2009-11-18 Gabor Loki <[email protected]> 2 14 -
trunk/JavaScriptCore/interpreter/Interpreter.cpp
r50916 r51128 538 538 if (isCallBytecode(codeBlock->instructions()[bytecodeOffset].u.opcode)) 539 539 profiler->didExecute(callFrame, callFrame->r(codeBlock->instructions()[bytecodeOffset + 2].u.operand).jsValue()); 540 else if (codeBlock->instructions() [bytecodeOffset + 8].u.opcode == getOpcode(op_construct))540 else if (codeBlock->instructions().size() > (bytecodeOffset + 8) && codeBlock->instructions()[bytecodeOffset + 8].u.opcode == getOpcode(op_construct)) 541 541 profiler->didExecute(callFrame, callFrame->r(codeBlock->instructions()[bytecodeOffset + 10].u.operand).jsValue()); 542 542 #else
Note:
See TracChangeset
for help on using the changeset viewer.