DEB extraction silently omits control metadata and debian-binary
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with CPP/7zip/Archive/ArHandler.cpp, focusing on the DEB handler’s _items.DeleteFrontal(1) and _mainSubfile behavior. Reproduce with a valid .deb containing debian-binary, control.tar.xz, and data.tar.xz; compare normal browsing and extraction with Open Inside *. Done means default browsing and extraction preserve all outer members, including debian-binary, or a discoverable option provides that behavior.
由索引模型根据 Issue 内容生成。
描述
A .deb archive contains more than its installation payload. Normal opening/extraction in 7-Zip automatically descends into data.tar., hiding control.tar. from the normal view and omitting it from default extraction. Please reconsider this as an archive extraction completeness/correctness issue.
Related historical report: https://sourceforge.net/p/sevenzip/bugs/1472/ (created 2015, status open-wont-fix, last updated 2019).
Reproduction
- Use a valid .deb containing debian-binary, control.tar.xz, and data.tar.xz.
- Open it normally in 7-Zip File Manager on Windows.
- Compare normal browsing/extraction with File > Open Inside * and extraction from the outer view.
In the observed Windows 11 session, normal opening shows only data.tar; Open Inside * exposes control.tar.xz and data.tar.xz. Default extraction also omits control metadata, as observed by the reporter. The exact installed 7-Zip version has not yet been recorded; this is not a claim of testing the latest release.
Expected behavior
Default browsing and extraction should expose and preserve ALL outer archive members, including control.tar.* and debian-binary. Payload-only extraction can be a separately labeled convenience operation.
Impact
control.tar.* contains package metadata and may contain maintainer scripts. Omitting it prevents complete inspection and produces an incomplete representation of the package without an explicit warning. An archiver should not silently decide that archive members are unimportant.
Two distinct source behaviors
https://github.com/ip7z/7zip/blob/main/CPP/7zip/Archive/ArHandler.cpp
The DEB handler removes debian-binary from its item list with _items.DeleteFrontal(1), and sets data.tar.* as _mainSubfile, exposed via kpidMainSubfile. Thus automatic payload descent and suppression of debian-binary are separate problems. Open Inside * / -t* restores access to control.tar.*, but does not restore debian-binary.
Requested resolution
Please make complete outer-archive browsing/extraction the default, or provide a persistent, discoverable option covering both File Manager opening and Explorer extraction commands. Complete/raw extraction must include debian-binary as well. Keep payload-only extraction as an explicitly labeled operation if desired.
Debian format specification: https://manpages.debian.org/unstable/dpkg-dev/deb.5.en.html
- 主要语言
- C++
- 星标
- 4.6k
- 派生
- 519
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ip7z/7zip 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
相似的 Issue
-
arith ascend bug
难度 2/5 1-3 小时 新手友好度 74/100
tile-ai/tilelang#5173 · 2 条评论 · 1 个 reaction ·
维护者通常 3 天内回复
-
build comp-keeper
难度 2/5 1-3 小时 新手友好度 76/100
ClickHouse/ClickHouse#137202 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
bug-unconfirmed
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复