cac96415aa
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> |
||
---|---|---|
.. | ||
common | ||
dawn | ||
dawn_native | ||
dawn_node | ||
dawn_platform | ||
dawn_wire | ||
fuzzers | ||
include | ||
tests | ||
utils | ||
Dummy.cpp |