commit | d62ca6f4ed0fb79f11ecc92e069d7cc12ba4cc4c | [log] [tgz] |
---|---|---|
author | Saifuddin Hitawala <hitawala@chromium.org> | Fri Mar 07 00:07:49 2025 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 07 00:07:49 2025 -0800 |
tree | 8312df6007ba27745ee42a3927f03c58a36e97b9 | |
parent | 3e2e6297866e1ca0251afee69ffaeedc57fc4d84 [diff] |
[stream] Check for size invalidity before reserving in Stream::Read We are seeing some crashes when trying to deserialize MslCompilation with Graphite Dawn. This change checks for invalidity when trying to reserve vector with size which can be larger than max_size. Change-Id: I2e5e059c68388d4e0a83efb976275d2d475c90ab Bug: chromium:372224129 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/229254 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
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.