Skip to content

Don't use chunkunroll for inflateBack#1773

Merged
Dead2 merged 1 commit intozlib-ng:developfrom
nmoinvaz:fixes/infback-safety
Sep 11, 2024
Merged

Don't use chunkunroll for inflateBack#1773
Dead2 merged 1 commit intozlib-ng:developfrom
nmoinvaz:fixes/infback-safety

Conversation

@nmoinvaz
Copy link
Copy Markdown
Member

@nmoinvaz nmoinvaz commented Sep 9, 2024

If the output buffer and the window buffer are the same memory allocation, we cannot make the assumptions that chunkunroll does, that it is okay to overwrite the output buffer.

Fixes #1772

If the output buffer and the window buffer are the same
memory allocation, we cannot make the assumptions that chunkunroll
does, that it is okay to overwrite the output buffer.
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.92%. Comparing base (e4fb380) to head (af013cf).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1773      +/-   ##
===========================================
- Coverage    83.33%   82.92%   -0.41%     
===========================================
  Files          132      135       +3     
  Lines        10018    10306     +288     
  Branches      2687     2702      +15     
===========================================
+ Hits          8348     8546     +198     
- Misses        1009     1066      +57     
- Partials       661      694      +33     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Member

@Dead2 Dead2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@giuseppe
Copy link
Copy Markdown

thanks, tested locally and it solves the issue I've reported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inflate_fast_avx2 causes corrupted -- crc32 mismatch with pigz

3 participants