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