Changeset 242667 in webkit
- Timestamp:
- Mar 8, 2019, 5:10:33 PM (7 years ago)
- Location:
- trunk
- 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
-
trunk/JSTests/ChangeLog
r242649 r242667 1 2019-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 1 11 2019-03-08 Tadeu Zagallo <tzagallo@apple.com> 2 12 -
trunk/Source/JavaScriptCore/ChangeLog
r242663 r242667 1 2019-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 1 12 2019-03-08 Robin Morisset <rmorisset@apple.com> 2 13 -
trunk/Source/JavaScriptCore/runtime/JSObject.cpp
r242650 r242667 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> … … 2246 2247 RELEASE_AND_RETURN(scope, defaultHasInstance(exec, value, prototype)); 2247 2248 } 2248 if (info.implementsHasInstance()) 2249 if (info.implementsHasInstance()) { 2250 if (UNLIKELY(!vm.isSafeToRecurseSoft())) { 2251 throwStackOverflowError(exec, scope); 2252 return false; 2253 } 2249 2254 RELEASE_AND_RETURN(scope, methodTable(vm)->customHasInstance(this, exec, value)); 2255 } 2250 2256 2251 2257 throwException(exec, scope, createInvalidInstanceofParameterErrorNotFunction(exec, this));
Note:
See TracChangeset
for help on using the changeset viewer.