Skip to content

fix: return correct offset in SeekableTake::seek#342

Merged
Pr0methean merged 10 commits into
zip-rs:masterfrom
cfircohen:cfir/fix_file_seek
May 14, 2025
Merged

fix: return correct offset in SeekableTake::seek#342
Pr0methean merged 10 commits into
zip-rs:masterfrom
cfircohen:cfir/fix_file_seek

Conversation

@cfircohen

Copy link
Copy Markdown
Contributor

SeekableTake has a window to an inner Reader.

It should return the offset relative to this window, and not the absolute offset relative to the entire reader.

SeekableTake has a window to an inner Reader.

It should return the offset relative to this window,
and not the absolute offset relative to the entire reader.

Signed-off-by: Cfir Cohen <cfir@wiz.io>
@Pr0methean Pr0methean enabled auto-merge May 12, 2025 22:32
Pr0methean and others added 3 commits May 12, 2025 15:58
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
@Pr0methean Pr0methean added this to the 3.0.0 milestone May 13, 2025
@Pr0methean Pr0methean added this pull request to the merge queue May 14, 2025
Merged via the queue into zip-rs:master with commit 260fa28 May 14, 2025
62 of 71 checks passed
cosmicexplorer pushed a commit to cosmicexplorer/zip2 that referenced this pull request Sep 30, 2025
* fix: return correct offset in SeekableTake::seek

SeekableTake has a window to an inner Reader.

It should return the offset relative to this window,
and not the absolute offset relative to the entire reader.

Signed-off-by: Cfir Cohen <cfir@wiz.io>

* chore!: Drop deprecated `deflate-miniz` feature flag

* chore: Temporarily add back deflate-miniz

Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>

* chore: Temporarily add back proc-macro2 dep

---------

Signed-off-by: Cfir Cohen <cfir@wiz.io>
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
Co-authored-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
Co-authored-by: hennickc <hennickc@amazon.com>
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