Skip to content

Fix offset error in _PaddedFile caused by concatenated gzips. #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 29, 2021

Conversation

rhpvorderman
Copy link
Collaborator

This does not need to be fixed upstream in Cpython's gzip.py.
The error is due to isal_zlib's bitbuffer and thus not applicable to cpython.

Fixes #60

Checklist

  • Pull request details were added to CHANGELOG.rst

Due to the bitbuffer the prepended data can be bigger than the original buffer. This was not expected by the _PaddedFile object
@codecov
Copy link

codecov bot commented Mar 29, 2021

Codecov Report

Merging #61 (ec4e155) into develop (57a5f15) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #61      +/-   ##
===========================================
+ Coverage    99.50%   99.53%   +0.02%     
===========================================
  Files            2        2              
  Lines          204      214      +10     
===========================================
+ Hits           203      213      +10     
  Misses           1        1              
Impacted Files Coverage Δ
src/isal/igzip.py 99.50% <100.00%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 57a5f15...ec4e155. Read the comment docs.

@rhpvorderman rhpvorderman merged commit b37e5db into develop Mar 29, 2021
@rhpvorderman rhpvorderman deleted the fixbug branch March 29, 2021 09:22
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.

Reading gzip files generates a CRC check failed error (version >= 0.7.0)
1 participant