mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-04-24 15:09:43 +00:00
[PR #878] [MERGED] Fix XZBlock padding calculation when its stream's starting position % 4 != 0 #1299
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/adamhathcock/sharpcompress/pull/878
Author: @Morilli
Created: 10/29/2024
Status: ✅ Merged
Merged: 12/20/2024
Merged by: @adamhathcock
Base:
master← Head:fix-xzblock-padding📝 Commits (4)
881d275Add failing test9b0e0eeFix padding calculation when initial position % 4 != 0f51bdd5expose Position getter in ForwardOnlyStream10cc270Merge branch 'master' into fix-xzblock-padding📊 Changes
3 files changed (+19 additions, -4 deletions)
View changed files
📝
src/SharpCompress/Compressors/Xz/XZBlock.cs(+3 -3)📝
tests/SharpCompress.Test/Mocks/ForwardOnlyStream.cs(+1 -1)📝
tests/SharpCompress.Test/Xz/XZBlockTests.cs(+15 -0)📄 Description
I've also removed the unused
_bytesReadfield that seems to have last been touched in #300.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.