]> git.ipfire.org Git - thirdparty/libarchive.git/commit
7zip reader: add support for POWERPC filter for non-LZMA compressors (#2459)
authorMostyn Bramley-Moore <mostyn@antipode.se>
Sat, 28 Dec 2024 23:36:01 +0000 (00:36 +0100)
committerGitHub <noreply@github.com>
Sat, 28 Dec 2024 23:36:01 +0000 (15:36 -0800)
commit28cb5064d8dcd256237a736d7d6cbf7873de6671
treee13de8411c32dcbf53475bff737f6b86a5fdf205
parenta659a44a8511c9a08b28e8d7953382dde0c2c657
7zip reader: add support for POWERPC filter for non-LZMA compressors (#2459)

This new test archive contains a C hello world executable built like so
on a ubuntu 24.04 machine:
```
#include <stdio.h>

int main(int argc, char *argv[]) {
  printf("hello, world\n");
  return 0;
}
```

`powerpc-linux-gnu-gcc hw.c -o hw-powerpc -Wall`

The test archive that contains this executable was created like so,
using 7-Zip 24.08:
`7zz a -t7z -m0=deflate -mf=ppc
libarchive/test/test_read_format_7zip_deflate_powerpc.7z hw-powerpc`

This test fails in the first commit in this PR, and passes in the second
commit.
Makefile.am
libarchive/archive_read_support_format_7zip.c
libarchive/test/test_read_format_7zip.c
libarchive/test/test_read_format_7zip_deflate_powerpc.7z.uu [new file with mode: 0644]