Changeset 242868 in webkit
- Timestamp:
- Mar 13, 2019, 2:25:06 AM (7 years ago)
- Location:
- releases/WebKitGTK/webkit-2.24
- 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
-
releases/WebKitGTK/webkit-2.24/JSTests/ChangeLog
r242866 r242868 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-06 Saam Barati <sbarati@apple.com> 2 12 -
releases/WebKitGTK/webkit-2.24/Source/JavaScriptCore/ChangeLog
r242866 r242868 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-06 Saam Barati <sbarati@apple.com> 2 13 -
releases/WebKitGTK/webkit-2.24/Source/JavaScriptCore/runtime/JSObject.cpp
r240951 r242868 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.