Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9155990f356664ef6263fb7796ad4e09aa46aeff
https://github.com/WebKit/WebKit/commit/9155990f356664ef6263fb7796ad4e09aa46aeff
Author: Keith Miller <[email protected]>
Date: 2024-04-20 (Sat, 20 Apr 2024)
Changed paths:
M Source/WTF/wtf/CryptographicallyRandomNumber.cpp
M Source/WTF/wtf/CryptographicallyRandomNumber.h
M Source/WTF/wtf/threads/Signals.cpp
Log Message:
-----------
Hardened Mach exception signing key can't be zero
https://bugs.webkit.org/show_bug.cgi?id=273003
rdar://125605825
Reviewed by Yusuke Suzuki.
This patch fixes a bug where the ARM64E ABI doesn't allow the pointer (1st)
argument
of `ptrauth_blend_discriminator` to be zero. It also adds a new overload of
`cryptographicallyRandomNumber` for `uint8_t`, since there's no point in
wasting bits
while trying to get a non-zero key.
* Source/WTF/wtf/CryptographicallyRandomNumber.cpp:
(WTF::cryptographicallyRandomNumber<uint8_t>):
(WTF::cryptographicallyRandomNumber<unsigned>):
(WTF::cryptographicallyRandomNumber<uint64_t>):
* Source/WTF/wtf/CryptographicallyRandomNumber.h:
* Source/WTF/wtf/threads/Signals.cpp:
(WTF::SignalHandlers::initialize):
Canonical link: https://commits.webkit.org/277778@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes