Changeset 62766 in webkit


Ignore:
Timestamp:
Jul 8, 2010 12:50:54 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-07-08 Andreas Kling <andreas.kling@nokia.com>

Reviewed by Oliver Hunt.

Interpreter: Crash in op_load_varargs on 64-bit
https://bugs.webkit.org/show_bug.cgi?id=41795

Added missing cast of argCount to int32_t in op_load_varargs.

  • interpreter/Interpreter.cpp: (JSC::Interpreter::privateExecute):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r62765 r62766  
     12010-07-08  Andreas Kling  <andreas.kling@nokia.com>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        Interpreter: Crash in op_load_varargs on 64-bit
     6        https://bugs.webkit.org/show_bug.cgi?id=41795
     7
     8        Added missing cast of argCount to int32_t in op_load_varargs.
     9
     10        * interpreter/Interpreter.cpp:
     11        (JSC::Interpreter::privateExecute):
     12
    1132010-07-08  Patrick Gansterer  <paroga@paroga.com>
    214
  • trunk/JavaScriptCore/interpreter/Interpreter.cpp

    r62612 r62766  
    37773777            // Then we copy any additional arguments that may be further up the stack ('-1' to account for 'this')
    37783778            for (; i < static_cast<int32_t>(argCount); i++)
    3779                 argStore[i] = callFrame->registers()[i - RegisterFile::CallFrameHeaderSize - expectedParams - argCount - 1];
     3779                argStore[i] = callFrame->registers()[i - RegisterFile::CallFrameHeaderSize - expectedParams - static_cast<int32_t>(argCount) - 1];
    37803780        } else if (!arguments.isUndefinedOrNull()) {
    37813781            if (!arguments.isObject()) {
Note: See TracChangeset for help on using the changeset viewer.