dawn-cmake/src
Brandon Jones cef2d17385 Prevent negative error message ranges
If an error message was reported from Tint that had a end line/position
that occurred before the start line/position then the range would have
a negative length, causing the unsigned length to underflow into a very
large value. Also, specifically, if the start line was non-zero but the
end line was zero (indicating no line, and the value ranges are
constructed with by default) the for loop that adds the line offsets
would underflow and cause it to read off the end of the line list.

Clamping the end of the range to always be less than or equal to the
start of the range avoids both of these problems.

Bug: dawn:1245
Change-Id: I780a1f5acc228297cbbea86f33679d00e9153b4c
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/75260
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Auto-Submit: Brandon Jones <bajones@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
2022-01-05 18:27:36 +00:00
..
common Implement depth24unorm-stencil8 and depth32float-stencil8 formats 2022-01-05 01:31:16 +00:00
dawn Fix CMake build failures after recent changes 2021-09-21 01:07:35 +00:00
dawn_native Prevent negative error message ranges 2022-01-05 18:27:36 +00:00
dawn_node CMake: enable C++17 2022-01-05 09:26:46 +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 Implement upstream RequestDevice, add native-only CreateDevice 2021-12-22 19:02:23 +00:00
fuzzers Enable use_tint_generator by default, disable shader_float16 2021-07-08 18:42:37 +00:00
include Update tests to use wgpu::DeviceDescriptor 2021-12-22 19:04:33 +00:00
tests Implement depth24unorm-stencil8 and depth32float-stencil8 formats 2022-01-05 01:31:16 +00:00
utils Validate depth/stencil texture formats in image copies 2021-12-02 02:06:40 +00:00
Dummy.cpp Add missed file for the CMake build. 2020-02-07 23:46:30 +00:00