[webkit-changes] [WebKit/WebKit] d0d771: [Skia] Crash when failing to create a font with cu...

Carlos Garcia Campos noreply at github.com
Thu Mar 21 10:31:30 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d0d77187c24c1e2bef6bba0fefc55da1cfe783b2
      https://github.com/WebKit/WebKit/commit/d0d77187c24c1e2bef6bba0fefc55da1cfe783b2
  Author: Carlos Garcia Campos <cgarcia at igalia.com>
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp

  Log Message:
  -----------
  [Skia] Crash when failing to create a font with custom data
https://bugs.webkit.org/show_bug.cgi?id=271391

Reviewed by Adrian Perez de Castro.

This happens for example with test
fast/css/font-face-data-uri-invalid.html. SkFontMgr::makeFromData()
fails to create the SkTypeface and returns nullptr that we don't check.

* Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp:
(WebCore::FontCustomPlatformData::create):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list