Skip to content

Releases

XZ Utils 5.8.5 (stable)

Choose a tag to compare

@Larhzu Larhzu released this 03 Dec 18:00
v5.8.5
4ff438e

IMPORTANT: This includes security fixes. These and a few other fixes have also been committed to the old stable branches (v5.2, v5.4, and v5.6) in the xz Git repository. Those fixes are marked below. No new 5.2.x, 5.4.x, or 5.6.x releases will be made.

5.8.5 (2026-12-03)

    * liblzma:

        - Fix a data corruption bug in the LZMA2 encoder. The issue was
          found via code analysis; no one has reported actual data
          corruption. Creating a test file to trigger this bug isn't
          straightforward, and at the time of this release, no such
          files are known.

          If the bug is triggered in a debug build, an assertion will
          fail. In non-debug builds, a corrupt file is created. It
          should usually be recoverable if one knows that the corruption
          is due to this bug.

          If the dictionary size is smaller than 64 KiB (uncommon) and
          some extra conditions are met, triggering the bug can result
          in memory reads a few bytes before the beginning of an array.
          In this case, if the encoder doesn't crash, the resulting
          corrupt file won't be recoverable.

          The bug is specific to liblzma; it wasn't inherited from
          LZMA SDK, and XZ for Java has done this detail differently
          from the beginning.

          This is tracked as GHSA-vhhh-g38j-pr8q.
          The bug was reported by Vladimir Kukharenko (GenProof).
          (Also in v5.2, v5.4, and v5.6.)

        - Fix data corruption or deadlock in the x86 BCJ filter when
          the buffer passed to the filter function exceeds 4 GiB and
          contains appropriate input data. Apps, that use smaller
          buffers to process large files, aren't affected. The code
          was revised, and the new code is both simpler and faster.

          This is tracked as GHSA-6237-3fq8-r2hg.
          The bug was reported by Vladimir Kukharenko (GenProof).
          (Also in v5.2, v5.4, and v5.6.)

        - Fix reinitialization bugs in lzma_stream_encoder_mt():

            * Reinitialization with different lzma_mt.block_size could
              result in a buffer overflow. It should crash easily, yet
              this bug wasn't found until now. So it seems that few
              applications can trigger it. For example, xz cannot.

            * If the encoder was reinitialized in some other situation
              than after lzma_code() has returned LZMA_STREAM_END, the
              reinitialized encoder could corrupt data, deadlock, or
              show wrong progress indicator information. In xz this was
              possible after memory allocation failure or I/O error.

          These are tracked as GHSA-jvh7-x64f-69mg.
          The bugs were reported by Mar.
          (Also in v5.2, v5.4, and v5.6.)

        - lzma_alone_decoder() and lzma_raw_decoder() with
          LZMA_FILTER_LZMA1EXT: Fix detection of an optional LZMA
          end marker. Decoding failed with LZMA_DATA_ERROR if all input
          bytes needed to decode the end marker weren't provided in the
          same lzma_code() call. That is, the failure depended how the
          input file was split into chunks by an application.
          (Also in v5.2, v5.4, and v5.6.)

        - lzma_stream_decoder_mt():

            * Fix a double free if a mutex or condition variable
              initialization failed.

            * Fix a mutex and condition variable leak on lzma_end().

            * Fix lzma_memusage() after lzma_code() has returned
              LZMA_MEMLIMIT_ERROR. The reported memory usage requirement
              was too low (usually 32 KiB). Increasing the limit to that
              value with lzma_memlimit_set() incorrectly succeeded, but
              lzma_code() still returned LZMA_MEMLIMIT_ERROR and
              decoding couldn't be continued.
          (Also in v5.4 and v5.6.)

        - Fixes that affect lzma_memusage(), lzma_memlimit_get(), and
          lzma_memlimit_set() when used with specific decoders:

            * lzma_stream_decoder(), lzma_alone_decoder(), and
              lzma_lzip_decoder(): After decoder reinitialization,
              include the still-allocated cached memory from the
              previous decoder instance in the current memory usage.
              lzma_auto_decoder() and lzma_stream_decoder_mt() already
              did this.

            * lzma_auto_decoder(): After decoder reinitialization with
              a different memory usage limit, make lzma_memlimit_get()
              return the current limit, not the previous limit. In
              debug builds, fix a related assertion failure, which also
              occurred with lzma_memusage() and lzma_memlimit_set().

        - lzma_stream_decoder(), lzma_stream_decoder_mt(),
          lzma_alone_decoder(), lzma_auto_decoder(), and
          lzma_lzip_decoder(): On reinitialization, free the old cached
          decoder if its memory usage is higher than the new memory
          usage limit.

        - Set lzma_stream.total_in and .total_out to 0 even if a coder
          initialization fails. This matches the API docs, but it's
          unlikely that anything actually cares about these counters
          after an initialization error.
          (Also in v5.2, v5.4, and v5.6.)

        - lzma_easy_encoder(): If called with an unsupported preset,
          free the previous coder (if any) to avoid a memory leak.
          (Also in v5.2, v5.4, and v5.6.)

        - lzma_easy_encoder_memusage() and lzma_easy_decoder_memusage():
          On error (invalid or unsupported preset), return UINT64_MAX as
          documented instead of UINT32_MAX.
          (Also in v5.2, v5.4, and v5.6.)

        - lzma_get_progress(): Don't crash if no coder is initialized
          in the lzma_stream argument.
          (Also in v5.2, v5.4, and v5.6.)

        - lzma_index_append(): Fix a possible integer overflow if the
          function is called on a concatenated lzma_index (created using
          lzma_index_cat()). It's valid use of the API, but there is no
          known use case where an application might want to do this.
          (Also in v5.2, v5.4, and v5.6.)

        - LZMA/LZMA2 encoder: Silence Valgrind and -fsanitize=memory if
          a preset dictionary is used (a raw encoder only feature).
          A few bytes of uninitialized memory was read, but those bytes
          were eventually ignored, so the code still worked correctly.
          (Also in v5.2, v5.4, and v5.6.)

        - Improve LZMA/LZMA2 encoder speed by prefetching hash table
          entries with __builtin_prefetch(). The benefit depends on
          the computer, input file, and compression settings.

        - Linux: Make lzma_physmem() and lzma_cputhreads() look at
          cgroup v2 memory.max and cpu.max, and use the .max values
          when they are lower than the physical hardware resources.
          This makes it much less likely that OOM killer will send
          SIGKILL to xz (or any other app that uses these functions to
          estimate available resources) when running in a container that
          uses these cgroup v2 limits.

          NOTE: In some distros, one might need to update SELinux
          policies for applications that call lzma_physmem() or
          lzma_cputhreads() because now these functions try to read
          files from the /sys/fs/cgroup tree.

    * xz: Fix EINTR handling in --files and --files0. If reading a
      filename blocked and a progress indicator signal (SIGALRM,
      SIGUSR1, or SIGINFO) or stop signal from a user (SIGTSTP)
      arrived, the rest of the filenames were ignored and xz went
      into an infinite loop.
      (Also in v5.2, v5.4, and v5.6.)

    * xz and xzdec on Linux: Support Landlock ABI version 10.

    * lzmainfo: Open named files in binary mode. This matters on
      Windows. Reading from standard input didn't have this bug.
      (Also in v5.2, v5.4, and v5.6.)

    * xzdiff: Fix "xzdiff foo_z" to decompress foo_z with gzip and
      compare it against uncompressed file "foo".

    * Tests:

        - Fix test_files.sh failure with --disable-xz.

        - Add new test files:
            * file bad-1-powerpc-1.xz (60 bytes)

    * Translations:

        - Add Chinese (simplified), Chinese (traditional), and Latvian
          man page translations.

        - Add Chinese (simplified) and Latvian message translations.

        - Update Spanish message translations.

