Skip to content

Commit

Permalink
Fix checksum fuzzing target
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 authored and folkertdev committed Oct 14, 2024
1 parent b5461e9 commit 0ae564c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions fuzz/fuzz_targets/checksum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,6 @@ fuzz_target!(|input: (Vec<u8>, u32)| {
assert_eq!(expected, actual);
}

{
let expected = {
let mut h = crc32fast::Hasher::new_with_initial(0);
h.update(&input[..]);
h.finalize()
};

let mut buf = [0; 1 << 16];
let mut dst = zlib_rs::read_buf::ReadBuf::new(&mut buf[..input.len()]);

let actual = zlib_rs::crc32::crc32_copy(&mut dst, input.as_slice());

assert_eq!(expected, actual);

assert_eq!(input, dst.filled());
}

{
use zlib_rs::{crc32, crc32_combine};

Expand Down

0 comments on commit 0ae564c

Please sign in to comment.