Skip to content

Fix wrong assumption in Tar_lwt_unix.run - #153

Merged
reynir merged 1 commit into
mainfrom
fixes
Sep 20, 2024
Merged

Fix wrong assumption in Tar_lwt_unix.run#153
reynir merged 1 commit into
mainfrom
fixes

Conversation

@reynir

@reynir reynir commented Sep 20, 2024

Copy link
Copy Markdown
Member

Really_read is not always tar header length

Found investigating #152 reported by @jonahbeckford

Really_read is not always tar header length
@hannesm

hannesm commented Sep 20, 2024

Copy link
Copy Markdown
Member

looks good to me, thanks for investigating

@reynir
reynir merged commit 0ec5b34 into main Sep 20, 2024
@reynir
reynir deleted the fixes branch September 20, 2024 10:50
avsm pushed a commit to ocaml/opam-repository that referenced this pull request Sep 20, 2024
CHANGES:

- Fix a wrong assumption in `Tar_lwt_unix.run` for `Tar.Really_read _` that one
  tar block was always read. This meant that using `Tar.Really_read` with a
  size different from 512 would fail. (Reported by @jonahbeckford, review by @hannesm, @reynir, mirage/ocaml-tar#153)
- Document better the actual behavior of `Tar_unix.extract` and
  `Tar_lwt_unix.extract` (@reynir, mirage/ocaml-tar#155)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants