[webkit-changes] [WebKit/WebKit] 3af977: WebGPU, heap-use-after-free in in WebGPU::Device::...
geoffreygaren
noreply at github.com
Mon Oct 28 10:50:08 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3af977b5f7ffe871816bd6f826380eee28ff3561
https://github.com/WebKit/WebKit/commit/3af977b5f7ffe871816bd6f826380eee28ff3561
Author: Geoffrey Garen <ggaren at apple.com>
Date: 2024-10-28 (Mon, 28 Oct 2024)
Changed paths:
M Source/WebGPU/WebGPU/Adapter.h
M Source/WebGPU/WebGPU/Device.h
M Source/WebGPU/WebGPU/Device.mm
Log Message:
-----------
WebGPU, heap-use-after-free in in WebGPU::Device::instance()
https://bugs.webkit.org/show_bug.cgi?id=282177
rdar://138765627
Reviewed by Mike Wyrzykowski.
Avoid using Adapter on a secondary thread since it's single-threaded. We can
store Instance directly, since that's thread-safe.
* Source/WebGPU/WebGPU/Adapter.h:
(WebGPU::Adapter::weakInstance const):
* Source/WebGPU/WebGPU/Device.h:
(WebGPU::Device::instance const):
* Source/WebGPU/WebGPU/Device.mm:
(WebGPU::Device::Device):
Canonical link: https://commits.webkit.org/285774@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