Skip to content

compress/flate: Writer with a preset dictionary emits the dictionary into the output stream [1.27 backport] #81233

Description

@gopherbot

@FZambia requested issue #80538 to be considered for backport to the next 1.27 minor release.

@gopherbot Please backport to go1.27. This causes silent output corruption (or a spurious checksum error with zlib) for preset-dictionary flate/zlib writers at compression level ≥2 whenever the input doesn't compress well enough to beat a raw stored block — a data-integrity issue, not just a compression-ratio regression.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CherryPickCandidateUsed during the release process for point releases

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions