Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 92b2992e4a8135455e50406ff72fd3b1b86b4f29
      
https://github.com/WebKit/WebKit/commit/92b2992e4a8135455e50406ff72fd3b1b86b4f29
  Author: Adan Lopez <[email protected]>
  Date:   2025-07-09 (Wed, 09 Jul 2025)

  Changed paths:
    A LayoutTests/fast/svg/path-NaN-stroke-bounding-box-crash-expected.txt
    A LayoutTests/fast/svg/path-NaN-stroke-bounding-box-crash.html
    M Source/WebCore/rendering/svg/legacy/LegacyRenderSVGPath.cpp
    M Source/WebCore/rendering/svg/legacy/LegacyRenderSVGShape.cpp

  Log Message:
  -----------
  ASAN_TRAP in WebCore::LegacyRenderSVGShape::strokeBoundingBox
https://bugs.webkit.org/show_bug.cgi?id=295535
rdar://153080312

Reviewed by Simon Fraser and Ryosuke Niwa.

Adding checks for invalid bounding box leading marker to NaN.

* LayoutTests/fast/svg/path-NaN-stroke-bounding-box-crash-expected.txt: Added.
* LayoutTests/fast/svg/path-NaN-stroke-bounding-box-crash.html: Added.
* Source/WebCore/rendering/svg/legacy/LegacyRenderSVGPath.cpp:
(WebCore::LegacyRenderSVGPath::adjustStrokeBoundingBoxForMarkersAndZeroLengthLinecaps
 const):
* Source/WebCore/rendering/svg/legacy/LegacyRenderSVGShape.cpp:
(WebCore::LegacyRenderSVGShape::calculateStrokeBoundingBox const):

Canonical link: https://commits.webkit.org/297180@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

Reply via email to