[webkit-changes] [WebKit/WebKit] 298627: [WGSL] Struct size rounding overflows
Tadeu Zagallo
noreply at github.com
Fri Jun 7 05:04:19 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2986275957ba7c73b1699e2059540a6c4b2b9126
https://github.com/WebKit/WebKit/commit/2986275957ba7c73b1699e2059540a6c4b2b9126
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2024-06-07 (Fri, 07 Jun 2024)
Changed paths:
M Source/WebGPU/WGSL/AttributeValidator.cpp
M Source/WebGPU/WGSL/tests/valid/struct.wgsl
Log Message:
-----------
[WGSL] Struct size rounding overflows
https://bugs.webkit.org/show_bug.cgi?id=275180
rdar://129227421
Reviewed by Mike Wyrzykowski.
We were checking for overflow of the struct size, but missed the check for overflow
when rounding up the total size to the alignment.
* Source/WebGPU/WGSL/AttributeValidator.cpp:
(WGSL::AttributeValidator::visit):
* Source/WebGPU/WGSL/tests/valid/struct.wgsl:
Canonical link: https://commits.webkit.org/279809@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list