⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 242859 in webkit


Ignore:
Timestamp:
Mar 13, 2019, 1:24:45 AM (7 years ago)
Author:
bshafiei@apple.com
Message:

Cherry-pick r242667. rdar://problem/48839311

Stack overflow crash in JSC::JSObject::hasInstance.
https://bugs.webkit.org/show_bug.cgi?id=195458
<rdar://problem/48710195>

Reviewed by Yusuke Suzuki.

JSTests:

  • stress/stack-overflow-in-custom-hasInstance.js: Added.

Source/JavaScriptCore:

  • runtime/JSObject.cpp: (JSC::JSObject::hasInstance):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242667 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-607-branch
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-607-branch/JSTests/ChangeLog

    r242857 r242859  
     12019-03-13  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Cherry-pick r242667. rdar://problem/48839311
     4
     5    Stack overflow crash in JSC::JSObject::hasInstance.
     6    https://bugs.webkit.org/show_bug.cgi?id=195458
     7    <rdar://problem/48710195>
     8   
     9    Reviewed by Yusuke Suzuki.
     10   
     11    JSTests:
     12   
     13    * stress/stack-overflow-in-custom-hasInstance.js: Added.
     14   
     15    Source/JavaScriptCore:
     16   
     17    * runtime/JSObject.cpp:
     18    (JSC::JSObject::hasInstance):
     19   
     20   
     21   
     22    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     23
     24    2019-03-08  Mark Lam  <mark.lam@apple.com>
     25
     26            Stack overflow crash in JSC::JSObject::hasInstance.
     27            https://bugs.webkit.org/show_bug.cgi?id=195458
     28            <rdar://problem/48710195>
     29
     30            Reviewed by Yusuke Suzuki.
     31
     32            * stress/stack-overflow-in-custom-hasInstance.js: Added.
     33
    1342019-03-13  Babak Shafiei  <bshafiei@apple.com>
    235
  • branches/safari-607-branch/Source/JavaScriptCore/ChangeLog

    r242857 r242859  
     12019-03-13  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Cherry-pick r242667. rdar://problem/48839311
     4
     5    Stack overflow crash in JSC::JSObject::hasInstance.
     6    https://bugs.webkit.org/show_bug.cgi?id=195458
     7    <rdar://problem/48710195>
     8   
     9    Reviewed by Yusuke Suzuki.
     10   
     11    JSTests:
     12   
     13    * stress/stack-overflow-in-custom-hasInstance.js: Added.
     14   
     15    Source/JavaScriptCore:
     16   
     17    * runtime/JSObject.cpp:
     18    (JSC::JSObject::hasInstance):
     19   
     20   
     21   
     22    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     23
     24    2019-03-08  Mark Lam  <mark.lam@apple.com>
     25
     26            Stack overflow crash in JSC::JSObject::hasInstance.
     27            https://bugs.webkit.org/show_bug.cgi?id=195458
     28            <rdar://problem/48710195>
     29
     30            Reviewed by Yusuke Suzuki.
     31
     32            * runtime/JSObject.cpp:
     33            (JSC::JSObject::hasInstance):
     34
    1352019-03-13  Babak Shafiei  <bshafiei@apple.com>
    236
  • branches/safari-607-branch/Source/JavaScriptCore/runtime/JSObject.cpp

    r239557 r242859  
    4747#include "SlotVisitorInlines.h"
    4848#include "TypeError.h"
     49#include "VMInlines.h"
    4950#include <math.h>
    5051#include <wtf/Assertions.h>
     
    22072208        RELEASE_AND_RETURN(scope, defaultHasInstance(exec, value, prototype));
    22082209    }
    2209     if (info.implementsHasInstance())
     2210    if (info.implementsHasInstance()) {
     2211        if (UNLIKELY(!vm.isSafeToRecurseSoft())) {
     2212            throwStackOverflowError(exec, scope);
     2213            return false;
     2214        }
    22102215        RELEASE_AND_RETURN(scope, methodTable(vm)->customHasInstance(this, exec, value));
     2216    }
    22112217
    22122218    throwException(exec, scope, createInvalidInstanceofParameterErrorNotFunction(exec, this));
Note: See TracChangeset for help on using the changeset viewer.