Skip to content

wrong compressedBuffer size when compressing #29

@chaosct

Description

@chaosct

When compressing, compressedBuffer should be resized to LZ4_compressBound(inputSize), and not inputSize, as with very random data compressedBuffer may end being larger than the uncompressed data.

compressedBuffer.resize(inputSize);

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