AK: Fix 64-bit alignment issue in shared-superstring substrings

Thanks to Timothy Flynn for the test!

Fixes #17141
This commit is contained in:
Andreas Kling 2023-02-18 13:43:52 +01:00 committed by Tim Flynn
commit d0697d350d
Notes: sideshowbarker 2024-07-18 01:43:16 +09:00
2 changed files with 12 additions and 1 deletions

View file

@ -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)