Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e718add89ed69e33354f3348a34afcd1549cb648
https://github.com/WebKit/WebKit/commit/e718add89ed69e33354f3348a34afcd1549cb648
Author: Vitor Roriz <[email protected]>
Date: 2025-12-02 (Tue, 02 Dec 2025)
Changed paths:
A
LayoutTests/fast/css/letter-spacing-with-compounded-zoom-factor-crash-expected.txt
A LayoutTests/fast/css/letter-spacing-with-compounded-zoom-factor-crash.html
M Source/WebCore/rendering/style/RenderStyleSetters.h
Log Message:
-----------
ASAN_ILL | WebCore::RenderText::computePreferredLogicalWidths;
WebCore::RenderText::trimmedPreferredWidths;
WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths
https://bugs.webkit.org/show_bug.cgi?id=302954
rdar://164952578
Reviewed by Brent Fulgham, Simon Fraser, and Alan Baradlay.
Clamp effective zoom to prevent arithmetic overflow in layout computations.
When zoom compounds through nested elements, the effective zoom can overflow
to infinity, causing failures in width calculations.
Clamp usedZoom to [1e-6, 1e6] to prevent overflow while maintaining
compatibility with other engines.
Test: fast/css/letter-spacing-with-compounded-zoom-factor-crash.html
*
LayoutTests/fast/css/letter-spacing-with-compounded-zoom-factor-crash-expected.txt:
Added.
* LayoutTests/fast/css/letter-spacing-with-compounded-zoom-factor-crash.html:
Added.
* Source/WebCore/rendering/style/RenderStyleSetters.h:
(WebCore::RenderStyle::setZoom):
Canonical link: https://commits.webkit.org/303808@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications