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

mwyrzykowski noreply at github.com
Mon Aug 5 15:35:00 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ea6fdc4592a397155b2db826702d13ecebf07e84
      https://github.com/WebKit/WebKit/commit/ea6fdc4592a397155b2db826702d13ecebf07e84
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2024-08-05 (Mon, 05 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
radar://130092543

Reviewed by Tadeu Zagallo.

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/281855@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