XZ Utils 5.8.4 (stable)

Choose a tag to compare

@Larhzu Larhzu released this 09 Sep 16:43
v5.8.4
d3e650e

IMPORTANT: This includes a fix for a security issue that affects all XZ Utils versions since 5.0.0. This and a few other fixes have also been committed to the old stable branches (v5.2, v5.4, and v5.6) in the xz Git repository. Those fixes are marked below. No new 5.2.x, 5.4.x, or 5.6.x releases will be made.

5.8.4 (2026-09-09)

    * liblzma:

        - lzma_alone_decoder(), lzma_lzip_decoder(),
          lzma_auto_decoder(), and lzma_microlzma_decoder(): Fix an
          invalid memory access after memory allocation has failed and
          the application reinitializes the existing decoder to decode
          a different file. This bug could at least result in a crash.
          This is tracked as GHSA-5qpq-xqfv-j9pg. CVE number is pending.
          (Also in v5.2, v5.4, and v5.6.)

        - lzma_stream_buffer_decode(): Fix wrong error code and,
          in debug builds, assertion failure. LZMA_BUF_ERROR could
          be returned with truncated inputs while LZMA_DATA_ERROR
          is the correct one in this function.
          (Also in v5.2, v5.4, and v5.6.)

        - Fix a performance issue in the typical use case of
          lzma_index_cat(). Internally liblzma calls it from
          lzma_file_info_decoder(), so that was affected too. The
          problem occurred if the input .xz file was created by
          concatenating a large number of .xz files. A crafted file
          could make "xz --list" very slow or effectively hang.
          Normal decompression doesn't use these functions and
          thus wasn't affected.
          (Also in v5.2, v5.4, and v5.6.)

        - Fix a theoretical integer overflow in lzma_index_cat().
          (Also in v5.2, v5.4, and v5.6.)

        - Fix bogus memory usage report in lzma_index_decoder() when
          the .xz Index is obviously invalid. A huge bogus value could
          cause an integer overflow in lzma_file_info_decoder()'s
          memory usage reporting due to a missing overflow check,
          making lzma_memused() report an incorrect tiny value. This
          bug didn't affect the memory usage limiter in these two
          decoders; only the reporting via lzma_memused() was affected.
          (Also in v5.2, v5.4, and v5.6.)

        - Fix a too low memory usage report in lzma_index_decoder()
          if lzma_memused() is called after a part of the Index has
          already been decoded. The typical use case is to call
          lzma_memused() immediately after LZMA_MEMLIMIT_ERROR,
          which did work correctly.

        - Fix copying of check type in lzma_index_dup(). Calling
          lzma_index_checks() on the duplicated lzma_index returned
          return garbage a result. lzma_index_dup() is rarely used;
          liblzma doesn't use it internally and xz itself doesn't use
          it either.
          (Also in v5.2, v5.4, and v5.6.)

        - lzma_file_info_decoder() and lzma_index_decoder(): Reject
          an obviously-invalid Number of Records field earlier.
          (Partially also in v5.2, v5.4, and v5.6.)

        - Fix a missing synchronization in the threaded .xz decoder. It
          could make lzma_get_progress() return incorrect progress info.
          (Also in v5.4 and v5.6.)

        - Detect certain kinds of corrupt inputs slightly earlier in
          the LZMA2 decoder.

        - ARM64 and LoongArch: Don't use aligned reads on unaligned
          buffers. This makes the code work on strict-align processors
          and fixes a sanitizer error in other cases. (Since 5.7.1alpha)

    * xz:

        - Fix a use-after-free when showing an error message if --files
          or --files0 was specified in the environment variables XZ_OPT
          or XZ_DEFAULTS.
          (Also in v5.2, v5.4, and v5.6.)

        - Fix a use-after-free bug when --verbose is used and
          standard error isn't a terminal. (Since 5.7.1alpha)

        - Make it an error if the totals in "xz --list" exceed the range
          of 64-bit integers.
          (Also in v5.2, v5.4, and v5.6.)

    * xz and xzdec on Linux:

        - Add support for Landlock ABI version 9.

        - Use fallback macros for Landlock ABI version 2, 3, and 5
          (but not 4) if <linux/landlock.h> is older than ABI version 5.
          This makes the binary slightly more protected if it is run on
          a kernel that supports newer ABIs than <linux/landlock.h>.

    * Scripts:

        - xzgrep: Fix handling of the ' char at the end of a command
          line option. For example, the following tricked xzgrep to
          run "id": xzgrep "-e'" "-e;id;'" somefile
          (Also in v5.2, v5.4, and v5.6.)

        - xzdiff: Use the C locale (LC_ALL=C) with "sed" and "expr"
          to ensure safe behavior with invalid multibyte sequences.
          An equivalent improvement was made in xzgrep in 5.2.6
          (2022-08-12), but it was forgotten from xzdiff.
          (Also in v5.2, v5.4, and v5.6.)

    * Tests:

        - Improve a few tests and fuzz targets.

        - Add new test files:
            * bad-0-index-1.xz (32 bytes)
            * bad-1-index-huge-uncomp.xz (72 bytes)

    * Man pages:

        - Improve the rendering with OpenBSD's mandoc(1).

        - Reduce indentation of the tables to avoid overlong lines
          in translated versions of the xz man page.

    * Translations:

        - In translated man pages, workaround an issue with non-ASCII
          characters in tables.

        - Fix syntax errors in a few man page translations.

        - Update Arabic and German man page translations.

        - Update Brazilian Portuguese, Croatian, Dutch, German, Italian,
          Korean, Polish, Portuguese, Romanian, and Ukrainian message
          translations.

