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

Function check_os_pwrite

tools/fuzz-gen/out.rs:51–62  ·  view source on GitHub ↗
(fd: usize, vec_buf: Vec<u8>, cnt: usize, offset: usize)

Source from the content-addressed store, hash-verified

49}
50#[quickcheck_macros::quickcheck]
51fn check_os_pwrite(fd: usize, vec_buf: Vec<u8>, cnt: usize, offset: usize) -> TestResult {
52 init();
53 let buf = &vec_buf[..];
54 if !(buf.len() >= cnt) {
55 return TestResult::discard();
56 }
57 let result = os_pwrite(fd, buf, cnt, offset);
58 if !(true) {
59 return TestResult::failed();
60 }
61 TestResult::passed()
62}
63#[quickcheck_macros::quickcheck]
64fn check_os_advise(fd: usize, offset: i64, len: i64, advice: i32) -> TestResult {
65 init();

Callers

nothing calls this directly

Calls 2

initFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected