[wire] Reject mappedAtCreation in CreateErrorBuffer The wire client already blocks mappedAtCreation in CreateErrorBuffer, because it's complicated to implement but has no existing use case. Thus, block it in the wire server too (with a WireResult::FatalError) to prevent fuzzers from finding crashes due to the native CreateErrorBuffer returning nullptr (because it OOMed during map-at-creation). This fixes all three fuzzer cases associated with the bugs below. No tests added because (AFAICT) there are no tests that can provide custom input to the wire server (without using the wire client). Fixed: 406043685, 415199303, 406804858 Change-Id: If4dd76d49283be9d28924a95e81c85c770fae293 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/241935 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.