[Webkit-unassigned] [Bug 229493] New: [JSC] Infinite loop in for...in after r280760

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 25 04:52:27 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=229493

            Bug ID: 229493
           Summary: [JSC] Infinite loop in for...in after r280760
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: xan.lopez at gmail.com

This is at least observable in the JS LayoutTest reserved-words.js. The following fix seems to take care of it:

diff --git a/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp b/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp
index 3940a4e9afd3..113a7d9e191e 100644
--- a/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp
+++ b/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp
@@ -13440,6 +13440,7 @@ void SpeculativeJIT::compileEnumeratorNextUpdateIndexAndMode(Node* node)
         m_jit.or64(scratch.gpr(), resultRegs.payloadGPR());
 #else
         m_jit.move(TrustedImm32(JSPropertyNameEnumerator::IndexedMode), resultRegs.tagGPR());
+        m_jit.or32(scratch.gpr(), resultRegs.payloadGPR());
 #endif

         jsValueResult(resultRegs, node);

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210825/b3eceed3/attachment.htm>


More information about the webkit-unassigned mailing list