Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Inflate with window bits 47 doesn't correctly inflate #34

@stephentoub

Description

@stephentoub

https://github.com/dotnet/runtime is using this implementation of zlib.

When trying to switch its ZLibStream's decompression to specify window bits == 47 instead of window bits == 15:
stephentoub/runtime@a11d948
lots of tests start to fail when trying to roundtrip zlib data. These failures only occur on Windows where this implementation of zlib is being used; on Linux where the distro's zlib is being used, all tests pass successfully.

The failure appears to stem from the checksum computation at the end of the input, failing at
https://github.com/jtkukunas/zlib/blob/bf29715726fe22390b59b2cbf9c935179ef49aed/inflate.c#L1273-L1274

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions