mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04: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);
|
|
});
|