Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ec419da7f4621af0ce69a9cce5e4eed57d8df190
      
https://github.com/WebKit/WebKit/commit/ec419da7f4621af0ce69a9cce5e4eed57d8df190
  Author: Brady Eidson <[email protected]>
  Date:   2024-06-05 (Wed, 05 Jun 2024)

  Changed paths:
    M Source/WebCore/PAL/pal/spi/cf/CoreTextSPI.h
    M Source/WebCore/platform/graphics/FontPlatformData.h
    M Source/WebCore/platform/graphics/coretext/FontPlatformDataCoreText.cpp
    M Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.serialization.in

  Log Message:
  -----------
  Validate the attributes CFDictionaryRef when decoding FontPlatformData classes
rdar://125475043
https://bugs.webkit.org/show_bug.cgi?id=274933

Reviewed by Alex Christensen.

This is the first dive into the expected key/values in the FontPlatformData 
attributes dictionary.
Like other IPC validation we've done, it's more robust (while being less 
flexible) to rely on structs
that pull out values for serialization an deserialization.

* Source/WebCore/PAL/pal/spi/cf/CoreTextSPI.h:
* Source/WebCore/platform/graphics/FontPlatformData.h:
* Source/WebCore/platform/graphics/coretext/FontPlatformDataCoreText.cpp:
(WebCore::FontPlatformData::fromIPCData):
(WebCore::FontPlatformData::toIPCData const):
(WebCore::FontPlatformSerializedAttributes::fromCF):
(WebCore::FontPlatformSerializedAttributes::toCFDictionary const):
(WebCore::FontPlatformSerializedTraits::fromCF):
(WebCore::FontPlatformSerializedTraits::toCFDictionary const):
(WebCore::FontPlatformOpticalSize::fromCF):
(WebCore::FontPlatformOpticalSize::toCF const):
* Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.serialization.in:

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