Import xz-5.0.3.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 8 Jan 2012 21:32:05 +0000 (13:32 -0800)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 8 Jan 2012 21:32:05 +0000 (13:32 -0800)
commit114db65b7d1a106752c685a14803bdf7b4ce5594
treeb505fbfd3dbbb2e551ffd7e99b308c0e23a00078
parent2940b44dd4f550115e00e03e0f6149cebf62ded6
Import xz-5.0.3.

    * xz --force now (de)compresses files that have setuid, setgid,
      or sticky bit set and files that have multiple hard links.
      The man page had it documented this way already, but the code
      had a bug.

    * LZMA2 decompressor now correctly accepts LZMA2 streams with no
      uncompressed data. Previously it considered them corrupt. The
      bug can affect applications that use raw LZMA2 streams. It is
      very unlikely to affect .xz files because no compressor creates
      .xz files with empty LZMA2 streams. (Empty .xz files are a
      different thing than empty LZMA2 streams.)

    * "xz --suffix=.foo filename.foo" now refuses to compress the
      file due to it already having the suffix .foo. It was already
      documented on the man page, but the code lacked the test.

    * liblzma fixes:

        - A memory leak was fixed.

        - lzma_stream_buffer_encode() no longer creates an empty .xz
          Block if encoding an empty buffer. Such an empty Block with
          LZMA2 data would trigger a bug.

        - Validate function arguments better in a few functions. Most
          importantly, specifying an unsupported integrity check to
          lzma_stream_buffer_encode() no longer creates a corrupt .xz
          file. Probably no application tries to do that, so this
          shouldn't be a big problem in practice.

        - Document that lzma_block_buffer_encode(),
          lzma_easy_buffer_encode(), lzma_stream_encoder(), and
          lzma_stream_buffer_encode() may return LZMA_UNSUPPORTED_CHECK.

        - The return values of the _memusage() functions are now
          documented better.
49 files changed:
contrib/xz/NEWS
contrib/xz/src/common/sysdefs.h
contrib/xz/src/liblzma/api/lzma/block.h
contrib/xz/src/liblzma/api/lzma/container.h
contrib/xz/src/liblzma/api/lzma/filter.h
contrib/xz/src/liblzma/api/lzma/lzma.h
contrib/xz/src/liblzma/api/lzma/version.h
contrib/xz/src/liblzma/common/alone_decoder.c
contrib/xz/src/liblzma/common/alone_encoder.c
contrib/xz/src/liblzma/common/block_buffer_encoder.c
contrib/xz/src/liblzma/common/block_encoder.c
contrib/xz/src/liblzma/common/common.c
contrib/xz/src/liblzma/common/common.h
contrib/xz/src/liblzma/common/filter_common.c
contrib/xz/src/liblzma/common/index_decoder.c
contrib/xz/src/liblzma/common/index_encoder.c
contrib/xz/src/liblzma/common/stream_buffer_encoder.c
contrib/xz/src/liblzma/common/stream_encoder.c
contrib/xz/src/liblzma/delta/delta_encoder.c
contrib/xz/src/liblzma/lz/lz_decoder.c
contrib/xz/src/liblzma/lz/lz_encoder.c
contrib/xz/src/liblzma/lzma/lzma2_decoder.c
contrib/xz/src/liblzma/lzma/lzma2_encoder.c
contrib/xz/src/liblzma/simple/arm.c
contrib/xz/src/liblzma/simple/armthumb.c
contrib/xz/src/liblzma/simple/ia64.c
contrib/xz/src/liblzma/simple/powerpc.c
contrib/xz/src/liblzma/simple/simple_coder.c
contrib/xz/src/liblzma/simple/sparc.c
contrib/xz/src/lzmainfo/lzmainfo.c
contrib/xz/src/scripts/xzdiff.1 [new file with mode: 0644]
contrib/xz/src/scripts/xzdiff.in [new file with mode: 0644]
contrib/xz/src/scripts/xzgrep.1 [new file with mode: 0644]
contrib/xz/src/scripts/xzgrep.in [new file with mode: 0644]
contrib/xz/src/scripts/xzless.1 [new file with mode: 0644]
contrib/xz/src/scripts/xzless.in [new file with mode: 0644]
contrib/xz/src/scripts/xzmore.1 [new file with mode: 0644]
contrib/xz/src/scripts/xzmore.in [new file with mode: 0644]
contrib/xz/src/xz/coder.c
contrib/xz/src/xz/file_io.c
contrib/xz/src/xz/hardware.h
contrib/xz/src/xz/message.c
contrib/xz/src/xz/message.h
contrib/xz/src/xz/options.c
contrib/xz/src/xz/signals.c
contrib/xz/src/xz/suffix.c
contrib/xz/src/xz/util.h
contrib/xz/src/xz/xz.1
contrib/xz/src/xzdec/xzdec.c