WGSL front end crashes on malformed input #90
Labels
area: front-end
Input formats for conversion
help wanted
Extra attention is needed
kind: bug
Something isn't working
lang: WGSL
WebGPU shading language
Minimal reproduction: feed the WGSL parser the following string:
Leads to the following panic in
wgsl::lex::consume_token
:The panic is likely from this indexing here:
naga/src/front/wgsl.rs
Line 101 in 1f5008f
The text was updated successfully, but these errors were encountered: