Skip to content

PJA 0.9.8

Choose a tag to compare

@github-actions github-actions released this 08 Nov 04:47
· 17 commits to main since this release

A safer heap for the Windows libraries.

  • Windows libraries: libpja (the 7-Zip codec), the zpaq-std plugin and every Windows DLL now keep 16 bytes after each memory block. FreePascal's 32-bit code can read 2 bytes past the end of an array of 16-bit values; FreePascal's own heap always has room there, but the libraries use the process heap, which may end a block exactly where the memory ends. On Windows XP a 32-bit library built the same way (PPA's) failed now and then with "Data Error" in 7-Zip. PJA's 0.9.7 library did not fail in the same test (8 of 8 extractions in 7-Zip on XP), and 0.9.8's does not either; the fix closes the gap before it can show.
  • Nothing else changes: the same .pja files, streams, and the 31 zpaq-std codecs with their ZPAQL. The 7-Zip plugin reports 0.98.
  • CI now keeps each Windows build's binaries (pja.exe, the plugin, libpja), to test them in a VM before a release.
  • README: shorter, with the details moved to the wiki; the wiki is up to date with 0.9.7 (every command, JPEG 2000, zpaq-std 2.6.0's -sa).

Downloads

platform the pja command the zpaq-std plugin libpja (C library, 7-Zip plugin)
Linux x86-64 pja-0.9.8-linux-x86_64.tar.gz pja-0.9.8-zpaqstd-plugin-linux-x86_64.tar.gz pja-0.9.8-lib-linux-x86_64.tar.gz
Linux x86 (32-bit) pja-0.9.8-linux-x86.tar.gz pja-0.9.8-zpaqstd-plugin-linux-x86.tar.gz pja-0.9.8-lib-linux-x86.tar.gz
Linux arm64 pja-0.9.8-linux-arm64.tar.gz pja-0.9.8-zpaqstd-plugin-linux-arm64.tar.gz pja-0.9.8-lib-linux-arm64.tar.gz
macOS arm64 pja-0.9.8-macos-arm64.tar.gz pja-0.9.8-zpaqstd-plugin-macos-arm64.tar.gz pja-0.9.8-lib-macos-arm64.tar.gz
Windows x64 (7 and later) pja-0.9.8-windows-x64.zip pja-0.9.8-zpaqstd-plugin-windows-x64.zip pja-0.9.8-lib-windows-x64.zip
Windows x86 (XP and later) pja-0.9.8-windows-x86.zip pja-0.9.8-zpaqstd-plugin-windows-x86.zip pja-0.9.8-lib-windows-x86.zip

pja-0.9.8-zpaqstd.tar.gz holds the plugin's sources as zpaq-std vendors them, with VENDOR.md. CI builds and checks every binary on its own platform (.github/workflows/release.yml); libpja is checked with its C test and, on Linux x86-64, through a real 7-Zip. SHA256SUMS has the checksums. The Linux builds need glibc 2.34 or later. The macOS ones are not signed: run xattr -d com.apple.quarantine after unpacking.