[webkit-changes] [WebKit/WebKit] 4ea3b6: [WebGPU] Sampler::samplerState() will throw an exc...

mwyrzykowski noreply at github.com
Wed Aug 7 17:46:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4ea3b600a31f20300ed204b2185aec7498f0056f
      https://github.com/WebKit/WebKit/commit/4ea3b600a31f20300ed204b2185aec7498f0056f
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2024-08-07 (Wed, 07 Aug 2024)

  Changed paths:
    A LayoutTests/fast/webgpu/nocrash/fuzz-277552-expected.txt
    A LayoutTests/fast/webgpu/nocrash/fuzz-277552.html
    M Source/WebGPU/WebGPU/Sampler.mm

  Log Message:
  -----------
  [WebGPU] Sampler::samplerState() will throw an exception if the device is nil
https://bugs.webkit.org/show_bug.cgi?id=277552
rdar://130092543

Reviewed by Tadeu Zagallo.

(Reland with regression fixed)
A valid sampler with a destroyed device could end up raising
NSExceptions because we would attempt to remove objects from
an empty cache.

* LayoutTests/fast/webgpu/nocrash/fuzz-277552-expected.txt: Added.
* LayoutTests/fast/webgpu/nocrash/fuzz-277552.html: Added.
* Source/WebGPU/WebGPU/Sampler.mm:
(WebGPU::Sampler::samplerState const):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list