mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:34:57 +00:00
AK: Fix 64-bit alignment issue in shared-superstring substrings
Thanks to Timothy Flynn for the test! Fixes #17141
This commit is contained in:
parent
ba5df46a49
commit
d0697d350d
2 changed files with 12 additions and 1 deletions
|
@ -77,7 +77,7 @@ private:
|
|||
bool m_substring { false };
|
||||
bool m_is_fly_string { false };
|
||||
|
||||
u8 m_bytes_or_substring_data[0];
|
||||
alignas(SubstringData) u8 m_bytes_or_substring_data[0];
|
||||
};
|
||||
|
||||
void StringData::operator delete(void* ptr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue