onekey-sec/unblob

mmap error during multi file calculation for multi-gzip

Closed this issue · 0 comments

When extracting this file http://ixp.mikrotik.co.id/download/archive/6.18/all_packages-mipsbe-6.18.zip I get the following error:

2024-02-25 03:31.49 [warning  ] Unhandled Exception during multi file calculation handler=multi-gzip path=all_packages-mipsbe-6.18.zip_extract/system-6.18-mipsbe.npk_extract/4096-5779456.squashfs_v4_le_extract/home/web/webfig/index.html.gz.nocache pid=2582003 severity=<Severity.ERROR: 'ERROR'>
Traceback (most recent call last):
  File "/unblob/unblob/processing.py", line 377, in _calculate_multifile
    return dir_handler.calculate_multifile(path)
  File "/unblob/unblob/handlers/compression/gzip.py", line 179, in calculate_multifile
    if self.is_valid_gzip(file):
  File "/unblob/unblob/handlers/compression/gzip.py", line 159, in is_valid_gzip
    with File.from_path(path) as f:
  File "/unblob/unblob/file_utils.py", line 58, in from_path
    m = cls(base_file.fileno(), 0, access=access)
ValueError: cannot mmap an empty file