Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3836c5c786a295151b6ec22b967fba7ad827b5bd
https://github.com/WebKit/WebKit/commit/3836c5c786a295151b6ec22b967fba7ad827b5bd
Author: Roberto Rodriguez <[email protected]>
Date: 2025-07-09 (Wed, 09 Jul 2025)
Changed paths:
A LayoutTests/fast/svg/line-NaN-bounding-box-crash-expected.txt
A LayoutTests/fast/svg/line-NaN-bounding-box-crash.html
M Source/WebCore/platform/graphics/FloatRect.h
Log Message:
-----------
Update FloatRect::isNaN() to check y value
https://bugs.webkit.org/show_bug.cgi?id=295622
rdar://153081510
Reviewed by Simon Fraser.
Handle edge case in LegacyRenderSVGShape::calculateStrokeBoundingBox()
where the stroke bounding rectagle has +Inf for the x-value and is not
caught by the check FloatRect::isNan(). Check the y-value to prevent
the crash identified in the rdar://153081510.
* LayoutTests/fast/svg/line-NaN-bounding-box-crash-expected.txt: Added.
* LayoutTests/fast/svg/line-NaN-bounding-box-crash.html: Added.
* Source/WebCore/platform/graphics/FloatRect.h:
(WebCore::FloatRect::isNaN const):
Canonical link: https://commits.webkit.org/297179@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