XZ Utils 5.8.3 (stable)

Choose a tag to compare

@Larhzu Larhzu released this 31 Mar 16:43
v5.8.3
4b73f2e

IMPORTANT: This includes a fix for CVE-2026-34743 which affects all XZ Utils versions since 5.0.0. No new 5.2.x, 5.4.x, or 5.6.x releases will be made, but the fix is in the v5.2, v5.4, and v5.6 branches in the xz Git repository.

5.8.3 (2026-03-31)

    * liblzma:

        - Fix a buffer overflow in lzma_index_append(): If
          lzma_index_decoder() was used to decode an Index that
          contained no Records, the resulting lzma_index was left in
          a state where where a subsequent lzma_index_append() would
          allocate too little memory, and a buffer overflow would occur.

          The lzma_index functions are rarely used by applications
          directly. In the few applications that do use these functions,
          the combination of function calls required to trigger this bug
          are unlikely to exist, because there typically is no reason to
          append Records to a decoded lzma_index. Thus, it's likely that
          this bug cannot be triggered in any real-world application.

          The bug was reported and discovered by Cantina using their
          AppSec agent, Apex.

        - Fix the build on Windows ARM64EC.

        - Add "License: 0BSD" to liblzma.pc.

    * xz:

        - Fix invalid memory access in --files and --files0. All of
          the following must be true to trigger it:

            1. A string being read (which supposedly is a filename) is
               at least SIZE_MAX / 2 bytes long. This size is plausible
               on 32-bit platforms (2 GiB - 1 B).

            2. realloc(ptr, SIZE_MAX / 2 + 1) must succeed.
               On glibc >= 2.30 it shouldn't because the value
               exceeds PTRDIFF_MAX.

            3. An integer overflow results in a realloc(ptr, 0) call.
               If it doesn't return NULL, then invalid memory access
               will occur.

        - On QNX, don't use fsync() on directories because it fails.

    * Autotools: Enable 32-bit x86 assembler on Hurd by default.
      It was already enabled in the CMake-based build.

    * Translations: Add Arabic man page translations.

