Changeset 5291 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp


Ignore:
Timestamp:
Oct 28, 2003, 2:52:29 PM (22 years ago)
Author:
mjs
Message:

Reviewed by Ken.

  • fixed 3413962 - malicious web pages can kill all future JavaScript execution by breaking recursion limit check
  • kjs/nodes.cpp: (FunctionCallNode::evaluate): If we're going to return early due to breaking the recursion limit, make sure to lower it again, or it will creep up by one each time it's exceeded.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/nodes.cpp

    r5209 r5291  
    747747  static int depth = 0; // sum of all concurrent interpreters
    748748  if (++depth > KJS_MAX_STACK) {
     749    --depth;
    749750    return throwError(exec, RangeError, "Exceeded maximum function call depth calling %s (result of expression %s).", v, expr);
    750751  }
Note: See TracChangeset for help on using the changeset viewer.