[webkit-changes] [WebKit/WebKit] 187384: ProducerSharedCARingBuffer::allocate should be mor...

Kimmo Kinnunen noreply at github.com
Wed Apr 26 00:56:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 18738469adb24cbfb8b2f081da83612a1ba62150
      https://github.com/WebKit/WebKit/commit/18738469adb24cbfb8b2f081da83612a1ba62150
  Author: Kimmo Kinnunen <kkinnunen at apple.com>
  Date:   2023-04-26 (Wed, 26 Apr 2023)

  Changed paths:
    M Source/WebKit/Shared/Cocoa/SharedCARingBuffer.cpp

  Log Message:
  -----------
  ProducerSharedCARingBuffer::allocate should be more robust in computing shared memory buffer size
https://bugs.webkit.org/show_bug.cgi?id=255866
rdar://102920372

Reviewed by Jean-Yves Avenard.

Harden the ProducerSharedCARingBuffer shared memory size calculation,
make the + sizeof(TimeBoundsBuffer) be part of the Checked calculation.

* Source/WebKit/Shared/Cocoa/SharedCARingBuffer.cpp:
(WebKit::ProducerSharedCARingBuffer::allocate):

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




More information about the webkit-changes mailing list