XZ Utils 5.8.2 (stable)

Choose a tag to compare

@Larhzu Larhzu released this 17 Dec 14:16
v5.8.2
3d078b5
5.8.2 (2025-12-17)

    * liblzma:

        - Fix the build on ARM64 on glibc versions older than
          2.24 (2016). They don't have HWCAP_CRC32 in <sys/auxv.h>.

        - Disable CLMUL CRC code when building for 32-bit x86 with
          old MSVC versions. This avoids a compiler bug. The exact
          compiler version in which the issue was fixed is unknown,
          but VS 2022 17.13 (MSVC 19.43.34808) is known to work, so
          CLMUL CRC on 32-bit x86 is disabled with MSVC versions
          older than that.

    * xz:

        - Add a workaround for Red Hat Enterprise Linux 9 kernel bug
          which made xz fail with "xz: Failed to enable the sandbox".
          It only occurs with xz 5.8.0 and 5.8.1 binaries built for
          other distros. For example, running Debian 13 in a container
          on RHEL/CentOS 9 would trigger the issue.

          The bug was introduced in RHEL 9 kernel 5.14.0-603.el9
          (2025-07-30) and fixed in 5.14.0-648.el9 (2025-12-05).
          However, as of writing, the fixed kernel isn't available
          to RHEL 9 users yet, so including the workaround in this
          xz release seems reasonable. The workaround will be removed
          when it's no longer needed.

          xzdec was also affected by this issue.

        - On AIX, don't use fsync() on directories because it fails.

        - Fix the build on Emscripten.

        - Fix the build on clang-cl on Windows.

        - Take resource limits (RLIMIT_DATA, RLIMIT_AS, and RLIMIT_VMEM)
          into account when determining the default memory usage limit
          for multithreaded mode. This should prevent xz from failing
          when a resource limit has been set to a value that is less
          than 1/4 of total RAM. Other memory limits can still trigger
          the same issue, for example, Linux cgroup v2 memory.max.

    * Build systems:

        - When symbol versioning is enabled, pass --undefined-version
          to the linker if the option is supported. This fixes the
          build when using LLVM's lld and some liblzma features have
          been disabled at build time.

        - ARM64: Fix autodetection of fast unaligned memory access when
          using GCC and -mstrict-align is in effect. Previously the
          build systems would incorrectly guess that unaligned access
          is fast, which would result in much slower binaries than
          needed. The fix is a workaround for GCC bug 111555;
          autodetection already worked with Clang.

        - LoongArch: Autodetect if fast unaligned memory access is
          supported. This can improve compression speed by 15 % (but
          not decompression speed).

    * Translations:

        - Update the Spanish translation.

        - Add Swedish man page translations.

        - Update Italian, Korean, Romanian, Serbian, and Ukrainian
          man page translations.

