MCPcopy Create free account
hub / github.com/PLSysSec/wave / check_first_null

Function check_first_null

tools/fuzz-gen/out.rs:760–775  ·  view source on GitHub ↗
(vec_buf: Vec<u8>, start: usize, offset: usize, len: usize)

Source from the content-addressed store, hash-verified

758}
759#[quickcheck_macros::quickcheck]
760fn check_first_null(vec_buf: Vec<u8>, start: usize, offset: usize, len: usize) -> TestResult {
761 init();
762 let buf = &vec_buf;
763 if !(len >= offset) {
764 return TestResult::discard();
765 }
766 if !(buf.len() >= start + len) {
767 return TestResult::discard();
768 }
769 let len_old = len;
770 let result = first_null(buf, start, offset, len);
771 if !(result < len_old) {
772 return TestResult::failed();
773 }
774 TestResult::passed()
775}
776#[quickcheck_macros::quickcheck]
777fn check_push_dirent_name(
778 mut vec_out_buf: Vec<u8>,

Callers

nothing calls this directly

Calls 3

initFunction · 0.85
first_nullFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected