[webkit-changes] [WebKit/WebKit] 7536af: [bmalloc] Fix misalignment issue for seedPtr in TZ...
Yijia Huang
noreply at github.com
Tue Jan 7 14:11:34 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7536af6d67362af9f42ef97b140752ee0a107c38
https://github.com/WebKit/WebKit/commit/7536af6d67362af9f42ef97b140752ee0a107c38
Author: Yijia Huang <yijia_huang at apple.com>
Date: 2025-01-07 (Tue, 07 Jan 2025)
Changed paths:
M Source/bmalloc/bmalloc/TZoneHeapManager.cpp
Log Message:
-----------
[bmalloc] Fix misalignment issue for seedPtr in TZoneHeapManager::init()
https://bugs.webkit.org/show_bug.cgi?id=285544
rdar://142489488
Reviewed by Yusuke Suzuki.
The 8-byte pointer `seedPtr` in TZoneHeapManager::init() is used
to copy 8 bytes from `seed` each time. This patch ensures that `seed`
is 8-byte aligned to mitigate the misalignment issue and prevent
undefined behavior during pointer dereferencing.
* Source/bmalloc/bmalloc/TZoneHeapManager.cpp:
(bmalloc::api::TZoneHeapManager::init):
Canonical link: https://commits.webkit.org/288562@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list