Package Details: 7-zip 23.01-1

Git Clone URL: https://aur.archlinux.org/7-zip.git (read-only, click to copy)
Package Base: 7-zip
Description: File archiver with a high compression ratio
Upstream URL: https://7-zip.org
Keywords: 7-zip 7z 7zip archiver compressor p7zip
Licenses: BSD, LGPL, custom:unRAR
Submitter: post-factum
Maintainer: post-factum
Last Packager: post-factum
Votes: 63
Popularity: 0.84
First Submitted: 2021-03-11 21:16 (UTC)
Last Updated: 2023-06-21 07:56 (UTC)

Dependencies (2)

Required by (4)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

post-factum commented on 2022-06-19 19:15 (UTC)

The workaround with -Wp,-U_FORTIFY_SOURCE doesn't seem to work for me any more, so if there are better ideas on how to enable RELRO and make checksec happy — let me know.

post-factum commented on 2022-05-15 21:19 (UTC)

Added -Wp,-U_FORTIFY_SOURCE to make RELRO work.

katt commented on 2022-05-15 15:36 (UTC)

Can confirm it still compiles and successfully extracts files.

post-factum commented on 2022-05-15 13:39 (UTC)

As an experiment, I've made an attempt to build 7-zip using meson in -5.

Let me know if it works for you all.

post-factum commented on 2022-05-12 21:35 (UTC)

Applied more hardening, but noticed that there's no RELRO:

RELRO           STACK CANARY      NX            PIE             RPATH      RUNPATH      Symbols         FORTIFY Fortified       Fortifiable     FILE
No RELRO        Canary found      NX enabled    PIE enabled     No RPATH   No RUNPATH   No Symbols        Yes   6               16              /usr/bin/7zz

No idea what else it needs other than -z relro -z now.

katt commented on 2022-05-12 21:01 (UTC)

@post-factum Seems to work great, thanks for the fast fix!

post-factum commented on 2022-05-12 19:18 (UTC)

I've also added extra hardening, please let me know if it breaks anything.

post-factum commented on 2022-05-12 19:02 (UTC)

@katt should be fixed in -2.

katt commented on 2022-05-12 15:30 (UTC)

Unable to build, probably due to GCC 12:

../../../../C/LzmaEnc.c: In function 'LzmaEnc_CodeOneMemBlock':
../../../../C/LzmaEnc.c:2996:19: error: storing the address of local variable 'outStream' in '*p.rc.outStream' [-Werror=dangling-pointer=]
 2996 |   p->rc.outStream = &outStream.vt;
      |   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
../../../../C/LzmaEnc.c:2979:28: note: 'outStream' declared here
 2979 |   CLzmaEnc_SeqOutStreamBuf outStream;
      |                            ^~~~~~~~~
../../../../C/LzmaEnc.c:2979:28: note: 'pp' declared here
cc1: all warnings being treated as errors
make: *** [../../7zip_gcc.mak:1077: b/g_x64/LzmaEnc.o] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
    Aborting...

Hanabishi commented on 2022-01-07 09:58 (UTC) (edited on 2022-03-25 22:09 (UTC) by Hanabishi)

I created 7-zip-full package, attempting to actually replace p7zip.