mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
11 lines
364 B
Rust
11 lines
364 B
Rust
#![no_main]
|
|
use libfuzzer_sys::fuzz_target;
|
|
|
|
fuzz_target!(|module: naga::Module| {
|
|
use naga::valid as v;
|
|
// Check if the module validates without errors.
|
|
//TODO: may also fuzz the flags and capabilities
|
|
let mut validator = v::Validator::new(v::ValidationFlags::all(), v::Capabilities::default());
|
|
let _result = validator.validate(&module);
|
|
});
|