Skip to content

lzma data maybe don't have LZMA_STREAM_END flag. #233

@xwxbug

Description

@xwxbug

you may use file_info->uncompressed_size to limit avail_out.

read = mz_zip_entry_read(handle, buf, sizeof(buf));
->int32_t mz_stream_lzma_read(void *stream, void *buf, int32_t size)

->read = mz_stream_read(lzma->stream.base, lzma->buffer, bytes_to_read);
-> err = lzma_code(&lzma->lstream, LZMA_RUN);
err is 9 or 0xb

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedIssue or bug has been fixedlzmaXZ compression format

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions