[Webkit-unassigned] [Bug 258936] New: Left shift of negative value in JSC::RegisterAtOffset::offset()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 6 09:52:18 PDT 2023


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

            Bug ID: 258936
           Summary: Left shift of negative value in
                    JSC::RegisterAtOffset::offset()
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: xry111 at xry111.site

JSC::RegisterAtOffset::m_offsetBits is ptrdiff_t, so it's signed.  And
on most platforms the stack grows downward, so the value if often
negative.  The C++ standard explicit deems left shift of negative value
undefined.

-- 
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/20230706/64b28472/attachment.htm>


More information about the webkit-unassigned mailing list