Commit Graph

4 Commits

Author SHA1 Message Date
Hans Christian Schmitz
2069ea698f
Implement fuzzing for the GLSL parser (#1301)
* Implement fuzzing for the GLSL parser

* Remove arbitrary dependency from naga

Derive `Arbitrary` for proxy objects in `fuzz/fuzz_targets/glsl_parser.rs`
instead.
2021-08-31 13:00:50 -04:00
Hans Christian Schmitz
db845347f2 Fix fuzzing setup
Set naga features in `fuzz/Cargo.toml` to those required for SPIR-V and
WGSL input.
Also bump libfuzzer-sys version.
2021-08-25 11:45:52 -04:00
Evgeny Proydakov
753e9608d3
Fixed compile-time error in spv fuzzer test. (#967)
* Fixed compile-time error in spv fuzzer test.

error[E0061]: this function takes 2 arguments but 1 argument was supplied
   --> fuzz_targets/spv_parser.rs:7:19
    |
7   |     let _result = Parser::new(data.into_iter()).parse();
    |                   ^^^^^^^^^^^ ---------------- supplied 1 argument
    |                   |
    |                   expected 2 arguments
    |
note: associated function defined here
   --> /Users/evgeny.proydakov/repository/naga/src/front/spv/mod.rs:411:12
    |
411 |     pub fn new(data: I, options: &Options) -> Self {
    |            ^^^

error: aborting due to previous error

* Code review. Group imports
2021-06-12 19:46:33 -04:00
Gabriel Majeri
de3024f6b2 Add fuzzing support 2020-07-01 08:53:54 -04:00