XZ Utils 5.8.1 (stable)

Choose a tag to compare

@Larhzu Larhzu released this 03 Apr 15:04
v5.8.1
a522a22

IMPORTANT: This includes a security fix for CVE-2025-31115 which affects XZ Utils from 5.3.3alpha to 5.8.0. See the security advisory for details.

5.8.1 (2025-04-03)

    * Multithreaded .xz decoder (lzma_stream_decoder_mt()):

        - Fix a bug that could at least result in a crash with
          invalid input. (CVE-2025-31115)

        - Fix a performance bug: Only one thread was used if the whole
          input file was provided at once to lzma_code(), the output
          buffer was big enough, timeout was disabled, and LZMA_FINISH
          was used. There are no bug reports about this, thus it's
          possible that no real-world application was affected.

    * Avoid <stdalign.h> even with C11/C17 compilers. This fixes the
      build with Oracle Developer Studio 12.6 on Solaris 10 when the
      compiler is in C11 mode (the header doesn't exist).

    * Autotools: Restore compatibility with GNU make versions older
      than 4.0 by creating the package using GNU gettext 0.23.1
      infrastructure instead of 0.24.

    * Update Croatian translation.

XZ Utils 5.8.0 (stable)

Choose a tag to compare

@Larhzu Larhzu released this 25 Mar 17:42
v5.8.0
db9258e
5.8.0 (2025-03-25)

    This bumps the minor version of liblzma because new features were
    added. The API and ABI are still backward compatible with liblzma
    5.6.x, 5.4.x, 5.2.x, and 5.0.x.

    * liblzma on 32/64-bit x86: When possible, use SSE2 intrinsics
      instead of memcpy() in the LZMA/LZMA2 decoder. In typical cases,
      this may reduce decompression time by 0-5 %. However, when built
      against musl libc, over 15 % time reduction was observed with
      highly compressed files.

    * CMake: Make the feature test macros match the Autotools-based
      build on NetBSD, Darwin, and mingw-w64.

    * Update the Croatian, Italian, Portuguese, and Romanian
      translations.

    * Update the German, Italian, Korean, Romanian, Serbian, and
      Ukrainian man page translations.

    Summary of changes in the 5.7.x development releases:

    * Mark the following LZMA Utils script aliases as deprecated:
      lzcmp, lzdiff, lzless, lzmore, lzgrep, lzegrep, and lzfgrep.

    * liblzma:

        - Improve LZMA/LZMA2 encoder speed on 64-bit PowerPC (both
          endiannesses) and those 64-bit RISC-V processors that
          support fast unaligned access.

        - Add low-level APIs for RISC-V, ARM64, and x86 BCJ filters
          to lzma/bcj.h. These are primarily for erofs-utils.

        - x86/x86-64/E2K CLMUL CRC code was rewritten.

        - Use the CRC32 instructions on LoongArch.

    * xz:

        - Synchronize the output file and its directory using fsync()
          before deleting the input file. No syncing is done when xz
          isn't going to delete the input file.

        - Add --no-sync to disable the sync-before-delete behavior.

        - Make --single-stream imply --keep.

    * xz, xzdec, lzmainfo: When printing messages, replace
      non-printable characters with question marks.

    * xz and xzdec on Linux: Support Landlock ABI versions 5 and 6.

    * CMake: Revise the configuration variables and some of their
      options, and document them in the file INSTALL. CMake support
      is no longer experimental. (It was already not experimental
      when building for native Windows.)

    * Add build-aux/license-check.sh.

XZ Utils 5.7.2beta (unstable)

Pre-release

Choose a tag to compare

@Larhzu Larhzu released this 08 Mar 16:47
v5.7.2beta
cc7f2fc
5.7.2beta (2025-03-08)

    * On the man pages, mark the following LZMA Utils script aliases as
      deprecated: lzcmp, lzdiff, lzless, lzmore, lzgrep, lzegrep, and
      lzfgrep. The commands that start with xz* instead of lz* have
      identical behavior.

      The LZMA Utils aliases lzma, unlzma, and lzcat aren't deprecated
      because some of these aliases are still in common use. lzmadec
      and lzmainfo aren't deprecated either.

    * xz: In the ENVIRONMENT section of the man page, warn about
      problems that some uses of XZ_DEFAULTS and XZ_OPT may create.

    * Windows (native builds, not Cygwin): In xz, xzdec, and lzmadec,
      avoid an error message on broken pipe.

    * Autotools: Fix out-of-tree builds when using the bundled
      getopt_long.

    * Translations:

        - Updated: Chinese (traditional), Croatian, Finnish, Georgian,
          German, Korean, Polish, Romanian, Serbian, Spanish, Swedish,
          Turkish, and Ukrainian

        - Added: Dutch

    * Man page translations:

        - Updated: German, Korean, Romanian, and Ukrainian

        - Added: Italian and Serbian

XZ Utils 5.7.1alpha (unstable)

Pre-release

Choose a tag to compare

@Larhzu Larhzu released this 23 Jan 18:15
v5.7.1alpha
cdae0df
5.7.1alpha (2025-01-23)

   * All fixes from 5.6.4.

   * liblzma:

       - Improve LZMA/LZMA2 encoder speed on 64-bit PowerPC (both
         endiannesses) and those 64-bit RISC-V processors that
         support fast unaligned access.

       - x86/x86-64/E2K CLMUL CRC code was rewritten. It's faster and
         doesn't cause false positives from sanitizers. Attributes
         like __attribute__((__no_sanitize_address__)) are no longer
         present.

       - On 32-bit x86, CLMUL CRC and the old (but still good)
         assembly versions now co-exist with runtime detection.
         Both Autotools and CMake build systems handle this
         automatically now.

       - Use the CRC32 instructions on LoongArch to make CRC32
         calculation faster.

       - Add low-level APIs for RISC-V, ARM64, and x86 BCJ filters
         to lzma/bcj.h. These are primarily for erofs-utils.

       - Minor tweaks to ARM64 CRC32 code and BCJ filters were made.

   * xz:

       - Synchronize the output file and its directory before deleting
         the input file using fsync(). This reduces the probability of
         data loss after a system crash. However, it can be a major
         performance hit if processing many small files.

         NOTE: No syncing is done when xz isn't going to delete
         the input file.

       - Add a new option --no-sync to disable the sync-before-delete
         behavior. It's useful when compressing many small files and
         one doesn't worry about data loss in case of a system crash.

       - Make --single-stream imply --keep.

       - Use automatic word wrapping for the text in --help and
         similar situations to hopefully make the strings easier for
         majority of translators (no need to count spaces anymore).

   * xz, xzdec, lzmainfo: When printing messages, replace
     non-printable characters with question marks. This way
     malicious filenames cannot be used to send escape sequences
     to a terminal. This change is also applied to filenames shown
     in "xz --robot --list".

   * xz and xzdec on Linux: Add support for Landlock ABI versions 5
     and 6.

   * CMake updates:

       - Increase the minimum required CMake version to 3.20.

       - Revise the configuration variables and some of their options.
         Document them in the file INSTALL.

       - Attempt to produce liblzma.pc so that the paths are based on
         ${prefix}, which makes it simpler to override the paths
         if the liblzma files have been moved.

       - To enable translations, gettext-tools is now required. The
         CMake build no longer supports installing pre-compiled
         message catalog binary files (po/*.gmo).

       - Apple: Use Mach-O shared library versioning that is
         compatible with GNU Libtool. This should make it easier to
         switch between the build systems on Apple OSes that enforce
         the correct compatibility_version (macOS >= 12 doesn't?).
         This change is backward compatible: binaries linked against
         old CMake-built liblzma will run with liblzma that uses
         Libtool style versioning.

       - Windows (not Cygwin): Document CMAKE_DLL_NAME_WITH_SOVERSION
         (CMake >= 3.27) in the file INSTALL. This option should
         usually be left to its default value (OFF). It can be set
         to ON if the liblzma DLL filename must be compatible with
         the versioned filename produced by GNU Libtool. For example,
         binaries distributed in MSYS2 use a versioned DLL filename.

       - CMake support is no longer experimental. (It was already
         not experimental when building for native Windows.)

   * Windows: Building liblzma with Visual Studio 2013 is no longer
     supported. Visual Studio 2015 or later (with CMake) can be used
     to build liblzma and the command line tools.

   * Add preliminary Georgian translation. This already contains
     translations of most of the strings that are now automatically
     word wrapped.

   * Add build-aux/license-check.sh. Without arguments, it checks that
     no license information has been forgotten. With the -v argument,
     it shows the license info (or the lack of it) for each file.

     If the .git directory is available, only the files in the
     repository are checked. Without the .git directory, a clean tree
     from an extracted release tarball is expected.

XZ Utils 5.6.4 (stable)

Choose a tag to compare

@Larhzu Larhzu released this 23 Jan 18:15
v5.6.4
ac50df0
5.6.4 (2025-01-23)

    * liblzma: Fix LZMA/LZMA2 encoder on big endian ARM64.

    * xz:

        - Fix --filters= and --filters1= ... --filters9= options
          parsing. They require an argument, thus "xz --filters lzma2"
          should work in addition to "xz --filters=lzma2".

        - On the man page, note in the --compress and --decompress
          options that the default behavior is to delete the input
          file unless writing to standard output. It was already
          documented in the DESCRIPTION section but new users in
          a hurry might miss it.

    * Windows (native builds, not Cygwin): Fix regressions introduced
      in XZ Utils 5.6.3 which caused non-ASCII characters to display
      incorrectly. Only builds with translation support were affected
      (--enable-nls or ENABLE_NLS=ON). The following changes affect
      builds that have translations enabled:

        - Require UCRT because MSVCRT doesn't support UTF-8
          locales and thus translations won't be readable on
          Windows 10 version 1903 and later. (MSVCRT builds
          are still possible with --disable-nls or ENABLE_NLS=OFF.)

        - Require gettext-runtime >= 0.23.1 because older versions
          don't autodetect the use of the UTF-8 code page. This
          resulted in garbled non-ASCII characters even with UCRT.

        - Partially fix alignment issues in xz --verbose --list
          with translated messages. Chinese (simplified),
          Chinese (traditional), and Korean column headings
          are misaligned still because Windows and MinGW-w64
          don't provide wcwidth() and XZ Utils doesn't include
          a replacement function either.

    * CMake: Explicitly disable unity builds. This prevents build
      failures when another project uses XZ Utils via CMake's
      FetchContent module, and that project enables unity builds.

    * Update Chinese (traditional) and Serbian translations.

XZ Utils 5.6.3 (stable)

Choose a tag to compare

@Larhzu Larhzu released this 01 Oct 17:20
v5.6.3
9331ce4
5.6.3 (2024-10-01)

    IMPORTANT: This includes a Windows-specific security fix to
    the command line tools. liblzma isn't affected by this issue.

    * liblzma:

        - Fix x86-64 inline assembly compatibility with GNU Binutils
          older than 2.27.

        - Fix the build with GCC 4.2 on OpenBSD/sparc64.

    * xzdec: Display an error instead of failing silently if the
      unsupported option -M is specified.

    * lzmainfo: Fix integer overflows when rounding the dictionary and
      uncompressed sizes to the nearest mebibyte.

    * Windows (except Cygwin and MSYS2): Add an application manifest to
      xz, xzdec, lzmadec, and lzmainfo executables:

        - Declare them compatible with Vista/7/8/8.1/10/11. This way
          the programs won't needlessly use Operating System Context
          of Vista when running on later Windows versions. This setting
          doesn't mean that the executables cannot run on even older
          versions if otherwise built that way.

        - Declare them as UAC-compliant. MSVC added this by default
          already but it wasn't done with MinGW-w64, at least not
          with all toolchain variants.

        - Declare them long path aware. This makes long path names
          work on Windows 10 and 11 if the feature has been enabled
          in the Windows registry.

        - Use the UTF-8 code page on Windows 10 version 1903 and later.

            * Now command line tools can access files whose names
              contain characters that don't exist in the current
              legacy code page.

            * The options --files and --files0 now expect file lists
              to be in UTF-8 instead of the legacy code page.

            * This fixes a security issue: If a command line contains
              Unicode characters (for example, filenames) that don't
              exist in the current legacy code page, the characters are
              converted to similar-looking characters with best-fit
              mapping. Some best-fit mappings result in ASCII
              characters that change the meaning of the command line,
              which can be exploited with malicious filenames to do
              argument injection or directory traversal attacks.
              UTF-8 avoids best-fit mappings and thus fixes the issue.

              Forcing the process code page to UTF-8 is possible only
              on Windows 10 version 1903 and later. The command line
              tools remain vulnerable if used on an old older
              version of Windows.

              This issue was discovered by Orange Tsai and splitline
              from DEVCORE Research Team.

              A related smaller issue remains: Windows filenames may
              contain unpaired surrogates (invalid UTF-16). These are
              converted to the replacement character U+FFFD in the
              UTF-8 code page. Thus, filenames with different unpaired
              surrogates appear identical and aren't distinguishable
              from filenames that contain the actual replacement
              character U+FFFD.

            * When building with MinGW-w64, it is recommended to use
              UCRT version instead of the old MSVCRT. For example,
              non-ASCII characters from filenames won't print
              correctly in messages to console with MSVCRT with
              the UTF-8 code page (a cosmetic issue). liblzma-only
              builds are still fine with MSVCRT.

        - Cygwin and MSYS2 process command line options differently and
          the above issues don't exist. There is no need to replace the
          default application manifest on Cygwin and MSYS2.

    * Autotools-based build:

        - Fix feature checks with link-time optimization (-flto).

        - Solaris: Fix a compatibility issue in version.sh. It matters
          if one wants to regenerate configure by running autoconf.

    * CMake:

        - Use paths relative to ${prefix} in liblzma.pc when possible.
          This is done only with CMake >= 3.20.

        - MSVC: Install liblzma.pc as it can be useful with MSVC too.

        - Windows: Fix liblzma filename prefix, for example:

            * Cygwin: The DLL was incorrectly named liblzma-5.dll.
              Now it is cyglzma-5.dll.

            * MSVC: Rename import library from liblzma.lib to lzma.lib
              while keeping liblzma.dll name as is. This helps with
              "pkgconf --msvc-syntax --libs liblzma" because it mungles
              "-llzma" in liblzma.pc to "lzma.lib".

            * MinGW-w64: No changes.

        - Windows: Use the correct resource file for lzmadec.exe.
          Previously the resource file for xzdec.exe was used for both.
          Autotools-based build isn't affected.

        - Prefer a C11 compiler over a C99 compiler but accept both.

        - Link Threads::Threads against liblzma using PRIVATE so that
          -pthread and such flags won't unnecessarily get included in
          the usage requirements of shared liblzma. That is,
          target_link_libraries(foo PRIVATE liblzma::liblzma) no
          longer adds -pthread if using POSIX threads and linking
          against shared liblzma. The threading flags are still added
          if linking against static liblzma.

    * Updated translations: Catalan, Chinese (simplified), and
      Brazilian Portuguese.
⌂ 换网址