Changeset 242859 in webkit
- Timestamp:
- Mar 13, 2019, 1:24:45 AM (7 years ago)
- Location:
- branches/safari-607-branch
- Files:
-
- 1 added
- 3 edited
-
JSTests/ChangeLog (modified) (1 diff)
-
JSTests/stress/stack-overflow-in-custom-hasInstance.js (added)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/runtime/JSObject.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-607-branch/JSTests/ChangeLog
r242857 r242859 1 2019-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 1 34 2019-03-13 Babak Shafiei <bshafiei@apple.com> 2 35 -
branches/safari-607-branch/Source/JavaScriptCore/ChangeLog
r242857 r242859 1 2019-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 1 35 2019-03-13 Babak Shafiei <bshafiei@apple.com> 2 36 -
branches/safari-607-branch/Source/JavaScriptCore/runtime/JSObject.cpp
r239557 r242859 47 47 #include "SlotVisitorInlines.h" 48 48 #include "TypeError.h" 49 #include "VMInlines.h" 49 50 #include <math.h> 50 51 #include <wtf/Assertions.h> … … 2207 2208 RELEASE_AND_RETURN(scope, defaultHasInstance(exec, value, prototype)); 2208 2209 } 2209 if (info.implementsHasInstance()) 2210 if (info.implementsHasInstance()) { 2211 if (UNLIKELY(!vm.isSafeToRecurseSoft())) { 2212 throwStackOverflowError(exec, scope); 2213 return false; 2214 } 2210 2215 RELEASE_AND_RETURN(scope, methodTable(vm)->customHasInstance(this, exec, value)); 2216 } 2211 2217 2212 2218 throwException(exec, scope, createInvalidInstanceofParameterErrorNotFunction(exec, this));
Note:
See TracChangeset
for help on using the changeset viewer.