Open kkristof opened 3 years ago
This is great! We'd love to run this on our CI.
Minimal reproducer seems to be
type T = array<u32, 1073741824>; // 4 bytes * ⌈(2³² - 1) / 4.0⌉ count
The error occurs at the multiplication at the end of this match arm: https://github.com/gfx-rs/naga/blob/35f27cfe7ee09588add02e3c8ce9e3b391953711/src/proc/mod.rs#L114-L128
This should probably use a checked_mul
and return a Result
.
Related spec issue: https://github.com/gpuweb/gpuweb/issues/2118
Hi, I am still working on my fuzz testing using fuzzinator framework and the grammarinator test generator mentioned in gfx-rs/naga#631. I'm not sure which component is failing on the following wgsl test case and if it is considered to be an error or not :)
The following test case is failing. I know the generated test is far from following the standard (I'm trying to improve it).
Result: