Skip to content

Redundant buffer size in lh_new_decoder.c #36

@el89

Description

@el89

I found that ringbuf is twice larger than really needed.

Say, for lh5 the dictionary size is 8KiB. Given HISTORY_BITS=14, the maximum value returned by read_offset_code function is 8191, thus the max offset for a copy command is 8192. However, lh_new_decoder.c creates ringbuf of size 1<<HISTORY_BITS, that is twice larger than needed.

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