Changeset 116455 in webkit
- Timestamp:
- May 8, 2012, 2:52:11 PM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r116372 r116455 1 2012-05-08 Gavin Barraclough <[email protected]> 2 3 SIGFPE on divide in classic interpreter 4 https://bugs.webkit.org/show_bug.cgi?id=85917 5 6 Rubber stamped by Oliver Hunt. 7 8 * interpreter/Interpreter.cpp: 9 (JSC::Interpreter::privateExecute): 10 - check for divisor of -1. 11 1 12 2012-05-07 Oliver Hunt <[email protected]> 2 13 -
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r115861 r116455 2449 2449 JSValue divisor = callFrame->r(vPC[3].u.operand).jsValue(); 2450 2450 2451 if (dividend.isInt32() && divisor.isInt32() && divisor.asInt32() != 0 ) {2451 if (dividend.isInt32() && divisor.isInt32() && divisor.asInt32() != 0 && divisor.asInt32() != -1) { 2452 2452 JSValue result = jsNumber(dividend.asInt32() % divisor.asInt32()); 2453 2453 ASSERT(result);
Note:
See TracChangeset
for help on using the changeset viewer.