Skip to content

Commit

Permalink
fix skippable frame support in the provided binary, did not account f…
Browse files Browse the repository at this point in the history
…or the 8 bytes of header while tracking progress
  • Loading branch information
KillingSpark committed Mar 25, 2024
1 parent abc01fa commit 4bf205a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bin/zstd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ fn main() {
skip_size,
))) => {
eprintln!("Found a skippable frame with magic number: {magic_num} and size: {skip_size}");
tracker.file_pos = f.stream_position().unwrap();
tracker.file_pos += skip_size as u64;
f.seek(SeekFrom::Current(skip_size as i64)).unwrap();
continue;
Expand Down

0 comments on commit 4bf205a

Please sign in to comment.