DragonFly BSD
DragonFly commits List (threaded) for 2012-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: vendor/XZ Import xz-5.0.3.


From: Peter Avalos <pavalos@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 8 Jan 2012 17:17:16 -0800 (PST)

commit 114db65b7d1a106752c685a14803bdf7b4ce5594
Author: Peter Avalos <pavalos@dragonflybsd.org>
Date:   Sun Jan 8 13:32:05 2012 -0800

    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.

Summary of changes:
 contrib/xz/NEWS                                    |   68 +++++++-
 contrib/xz/src/common/sysdefs.h                    |   15 ++
 contrib/xz/src/liblzma/api/lzma/block.h            |    1 +
 contrib/xz/src/liblzma/api/lzma/container.h        |   12 ++
 contrib/xz/src/liblzma/api/lzma/filter.h           |    8 +-
 contrib/xz/src/liblzma/api/lzma/lzma.h             |    3 +
 contrib/xz/src/liblzma/api/lzma/version.h          |    2 +-
 contrib/xz/src/liblzma/common/alone_decoder.c      |    2 +-
 contrib/xz/src/liblzma/common/alone_encoder.c      |    4 +-
 .../xz/src/liblzma/common/block_buffer_encoder.c   |   18 ++-
 contrib/xz/src/liblzma/common/block_encoder.c      |    7 +-
 contrib/xz/src/liblzma/common/common.c             |    2 +-
 contrib/xz/src/liblzma/common/common.h             |    2 +-
 contrib/xz/src/liblzma/common/filter_common.c      |    6 +-
 contrib/xz/src/liblzma/common/index_decoder.c      |    9 +-
 contrib/xz/src/liblzma/common/index_encoder.c      |   11 +-
 .../xz/src/liblzma/common/stream_buffer_encoder.c  |   23 ++-
 contrib/xz/src/liblzma/common/stream_encoder.c     |    2 +-
 contrib/xz/src/liblzma/delta/delta_encoder.c       |    2 +-
 contrib/xz/src/liblzma/lz/lz_decoder.c             |    2 +-
 contrib/xz/src/liblzma/lz/lz_encoder.c             |    2 +-
 contrib/xz/src/liblzma/lzma/lzma2_decoder.c        |    8 +-
 contrib/xz/src/liblzma/lzma/lzma2_encoder.c        |    2 +-
 contrib/xz/src/liblzma/simple/arm.c                |    2 +-
 contrib/xz/src/liblzma/simple/armthumb.c           |    2 +-
 contrib/xz/src/liblzma/simple/ia64.c               |    2 +-
 contrib/xz/src/liblzma/simple/powerpc.c            |    2 +-
 contrib/xz/src/liblzma/simple/simple_coder.c       |    2 +-
 contrib/xz/src/liblzma/simple/sparc.c              |    2 +-
 contrib/xz/src/lzmainfo/lzmainfo.c                 |    4 +-
 contrib/xz/src/scripts/xzdiff.1                    |   75 ++++++++
 contrib/xz/src/scripts/xzdiff.in                   |  172 +++++++++++++++++
 contrib/xz/src/scripts/xzgrep.1                    |   95 +++++++++
 contrib/xz/src/scripts/xzgrep.in                   |  200 ++++++++++++++++++++
 contrib/xz/src/scripts/xzless.1                    |   69 +++++++
 contrib/xz/src/scripts/xzless.in                   |   58 ++++++
 contrib/xz/src/scripts/xzmore.1                    |   55 ++++++
 contrib/xz/src/scripts/xzmore.in                   |   78 ++++++++
 contrib/xz/src/xz/coder.c                          |    2 +-
 contrib/xz/src/xz/file_io.c                        |   17 +-
 contrib/xz/src/xz/hardware.h                       |    2 +-
 contrib/xz/src/xz/message.c                        |    8 +-
 contrib/xz/src/xz/message.h                        |   18 +-
 contrib/xz/src/xz/options.c                        |    6 +-
 contrib/xz/src/xz/signals.c                        |    2 +-
 contrib/xz/src/xz/suffix.c                         |   82 ++++++---
 contrib/xz/src/xz/util.h                           |    7 +-
 contrib/xz/src/xz/xz.1                             |    2 +-
 contrib/xz/src/xzdec/xzdec.c                       |    6 +-
 49 files changed, 1069 insertions(+), 112 deletions(-)
 create mode 100644 contrib/xz/src/scripts/xzdiff.1
 create mode 100644 contrib/xz/src/scripts/xzdiff.in
 create mode 100644 contrib/xz/src/scripts/xzgrep.1
 create mode 100644 contrib/xz/src/scripts/xzgrep.in
 create mode 100644 contrib/xz/src/scripts/xzless.1
 create mode 100644 contrib/xz/src/scripts/xzless.in
 create mode 100644 contrib/xz/src/scripts/xzmore.1
 create mode 100644 contrib/xz/src/scripts/xzmore.in

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/114db65b7d1a106752c685a14803bdf7b4ce5594


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]