[webkit-changes] [WebKit/WebKit] 1b6cd8: SecStaticCodeCreateWithPath use causes crash with ...

Per Arne Vollan noreply at github.com
Mon May 22 12:30:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1b6cd84a49f12ee364eaa84a040ca57340d21a26
      https://github.com/WebKit/WebKit/commit/1b6cd84a49f12ee364eaa84a040ca57340d21a26
  Author: Per Arne Vollan <pvollan at apple.com>
  Date:   2023-05-22 (Mon, 22 May 2023)

  Changed paths:
    M Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm

  Log Message:
  -----------
  SecStaticCodeCreateWithPath use causes crash with ASAN
https://bugs.webkit.org/show_bug.cgi?id=256919
rdar://109470436

Reviewed by Brent Fulgham.

This is a speculative fix. Go back to using CFBundleCopyBundleURL instead of CFBundleCopyExecutableURL, since
we did not observe any asan crashes with this approach. Also check that the returned bundle URL is valid.

* Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::platformInitializeWebProcess):

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




More information about the webkit-changes mailing list