brewery

beer

public

A terminal worth pouring time into

Star0tarball
clone
ssh://git@git.notashelf.dev:33/notashelf/beer.git
fuzz/fuzz_targets/file_uri.rsRust10 lines337 B
1
#![no_main]
2
3
use libfuzzer_sys::fuzz_target;
4
5
// OSC 7 delivers a percent-encoded `file://` URI from the shell; parsing it
6
// (which drives percent_decode) must be panic-free on arbitrary bytes.
7
fuzz_target!(|data: &[u8]| {
8
  let _ = beer_protocols::codec::file_uri_path(data);
9
  let _ = beer_protocols::codec::percent_decode(data);
10
});