Changeset 45693 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Jul 9, 2009, 7:44:34 PM (16 years ago)
Author:
[email protected]
Message:

Bug 27016 - Interpreter crashes due to invalid array indexes
<https://bugs.webkit.org/show_bug.cgi?id=27016>

Reviewed by Darin Adler.

Unsigned vs signed conversions results in incorrect behaviour in
64bit interpreter builds.

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r45683 r45693  
     12009-07-09  Oliver Hunt  <[email protected]>
     2
     3        Reviewed by Darin Adler.
     4
     5        Bug 27016 - Interpreter crashes due to invalid array indexes
     6        <https://bugs.webkit.org/show_bug.cgi?id=27016>
     7
     8        Unsigned vs signed conversions results in incorrect behaviour in
     9        64bit interpreter builds.
     10
     11        * interpreter/Interpreter.cpp:
     12        (JSC::Interpreter::privateExecute):
     13
    1142009-07-09  Dimitri Glazkov  <[email protected]>
    215
  • trunk/JavaScriptCore/interpreter/Interpreter.cpp

    r45609 r45693  
    31513151                }
    31523152                Register* argsBuffer = callFrame->registers() + argsOffset;
    3153                 for (unsigned i = 0; i < argCount; ++i) {
     3153                for (int32_t i = 0; i < argCount; ++i) {
    31543154                    argsBuffer[i] = asObject(arguments)->get(callFrame, i);
    31553155                    CHECK_FOR_EXCEPTION();
Note: See TracChangeset for help on using the changeset viewer.