[webkit-changes] [WebKit/WebKit] 90fc02: Check for non-finite values in 'isPointInPathInter...

Ahmad Saleem noreply at github.com
Tue Feb 28 09:32:18 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 90fc0225ff3420961c296bf972f111c598e23d03
      https://github.com/WebKit/WebKit/commit/90fc0225ff3420961c296bf972f111c598e23d03
  Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
  Date:   2023-02-28 (Tue, 28 Feb 2023)

  Changed paths:
    M Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp

  Log Message:
  -----------
  Check for non-finite values in 'isPointInPathInternal' and 'isPointInStrokeInternal' functions

https://bugs.webkit.org/show_bug.cgi?id=250382
rdar://problem/104331898

Reviewed by Said Abou-Hallawa.

This patch introduces check for non-finite values in 'isPointInPathInternal' and 'isPointInStrokeInternal' functions
by returning false. This is also extended to 'transformedPoint' to have finite value by asserting above change.

* Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp:
(CanvasRenderingContext2DBase::isPointInPathInternal):
(CanvasRenderingContext2DBase::isPointInStrokeInternal):

Canonical link: https://commits.webkit.org/260946@main




More information about the webkit-changes mailing list