mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
9 lines
244 B
Rust
9 lines
244 B
Rust
#![no_main]
|
|
use libfuzzer_sys::fuzz_target;
|
|
use naga::front::wgsl::Frontend;
|
|
|
|
fuzz_target!(|data: String| {
|
|
// Ensure the parser can handle potentially malformed strings without crashing.
|
|
let _result = Frontend::new().parse(&data);
|
|
});
|