[Webkit-unassigned] [Bug 227170] New: Prevent sign-extended casts for 32 bits arch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 18 08:17:32 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=227170
Bug ID: 227170
Summary: Prevent sign-extended casts for 32 bits arch
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: mikhail at igalia.com
In a number of places, addresses are reinterpreted as uint64, which can lead to wrong addresses in 32 bits arch.
For example, in https://bugs.webkit.org/show_bug.cgi?id=226503, asCell() returns a pointer to the payload and using reinterpret_cast will sign extend asNumber to FFFF FFFF + , which will fail the isImpureNaN check in jsNumber.
--
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/20210618/c28ac298/attachment.htm>
More information about the webkit-unassigned
mailing list