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