mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-16 03:23:37 +00:00
The fuzzer is able to trigger nullptr reads by failing to create objects and then using the resulting nullptr in other operations. The proper fix is to implement WebGPU error handling where creation failure returns a valid but "error" object. However implementing this error handling is a lot of work, so in the meantime we use nullptr checks in relevant places to fix the fuzzer issue. These checks will be removed once the error handling is changed. BUG=dawn:8 Change-Id: I6777a7fa40383b3d2235e071c3f0109de7605a22 Reviewed-on: https://dawn-review.googlesource.com/c/2565 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>