Debian Patches

Status for 7zip/26.00+dfsg1-2

Patch Description Author Forwarded Bugs Origin Last update
0001-Accept-Debian-build-flags.patch Accept Debian build flags YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2021-05-09
0002-Use-getcwd-3-POSIX-extension-to-avoid-PATH_MAX-macro.patch Use getcwd(3) POSIX extension to avoid PATH_MAX macro

This fix helps GNU Hurd.
YOKOTA Hiroshi <yokota.hgml@gmail.com> yes 2021-09-15
0003-Disable-local-echo-display-when-in-input-passwords-C.patch Disable local echo display when in input passwords (Closes: #1006238) YOKOTA Hiroshi <yokota.hgml@gmail.com> yes debian 2022-02-22
0004-Use-system-locale-to-select-codepage-for-legacy-zip-.patch Use system locale to select codepage for legacy zip archives

Fixes https://sourceforge.net/p/sevenzip/bugs/2473/
Ivan Sorokin <unxed@mail.ru> not-needed https://sourceforge.net/p/sevenzip/bugs/2473/ 2024-05-22
0005-Add-note-for-unexpected-recursive-operations-behavio.patch Add note for unexpected recursive operations behavior to usage text YOKOTA Hiroshi <yokota.hgml@gmail.com> yes debian 2025-01-03
0006-Use-c-flags-for-asmc.patch Use "-c" flags for asmc

No needs to build executable files while in assembling.
YOKOTA Hiroshi <yokota.hgml@gmail.com> yes upstream 2024-12-26
0007-Add-fpic-for-Asmc-options.patch Add "-fpic" for Asmc options

Asmc author suggests this option:
* https://github.com/nidud/asmc/issues/15#issuecomment-2554348661
* https://github.com/nidud/asmc/issues/15#issuecomment-2554659070
YOKOTA Hiroshi <yokota.hgml@gmail.com> yes upstream 2024-12-27
0008-Fix-Globally-suppress-GCC-16-Warray-bounds-false-pos.patch Fix: Globally suppress GCC 16+ -Warray-bounds false positives (Closes: #1132057)


[ Description ]
Switching from local pragma fixes to global suppression for the
'-Warray-bounds' warning on GCC 16 and newer.

[ Technical Visualization ]
The following diagram illustrates why the compiler's static analysis
fails to correctly map the object boundaries in 7-Zip's architecture:

1. ALLOCATION:
An object (e.g., CHandler) is allocated with a fixed size (N bytes).

2. MULTIPLE INHERITANCE / COM CASTING:
The object inherits from multiple interfaces. When accessed via a
specific interface pointer, the "vtable" and "member offsets"
shift relative to the base pointer.

3. OPTIMIZER MISINTERPRETATION:
+-------------------------------------------------------+
| [VTable A] | [VTable B] | [_m_RefCount] | [Data...] |
+-------------------------------------------------------+
^ ^ ^
| | |
| | +-- GCC Flags: "Access here is out of bounds!"
| | (Based on an incorrect inferred size)
| +-- Interface B Pointer
+-- Interface A Pointer / Original Object

[ Reason for Global Suppression ]
While local pragmas (push/pop) are generally preferred, the recurring
nature of this error across various modules (HandlerCont.cpp,
RarHandler.cpp, FilterCoder.h, etc.) indicates a systemic conflict
between 7-Zip's COM-like architecture and modern GCC's devirtualization
logic.

Globally ignoring this specific warning for GCC 16+ is the most
maintainable solution to ensure build stability without refactoring
the entire interface system.
YOKOTA Hiroshi <yokota.hgml@gmail.com> yes 2026-03-29

All known versions for source package '7zip'

Links