libFuzzer's panic hook aborts at once, even inside the app's own catch_unwind (pack::pdf::copies around the PDF reader), so the third run stopped on the replayed PDF case after 8 inputs although the app handles it. The targets' init (fuzzing::init) sets a hook that prints the first ten panics and lets them unwind as in the app; a panic nothing catches still reaches libfuzzer-sys's own catch_unwind, which aborts and saves the input. Checked in a container: the PDF case passes in 8 ms, 60 s a target finds nothing. PLAN lists the two findings.
7 lines
129 B
Rust
7 lines
129 B
Rust
#![no_main]
|
|
|
|
libfuzzer_sys::fuzz_target!(
|
|
init: visa::fuzzing::init(),
|
|
|data: &[u8]| visa::fuzzing::signed_copy(data)
|
|
);
|