8000 lzma data maybe don't have LZMA_STREAM_END flag. · Issue #233 · zlib-ng/minizip-ng · GitHub
[go: up one dir, main page]

Skip to content

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

Closed

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

Activity

  1. xwxbug commented on Feb 6, 2018

    @xwxbug
    Author

    mz_stream_lzma_read return error(0~0xb) as "file stream readed".

  2. xwxbug commented on Feb 6, 2018

    @xwxbug
    Author

    demo here: unpack with 7zip is ok.

    fs3.test.zip

  3. added a commit that references this issue on Feb 11, 2018
    55bcdaf
  4. added a commit that references this issue on Mar 15, 2018
    672dc83
  5. added
    fixedIssue or bug has been fixed
    lzmaXZ compression format
    on Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      0