dawn-cmake/src
Zhaoming Jiang cac96415aa Add size parameter check in buffer mapAsync in wire server
This patch add the size parameter check in buffer mapAsync in dawn
wire server to make sure that it is not WGPU_WHOLE_MAP_SIZE. Together
with validation in mapAsync in dawn native, we can ensure that the
size parameter deserialized in wire server is a valid actual size.
When using default size with dawn wire, the actual size is computed
by wire client, and WGPU_WHOLE_MAP_SIZE shall never be passed to server.

Bug: chromium:1270819
Change-Id: Ic0fe52efed15860bcc519a3881f0f649f7455435
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/70260
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
2021-11-22 09:57:52 +00:00
..
common Improve ScopedEnvironmentVar to distinguish between null and empty 2021-11-16 23:37:15 +00:00
dawn Fix CMake build failures after recent changes 2021-09-21 01:07:35 +00:00
dawn_native Add label to the trace events for pipeline and shader module creation 2021-11-21 11:18:19 +00:00
dawn_node dawn_node: Add documentation on how you debug TS 2021-11-05 16:14:32 +00:00
dawn_platform Add label to the trace events for pipeline and shader module creation 2021-11-21 11:18:19 +00:00
dawn_wire Add size parameter check in buffer mapAsync in wire server 2021-11-22 09:57:52 +00:00
fuzzers Enable use_tint_generator by default, disable shader_float16 2021-07-08 18:42:37 +00:00
include Remove "extension" 2021-10-12 13:21:56 +00:00
tests Fix a warning in FirstIndexOffsetTests about "flat" interpolation 2021-11-21 07:45:38 +00:00
utils Add end2end test for readonly stencil attachment on D3D12 2021-11-16 00:59:34 +00:00
Dummy.cpp