commit | ba98bf7ba1a9a5d4b76c511bc091a1eb2c120508 | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Tue Jan 07 14:37:18 2025 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 07 14:37:18 2025 -0800 |
tree | f8488563887f0560cb2f3b55e5d9bb05749ed34c | |
parent | 71e9e6542ab175a23e4a0d547c1d1ea39ba9e247 [diff] |
Validate UTF8 conversion is in range. When converting UTF8 characters, we'd check the various bytes but we did not validate that the resulting value was within range of the codepoints supported by the number of bytes decoded. This CL adds a check to the UTF-8 decoder to validate that the resulting `uint32_t` value is within range for the number of source bytes. Bug: 388039766 Change-Id: Ie7ed6a19e84f04356e3fdeba578281cf966145f6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/221375 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org> Auto-Submit: dan sinclair <dsinclair@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.