can't extract Microsoft Compound files in version 26.01, works in 25.00

Open
#240 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp
Domain
backend

Research direction

Compare how 7-Zip 25.00 and 26.01 list the attached sample.zip, then trace the Compound archive handler and its header validation. The report gives a reproducible regression but names no source file or test, so first locate the Compound handler and relevant tests. Done means 26.01 can list and extract the sample as 25.00 does.

Written by the indexing model from the issue text.

Description

Here's the output of 7z.exe l <file>
25.00:

> .\7z.exe l "<file>"

7-Zip 25.00 (x64) : Copyright (c) 1999-2025 Igor Pavlov : 2025-07-05

Scanning the drive for archives:
1 file, 1024000 bytes (1000 KiB)

Listing archive: <file>

--
Path = <file>
Type = Compound
Physical Size = 1024000
Extension = compound
Cluster Size = 512
Sector Size = 64

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
1994-10-08 03:22:14 D....                            TITLE
                    .....            4           64  Version
1994-10-08 03:22:14 D....                            TITLE\MSBSolar
                    .....           29           64  TITLE\ViewInfo
1994-10-08 03:22:11 D....                            TITLE\MSBSolar\Jupiter
1994-10-08 03:22:11 D....                            TITLE\MSBSolar\Moon
1994-10-08 03:22:12 D....                            TITLE\MSBSolar\ps5
1994-10-08 03:22:12 D....                            TITLE\MSBSolar\ps2
1994-10-08 03:22:12 D....                            TITLE\MSBSolar\ps1
                    .....          106          128  TITLE\MSBSolar\ps1\LyoActLists
                    .....         4468         4608  TITLE\MSBSolar\ps1\ElemData
                    .....          533          576  TITLE\MSBSolar\ps1\LyoElemInfo
1994-10-08 03:22:12 D....                            TITLE\MSBSolar\ps3
<...>
------------------- ----- ------------ ------------  ------------------------
1994-10-08 03:22:14             973006       985536  134 files, 46 folders

26.01:

> .\7z.exe l "<file>"

7-Zip 26.01 (x64) : Copyright (c) 1999-2026 Igor Pavlov : 2026-04-27

Scanning the drive for archives:
1 file, 1024000 bytes (1000 KiB)

Listing archive: <file>


ERROR: <file> : <file>
Open ERROR: Cannot open the file as [Compound] archive


ERRORS:
Headers Error
WARNINGS:
There are data after the end of archive


Errors: 1

sample.zip

Dominant language
C++
Stars
4.6k
Forks
519
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ip7z/7zip

All issues in ip7z/7zip

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.