Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: aa5eadc0c2eb2e1c3b9a1fcb40ab54dacfa620c5
https://github.com/WebKit/WebKit/commit/aa5eadc0c2eb2e1c3b9a1fcb40ab54dacfa620c5
Author: Yusuke Suzuki <[email protected]>
Date: 2026-03-25 (Wed, 25 Mar 2026)
Changed paths:
M Source/WTF/wtf/CurrentTime.cpp
M Source/WTF/wtf/JSONValues.cpp
M Source/WTF/wtf/MathExtras.h
M Source/WTF/wtf/MemoryPressureHandler.cpp
M Source/WTF/wtf/StatisticsManager.cpp
M Source/WTF/wtf/text/TextStream.cpp
M Source/WebCore/html/ImageDocument.cpp
M Source/WebCore/platform/animation/AnimationUtilities.h
M Source/WebCore/platform/audio/AudioResamplerKernel.cpp
M Source/WebCore/platform/graphics/FormatConverter.cpp
M Source/WebCore/platform/graphics/GraphicsContext.cpp
M Source/WebCore/platform/graphics/IntRect.cpp
M Source/WebCore/platform/graphics/IntSize.h
M Source/WebCore/platform/graphics/ShadowBlur.cpp
Log Message:
-----------
Avoid fp->integer UB throughout WebKit repository
https://bugs.webkit.org/show_bug.cgi?id=310697
rdar://173311131
Reviewed by Chris Dumez and Dan Hecht.
Apply 309786@main change throughout the WebKit repository. When
converting fp to integers, if it is not fitting in a range of integer's
representable range, it is UB. And the recent clang is leverageing this
UB a bit too aggressively and causing breakage of semantics in the code
when it is used in an UB manner.
* Source/WTF/wtf/CurrentTime.cpp:
* Source/WTF/wtf/JSONValues.cpp:
(WTF::JSONImpl::Value::asInteger const):
* Source/WTF/wtf/MathExtras.h:
(WTF::truncateDoubleToInt32):
(WTF::truncateDoubleToInt64):
(WTF::truncateDoubleToUint32):
(WTF::truncateDoubleToUint64):
(WTF::truncateFloatToInt32):
(WTF::truncateFloatToInt64):
(WTF::truncateFloatToUint32):
(WTF::truncateFloatToUint64):
(WTF::tryConvertToStrictInt32):
* Source/WTF/wtf/MemoryPressureHandler.cpp:
(WTF::thresholdForMemoryKillOfActiveProcess):
(WTF::thresholdForMemoryKillOfInactiveProcess):
* Source/WTF/wtf/StatisticsManager.cpp:
(WTF::dumpHistogram):
* Source/WTF/wtf/text/TextStream.cpp:
(WTF::hasFractions):
* Source/WebCore/html/ImageDocument.cpp:
(WebCore::ImageDocument::imageClicked):
* Source/WebCore/platform/animation/AnimationUtilities.h:
(WebCore::blend):
* Source/WebCore/platform/audio/AudioResamplerKernel.cpp:
(WebCore::AudioResamplerKernel::getSourceSpan):
* Source/WebCore/platform/graphics/FormatConverter.cpp:
(WebCore::uint32_t>):
(WebCore::int32_t>):
* Source/WebCore/platform/graphics/GraphicsContext.cpp:
(WebCore::GraphicsContext::computeRectsAndStrokeColorForLinesForText):
* Source/WebCore/platform/graphics/IntRect.cpp:
(WebCore::IntRect::scale):
* Source/WebCore/platform/graphics/IntSize.h:
(WebCore::IntSize::scale):
* Source/WebCore/platform/graphics/ShadowBlur.cpp:
(WebCore::calculateLobes):
Canonical link: https://commits.webkit.org/309964@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications