Twinklebear / tobj

Tiny OBJ Loader in Rust
MIT License
233 stars 47 forks source link

cargo fuzz harness and fixes for bugs found #51

Closed evanrichter closed 2 years ago

evanrichter commented 2 years ago

Hi! I wrote a couple fuzzers targeting file loading (mtl and obj). The mtl fuzzer did not find any issues (running for a couple hours). The obj loader, which is more complex of course, did find several panics when reading corrupting files.

The fuzzers are in the fuzz directory, as is common for cargo-fuzz.

Twinklebear commented 2 years ago

Thanks for these fixes and the fuzzer @evanrichter ! Everything looks good to me, I'll push out a release with these fixes now.