RESOLVED DUPLICATE of bug 246260246267
[WTF] ASSERT on source pointer before calling memcpy()
https://bugs.webkit.org/show_bug.cgi?id=246267
Summary [WTF] ASSERT on source pointer before calling memcpy()
Philippe Normand
Reported 2022-10-10 01:03:40 PDT
As noted in https://bugs.webkit.org/show_bug.cgi?id=245640 in at least one case memcpy() was being called with a null source pointer in StringImpl::copyCharacters(). We should add an ASSERT there.
Attachments
Philippe Normand
Comment 1 2022-10-10 01:06:14 PDT
Philippe Normand
Comment 2 2022-10-10 02:19:34 PDT
*** This bug has been marked as a duplicate of bug 246260 ***
Darin Adler
Comment 3 2022-10-10 09:15:36 PDT
Turns out *many* callers are passing nullptr for destination pointer as well as source pointer, so the use of memcpy there is incorrect. I ended up working on a much bigger patch for this, but in the end we might want to land something smaller than what I did.
Note You need to log in before you can comment on or make changes to this bug.