sharpcompress icon indicating copy to clipboard operation
sharpcompress copied to clipboard

Padding calculation wrong when starting position % 4 != 0

Open 5andr0 opened this issue 5 months ago • 1 comments

private void SkipPadding()
    {
        var bytes = (int)(BaseStream.Position % 4);

I have a BaseStream where the xz file doesn't start at position 0. If this position is not dividable by 4, then the padding calculation is wrong.
Please fix this by calculating the position from the starting position. Thanks

5andr0 avatar Sep 25 '24 16:09 5andr0