[webkit-changes] [WebKit/WebKit] 4c147e: Fix crash when sending RemoteImageBuffer::GetShare...

Alex Christensen noreply at github.com
Wed Oct 25 11:10:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4c147ec5b66df566ba8aa6ce701a7886b7abf827
      https://github.com/WebKit/WebKit/commit/4c147ec5b66df566ba8aa6ce701a7886b7abf827
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2023-10-25 (Wed, 25 Oct 2023)

  Changed paths:
    M Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp

  Log Message:
  -----------
  Fix crash when sending RemoteImageBuffer::GetShareableBitmap fails
https://bugs.webkit.org/show_bug.cgi?id=263665
rdar://117480606

Reviewed by Kimmo Kinnunen.

This fixes a crash I saw locally one time.  Others have probably hit it.
I audited all uses of takeReply() and found this is the only one that had the issue.
We should probably migrate to WTF::Expected instead for a better syntactic hint that
a check is needed.

* Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp:
(WebKit::RemoteRenderingBackendProxy::getShareableBitmap):

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




More information about the webkit-changes mailing list