commit | d8e77e2e73afd5bb2238ac322d7acbdd084ec410 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Fri May 13 23:17:28 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri May 13 23:17:28 2022 +0000 |
tree | aeec71fabf144b501b918fa7e21e4b9812630088 | |
parent | 8faaad9b5e01dcc84df80097660446a68509e47c [diff] |
tint: Prevent integer overflow in IntrinsicTable If the WGSL provided over 255 arguments, then we'd overflow the uint8_t, and a bad candidate could be matched. We have validation in place to ensure that user functions are not declared with more than 255 parameters, but no validation for number of arguments provided. Fixed: chromium:1323605 Change-Id: I048709e8b02bdd95d5082128a1186080c79b2fc7 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/90249 Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.