Skip to content

Bad output when compressing empty array, with Compression::none() #474

Open
@xNxExOx

Description

@xNxExOx

I think this test example is enough to demonstrate the issue: Rust Playground

You can uncomment dbg!(&compressed_table); to see the huge result, that can not be decompressed afterwards.

Priority low, I resolved the issue on my side by using flate2::Compression::default() for empty tables, which works fine.

This is really weird edge case, so no need to fix it any time soon, because not many people is compressing empty stuff, and even less does so with flate2::Compression::none().

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