[Webkit-unassigned] [Bug 246260] New: StringImpl::copyCharacters incorrectly uses memcpy on destination pointers that may be null
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Oct 9 14:50:35 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=246260
Bug ID: 246260
Summary: StringImpl::copyCharacters incorrectly uses memcpy on
destination pointers that may be null
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Web Template Framework
Assignee: webkit-unassigned at lists.webkit.org
Reporter: darin at apple.com
After studying the call sites of StringImpl::copyCharacters, it is clear that many rely on being able to pass a combination of a null pointer for the destination and a zero length. The documentation of std::memcpy makes it clear that this leads to undefined behavior, so we can’t do this any more.
--
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/20221009/ce65acd8/attachment.htm>
More information about the webkit-unassigned
mailing list