Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LzmaError(\"LZ distance 116 is beyond output size 0\") in zip2 crate #114

Open
Niedzwiedzw opened this issue Jan 5, 2025 · 1 comment
Open

Comments

@Niedzwiedzw
Copy link

zip-rs/zip2#275 I have done some debugging and this happens in lzma-rs so I figured I'll cross post it here

@Niedzwiedzw
Copy link
Author

✦ ❯ zipinfo -v  "./downloads/The Forgotten City - Delayed Start-56958-1-00-1634018441.zip"
Archive:  ./downloads/The Forgotten City - Delayed Start-56958-1-00-1634018441.zip
There is no zipfile comment.

End-of-central-directory record:
-------------------------------

  Zip archive file size:                       550 (0000000000000226h)
  Actual end-cent-dir record offset:           528 (0000000000000210h)
  Expected end-cent-dir record offset:         528 (0000000000000210h)
  (based on the length of the central directory and its expected offset)

  This zipfile constitutes the sole disk of a single-part archive; its
  central directory contains 2 entries.
  The central directory is 208 (00000000000000D0h) bytes long,
  and its (expected) offset in bytes from the beginning of the zipfile
  is 320 (0000000000000140h).


Central directory entry #1:
---------------------------

  Data/

  offset of local header from start of archive:   0
                                                  (0000000000000000h) bytes
  file system or operating system of origin:      MS-DOS, OS/2 or NT FAT
  version of encoding software:                   6.3
  minimum file system compatibility required:     MS-DOS, OS/2 or NT FAT
  minimum software version required to extract:   2.0
  compression method:                             none (stored)
  file security status:                           not encrypted
  extended local header:                          no
  file last modified on (DOS date/time):          2021 Oct 12 01:56:48
  32-bit CRC value (hex):                         00000000
  compressed size:                                0 bytes
  uncompressed size:                              0 bytes
  length of filename:                             5 characters
  length of extra field:                          36 bytes
  length of file comment:                         0 characters
  disk number on which file begins:               disk 1
  apparent file type:                             binary
  non-MSDOS external file attributes:             000000 hex
  MS-DOS file attributes (10 hex):                dir

  The central-directory extra field contains:
  - A subfield with ID 0x000a (PKWARE Win32) and 32 data bytes.  The first
    20 are:   00 00 00 00 01 00 18 00 d2 84 d8 f0 2d bf d7 01 d2 84 d8 f0.

  There is no file comment.

Central directory entry #2:
---------------------------

  There are an extra -36 bytes preceding this file.

  Data/Forgotten City - Delayed Start.esp

  offset of local header from start of archive:   35
                                                  (0000000000000023h) bytes
  file system or operating system of origin:      MS-DOS, OS/2 or NT FAT
  version of encoding software:                   6.3
  minimum file system compatibility required:     MS-DOS, OS/2 or NT FAT
  minimum software version required to extract:   6.3
  compression method:                             LZMA-ed
  file security status:                           not encrypted
  extended local header:                          no
  file last modified on (DOS date/time):          2021 Oct 12 01:39:12
  32-bit CRC value (hex):                         b351956d
  compressed size:                                216 bytes
  uncompressed size:                              372 bytes
  length of filename:                             39 characters
  length of extra field:                          36 bytes
  length of file comment:                         0 characters
  disk number on which file begins:               disk 1
  apparent file type:                             binary
  non-MSDOS external file attributes:             000000 hex
  MS-DOS file attributes (20 hex):                arc

  The central-directory extra field contains:
  - A subfield with ID 0x000a (PKWARE Win32) and 32 data bytes.  The first
    20 are:   00 00 00 00 01 00 18 00 42 e8 3a 7b 2b bf d7 01 f8 3a ca ed.

  There is no file comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant