Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 353fc00c0bdac42276df534f3459ded656e362eb
      
https://github.com/WebKit/WebKit/commit/353fc00c0bdac42276df534f3459ded656e362eb
  Author: Wenson Hsieh <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to