Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 03305adad597630b82105daa651db9e52256b6b4
https://github.com/WebKit/WebKit/commit/03305adad597630b82105daa651db9e52256b6b4
Author: Geoffrey Garen <[email protected]>
Date: 2025-11-17 (Mon, 17 Nov 2025)
Changed paths:
M Source/WebGPU/WebGPU/Sampler.h
M Source/WebGPU/WebGPU/Sampler.mm
Log Message:
-----------
Re-land: Remove raw pointer hash table from WebGPU::Sampler
https://bugs.webkit.org/show_bug.cgi?id=302667
rdar://164916940
Reviewed by Mike Wyrzykowski.
Fixed the potential nullptr sampler access by restoring the Sampler's pointer as
the hash set key.
We never dereference the pointers in the set, so we can make this verifiably
memory safe by casting to pointer to integer and storing integer. (Bounds safety
works the same: pointer difference => scalar is safe; scalar => pointer
difference is not safe.)
Canonical link: https://commits.webkit.org/303143@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications