Skip to content

Decompression bug: padding bits not tracked, causing extra characters in output #1

@palguna26

Description

@palguna26

The compression logic pads the last byte with zero bits, but the decompression logic does not know how many bits are actually valid. As a result, padding bits are also decoded, which can produce extra (garbage) characters at the end of each decompressed chunk.

This leads to corrupted output where the decompressed file does not exactly match the original input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions