[webkit-changes] [WebKit/WebKit] 353fc0: [Base system] Crash when accessing soft-linked Obj...

Wenson Hsieh noreply at github.com
Mon Apr 10 13:44:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 353fc00c0bdac42276df534f3459ded656e362eb
      https://github.com/WebKit/WebKit/commit/353fc00c0bdac42276df534f3459ded656e362eb
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  Date:   2023-04-10 (Mon, 10 Apr 2023)

  Changed paths:
    M Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.mm

  Log Message:
  -----------
  [Base system] Crash when accessing soft-linked Objective-C classes while decoding IPC
https://bugs.webkit.org/show_bug.cgi?id=255240
rdar://107838765

Reviewed by Aditya Keerthi.

Add relevant runtime framework availability checks for the following system frameworks:

- PassKitCore
- DataDetectorsCore
- DataDetectors
- VisionKitCore
- Reveal

...before attempting to soft link Objective-C objects from those respective frameworks.

* Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.mm:
(IPC::shouldEnableStrictMode):

Also remove an extraneous `ENABLE(IMAGE_ANALYSIS)` here; `ENABLE(IMAGE_ANALYSIS)` is true as long as
`HAVE(VK_IMAGE_ANALYSIS)` is true, so there's no need to check both.

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




More information about the webkit-changes mailing list