Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 54862905a65ed053f0f207cd65b94be73bb70f5a
https://github.com/WebKit/WebKit/commit/54862905a65ed053f0f207cd65b94be73bb70f5a
Author: Xi Ruoyao <[email protected]>
Date: 2026-05-12 (Tue, 12 May 2026)
Changed paths:
M Source/WTF/wtf/text/StringImpl.h
Log Message:
-----------
[WTF] Avoid dereferencing pointer to unaligned ChunkType
https://bugs.webkit.org/show_bug.cgi?id=314529
Reviewed by Yusuke Suzuki.
Despite this loop is only applied for CPUs not requiring aligned access,
dereferencing const ChunkType* causes the compiler to assume the address
is naturally aligned for ChunkType and make optimizations based on this
assumption. For example, with GCC 16 and -mavx, the loop is optimized
to use a 256-bit vmovdqa after handling 0-3 64-bit scalars, causing a
segfault.
* Source/WTF/wtf/text/StringImpl.h:
(codePointCompare):
Canonical link: https://commits.webkit.org/313136@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications