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

Changeset 242868 in webkit


Ignore:
Timestamp:
Mar 13, 2019, 2:25:06 AM (7 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r242667 - 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):

Location:
releases/WebKitGTK/webkit-2.24
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.24/JSTests/ChangeLog

    r242866 r242868  
     12019-03-08  Mark Lam  <mark.lam@apple.com>
     2
     3        Stack overflow crash in JSC::JSObject::hasInstance.
     4        https://bugs.webkit.org/show_bug.cgi?id=195458
     5        <rdar://problem/48710195>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        * stress/stack-overflow-in-custom-hasInstance.js: Added.
     10
    1112019-03-06  Saam Barati  <sbarati@apple.com>
    212
  • releases/WebKitGTK/webkit-2.24/Source/JavaScriptCore/ChangeLog

    r242866 r242868  
     12019-03-08  Mark Lam  <mark.lam@apple.com>
     2
     3        Stack overflow crash in JSC::JSObject::hasInstance.
     4        https://bugs.webkit.org/show_bug.cgi?id=195458
     5        <rdar://problem/48710195>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        * runtime/JSObject.cpp:
     10        (JSC::JSObject::hasInstance):
     11
    1122019-03-06  Saam Barati  <sbarati@apple.com>
    213
  • releases/WebKitGTK/webkit-2.24/Source/JavaScriptCore/runtime/JSObject.cpp

    r240951 r242868  
    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.