Blame CHANGES

Packit 71fd91
 ------------------------------------------------------------------
Packit 71fd91
 This file is part of bzip2/libbzip2, a program and library for
Packit 71fd91
 lossless, block-sorting data compression.
Packit 71fd91
Packit 71fd91
 bzip2/libbzip2 version 1.0.6 of 6 September 2010
Packit 71fd91
 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
Packit 71fd91
Packit 71fd91
 Please read the WARNING, DISCLAIMER and PATENTS sections in the 
Packit 71fd91
 README file.
Packit 71fd91
Packit 71fd91
 This program is released under the terms of the license contained
Packit 71fd91
 in the file LICENSE.
Packit 71fd91
 ------------------------------------------------------------------
Packit 71fd91
Packit 71fd91
Packit 71fd91
0.9.0
Packit 71fd91
~~~~~
Packit 71fd91
First version.
Packit 71fd91
Packit 71fd91
Packit 71fd91
0.9.0a
Packit 71fd91
~~~~~~
Packit 71fd91
Removed 'ranlib' from Makefile, since most modern Unix-es 
Packit 71fd91
don't need it, or even know about it.
Packit 71fd91
Packit 71fd91
Packit 71fd91
0.9.0b
Packit 71fd91
~~~~~~
Packit 71fd91
Fixed a problem with error reporting in bzip2.c.  This does not effect
Packit 71fd91
the library in any way.  Problem is: versions 0.9.0 and 0.9.0a (of the
Packit 71fd91
program proper) compress and decompress correctly, but give misleading
Packit 71fd91
error messages (internal panics) when an I/O error occurs, instead of
Packit 71fd91
reporting the problem correctly.  This shouldn't give any data loss
Packit 71fd91
(as far as I can see), but is confusing.
Packit 71fd91
Packit 71fd91
Made the inline declarations disappear for non-GCC compilers.
Packit 71fd91
Packit 71fd91
Packit 71fd91
0.9.0c
Packit 71fd91
~~~~~~
Packit 71fd91
Fixed some problems in the library pertaining to some boundary cases.
Packit 71fd91
This makes the library behave more correctly in those situations.  The
Packit 71fd91
fixes apply only to features (calls and parameters) not used by
Packit 71fd91
bzip2.c, so the non-fixedness of them in previous versions has no
Packit 71fd91
effect on reliability of bzip2.c.
Packit 71fd91
Packit 71fd91
In bzlib.c:
Packit 71fd91
   * made zero-length BZ_FLUSH work correctly in bzCompress().
Packit 71fd91
   * fixed bzWrite/bzRead to ignore zero-length requests.
Packit 71fd91
   * fixed bzread to correctly handle read requests after EOF.
Packit 71fd91
   * wrong parameter order in call to bzDecompressInit in
Packit 71fd91
     bzBuffToBuffDecompress.  Fixed.
Packit 71fd91
Packit 71fd91
In compress.c:
Packit 71fd91
   * changed setting of nGroups in sendMTFValues() so as to 
Packit 71fd91
     do a bit better on small files.  This _does_ effect
Packit 71fd91
     bzip2.c.
Packit 71fd91
Packit 71fd91
Packit 71fd91
0.9.5a
Packit 71fd91
~~~~~~
Packit 71fd91
Major change: add a fallback sorting algorithm (blocksort.c)
Packit 71fd91
to give reasonable behaviour even for very repetitive inputs.
Packit 71fd91
Nuked --repetitive-best and --repetitive-fast since they are
Packit 71fd91
no longer useful.
Packit 71fd91
Packit 71fd91
Minor changes: mostly a whole bunch of small changes/
Packit 71fd91
bugfixes in the driver (bzip2.c).  Changes pertaining to the
Packit 71fd91
user interface are:
Packit 71fd91
Packit 71fd91
   allow decompression of symlink'd files to stdout
Packit 71fd91
   decompress/test files even without .bz2 extension
Packit 71fd91
   give more accurate error messages for I/O errors
Packit 71fd91
   when compressing/decompressing to stdout, don't catch control-C
Packit 71fd91
   read flags from BZIP2 and BZIP environment variables
Packit 71fd91
   decline to break hard links to a file unless forced with -f
Packit 71fd91
   allow -c flag even with no filenames
Packit 71fd91
   preserve file ownerships as far as possible
Packit 71fd91
   make -s -1 give the expected block size (100k)
Packit 71fd91
   add a flag -q --quiet to suppress nonessential warnings
Packit 71fd91
   stop decoding flags after --, so files beginning in - can be handled
Packit 71fd91
   resolved inconsistent naming: bzcat or bz2cat ?
Packit 71fd91
   bzip2 --help now returns 0
Packit 71fd91
Packit 71fd91
Programming-level changes are:
Packit 71fd91
Packit 71fd91
   fixed syntax error in GET_LL4 for Borland C++ 5.02
Packit 71fd91
   let bzBuffToBuffDecompress return BZ_DATA_ERROR{_MAGIC}
Packit 71fd91
   fix overshoot of mode-string end in bzopen_or_bzdopen
Packit 71fd91
   wrapped bzlib.h in #ifdef __cplusplus ... extern "C" { ... }
Packit 71fd91
   close file handles under all error conditions
Packit 71fd91
   added minor mods so it compiles with DJGPP out of the box
Packit 71fd91
   fixed Makefile so it doesn't give problems with BSD make
Packit 71fd91
   fix uninitialised memory reads in dlltest.c
Packit 71fd91
Packit 71fd91
0.9.5b
Packit 71fd91
~~~~~~
Packit 71fd91
Open stdin/stdout in binary mode for DJGPP.
Packit 71fd91
Packit 71fd91
0.9.5c
Packit 71fd91
~~~~~~
Packit 71fd91
Changed BZ_N_OVERSHOOT to be ... + 2 instead of ... + 1.  The + 1
Packit 71fd91
version could cause the sorted order to be wrong in some extremely
Packit 71fd91
obscure cases.  Also changed setting of quadrant in blocksort.c.
Packit 71fd91
Packit 71fd91
0.9.5d
Packit 71fd91
~~~~~~
Packit 71fd91
The only functional change is to make bzlibVersion() in the library
Packit 71fd91
return the correct string.  This has no effect whatsoever on the
Packit 71fd91
functioning of the bzip2 program or library.  Added a couple of casts
Packit 71fd91
so the library compiles without warnings at level 3 in MS Visual
Packit 71fd91
Studio 6.0.  Included a Y2K statement in the file Y2K_INFO.  All other
Packit 71fd91
changes are minor documentation changes.
Packit 71fd91
Packit 71fd91
1.0
Packit 71fd91
~~~
Packit 71fd91
Several minor bugfixes and enhancements:
Packit 71fd91
Packit 71fd91
* Large file support.  The library uses 64-bit counters to
Packit 71fd91
  count the volume of data passing through it.  bzip2.c 
Packit 71fd91
  is now compiled with -D_FILE_OFFSET_BITS=64 to get large
Packit 71fd91
  file support from the C library.  -v correctly prints out
Packit 71fd91
  file sizes greater than 4 gigabytes.  All these changes have
Packit 71fd91
  been made without assuming a 64-bit platform or a C compiler
Packit 71fd91
  which supports 64-bit ints, so, except for the C library
Packit 71fd91
  aspect, they are fully portable.
Packit 71fd91
Packit 71fd91
* Decompression robustness.  The library/program should be
Packit 71fd91
  robust to any corruption of compressed data, detecting and
Packit 71fd91
  handling _all_ corruption, instead of merely relying on
Packit 71fd91
  the CRCs.  What this means is that the program should 
Packit 71fd91
  never crash, given corrupted data, and the library should
Packit 71fd91
  always return BZ_DATA_ERROR.
Packit 71fd91
Packit 71fd91
* Fixed an obscure race-condition bug only ever observed on
Packit 71fd91
  Solaris, in which, if you were very unlucky and issued
Packit 71fd91
  control-C at exactly the wrong time, both input and output
Packit 71fd91
  files would be deleted.
Packit 71fd91
Packit 71fd91
* Don't run out of file handles on test/decompression when
Packit 71fd91
  large numbers of files have invalid magic numbers.
Packit 71fd91
Packit 71fd91
* Avoid library namespace pollution.  Prefix all exported 
Packit 71fd91
  symbols with BZ2_.
Packit 71fd91
Packit 71fd91
* Minor sorting enhancements from my DCC2000 paper.
Packit 71fd91
Packit 71fd91
* Advance the version number to 1.0, so as to counteract the
Packit 71fd91
  (false-in-this-case) impression some people have that programs 
Packit 71fd91
  with version numbers less than 1.0 are in some way, experimental,
Packit 71fd91
  pre-release versions.
Packit 71fd91
Packit 71fd91
* Create an initial Makefile-libbz2_so to build a shared library.
Packit 71fd91
  Yes, I know I should really use libtool et al ...
Packit 71fd91
Packit 71fd91
* Make the program exit with 2 instead of 0 when decompression
Packit 71fd91
  fails due to a bad magic number (ie, an invalid bzip2 header).
Packit 71fd91
  Also exit with 1 (as the manual claims :-) whenever a diagnostic
Packit 71fd91
  message would have been printed AND the corresponding operation 
Packit 71fd91
  is aborted, for example
Packit 71fd91
     bzip2: Output file xx already exists.
Packit 71fd91
  When a diagnostic message is printed but the operation is not 
Packit 71fd91
  aborted, for example
Packit 71fd91
     bzip2: Can't guess original name for wurble -- using wurble.out
Packit 71fd91
  then the exit value 0 is returned, unless some other problem is
Packit 71fd91
  also detected.
Packit 71fd91
Packit 71fd91
  I think it corresponds more closely to what the manual claims now.
Packit 71fd91
Packit 71fd91
Packit 71fd91
1.0.1
Packit 71fd91
~~~~~
Packit 71fd91
* Modified dlltest.c so it uses the new BZ2_ naming scheme.
Packit 71fd91
* Modified makefile-msc to fix minor build probs on Win2k.
Packit 71fd91
* Updated README.COMPILATION.PROBLEMS.
Packit 71fd91
Packit 71fd91
There are no functionality changes or bug fixes relative to version
Packit 71fd91
1.0.0.  This is just a documentation update + a fix for minor Win32
Packit 71fd91
build problems.  For almost everyone, upgrading from 1.0.0 to 1.0.1 is
Packit 71fd91
utterly pointless.  Don't bother.
Packit 71fd91
Packit 71fd91
Packit 71fd91
1.0.2
Packit 71fd91
~~~~~
Packit 71fd91
A bug fix release, addressing various minor issues which have appeared
Packit 71fd91
in the 18 or so months since 1.0.1 was released.  Most of the fixes
Packit 71fd91
are to do with file-handling or documentation bugs.  To the best of my
Packit 71fd91
knowledge, there have been no data-loss-causing bugs reported in the
Packit 71fd91
compression/decompression engine of 1.0.0 or 1.0.1.
Packit 71fd91
Packit 71fd91
Note that this release does not improve the rather crude build system
Packit 71fd91
for Unix platforms.  The general plan here is to autoconfiscate/
Packit 71fd91
libtoolise 1.0.2 soon after release, and release the result as 1.1.0
Packit 71fd91
or perhaps 1.2.0.  That, however, is still just a plan at this point.
Packit 71fd91
Packit 71fd91
Here are the changes in 1.0.2.  Bug-reporters and/or patch-senders in
Packit 71fd91
parentheses.
Packit 71fd91
Packit 71fd91
* Fix an infinite segfault loop in 1.0.1 when a directory is
Packit 71fd91
  encountered in -f (force) mode.
Packit 71fd91
     (Trond Eivind Glomsrod, Nicholas Nethercote, Volker Schmidt)
Packit 71fd91
Packit 71fd91
* Avoid double fclose() of output file on certain I/O error paths.
Packit 71fd91
     (Solar Designer)
Packit 71fd91
Packit 71fd91
* Don't fail with internal error 1007 when fed a long stream (> 48MB)
Packit 71fd91
  of byte 251.  Also print useful message suggesting that 1007s may be
Packit 71fd91
  caused by bad memory.
Packit 71fd91
     (noticed by Juan Pedro Vallejo, fixed by me)
Packit 71fd91
Packit 71fd91
* Fix uninitialised variable silly bug in demo prog dlltest.c.
Packit 71fd91
     (Jorj Bauer)
Packit 71fd91
Packit 71fd91
* Remove 512-MB limitation on recovered file size for bzip2recover
Packit 71fd91
  on selected platforms which support 64-bit ints.  At the moment
Packit 71fd91
  all GCC supported platforms, and Win32.
Packit 71fd91
     (me, Alson van der Meulen)
Packit 71fd91
Packit 71fd91
* Hard-code header byte values, to give correct operation on platforms
Packit 71fd91
  using EBCDIC as their native character set (IBM's OS/390).
Packit 71fd91
     (Leland Lucius)
Packit 71fd91
Packit 71fd91
* Copy file access times correctly.
Packit 71fd91
     (Marty Leisner)
Packit 71fd91
Packit 71fd91
* Add distclean and check targets to Makefile.
Packit 71fd91
     (Michael Carmack)
Packit 71fd91
Packit 71fd91
* Parameterise use of ar and ranlib in Makefile.  Also add $(LDFLAGS).
Packit 71fd91
     (Rich Ireland, Bo Thorsen)
Packit 71fd91
Packit 71fd91
* Pass -p (create parent dirs as needed) to mkdir during make install.
Packit 71fd91
     (Jeremy Fusco)
Packit 71fd91
Packit 71fd91
* Dereference symlinks when copying file permissions in -f mode.
Packit 71fd91
     (Volker Schmidt)
Packit 71fd91
Packit 71fd91
* Majorly simplify implementation of uInt64_qrm10.
Packit 71fd91
     (Bo Lindbergh)
Packit 71fd91
Packit 71fd91
* Check the input file still exists before deleting the output one,
Packit 71fd91
  when aborting in cleanUpAndFail().
Packit 71fd91
     (Joerg Prante, Robert Linden, Matthias Krings)
Packit 71fd91
Packit 71fd91
Also a bunch of patches courtesy of Philippe Troin, the Debian maintainer
Packit 71fd91
of bzip2:
Packit 71fd91
Packit 71fd91
* Wrapper scripts (with manpages): bzdiff, bzgrep, bzmore.
Packit 71fd91
Packit 71fd91
* Spelling changes and minor enhancements in bzip2.1.
Packit 71fd91
Packit 71fd91
* Avoid race condition between creating the output file and setting its
Packit 71fd91
  interim permissions safely, by using fopen_output_safely().
Packit 71fd91
  No changes to bzip2recover since there is no issue with file
Packit 71fd91
  permissions there.
Packit 71fd91
Packit 71fd91
* do not print senseless report with -v when compressing an empty
Packit 71fd91
  file.
Packit 71fd91
Packit 71fd91
* bzcat -f works on non-bzip2 files.
Packit 71fd91
Packit 71fd91
* do not try to escape shell meta-characters on unix (the shell takes
Packit 71fd91
  care of these).
Packit 71fd91
Packit 71fd91
* added --fast and --best aliases for -1 -9 for gzip compatibility.
Packit 71fd91
Packit 71fd91
Packit 71fd91
1.0.3 (15 Feb 05)
Packit 71fd91
~~~~~~~~~~~~~~~~~
Packit 71fd91
Fixes some minor bugs since the last version, 1.0.2.
Packit 71fd91
Packit 71fd91
* Further robustification against corrupted compressed data.
Packit 71fd91
  There are currently no known bitstreams which can cause the
Packit 71fd91
  decompressor to crash, loop or access memory which does not
Packit 71fd91
  belong to it.  If you are using bzip2 or the library to 
Packit 71fd91
  decompress bitstreams from untrusted sources, an upgrade
Packit 71fd91
  to 1.0.3 is recommended.  This fixes CAN-2005-1260.
Packit 71fd91
Packit 71fd91
* The documentation has been converted to XML, from which html
Packit 71fd91
  and pdf can be derived.
Packit 71fd91
Packit 71fd91
* Various minor bugs in the documentation have been fixed.
Packit 71fd91
Packit 71fd91
* Fixes for various compilation warnings with newer versions of
Packit 71fd91
  gcc, and on 64-bit platforms.
Packit 71fd91
Packit 71fd91
* The BZ_NO_STDIO cpp symbol was not properly observed in 1.0.2.
Packit 71fd91
  This has been fixed.
Packit 71fd91
Packit 71fd91
Packit 71fd91
1.0.4 (20 Dec 06)
Packit 71fd91
~~~~~~~~~~~~~~~~~
Packit 71fd91
Fixes some minor bugs since the last version, 1.0.3.
Packit 71fd91
Packit 71fd91
* Fix file permissions race problem (CAN-2005-0953).
Packit 71fd91
Packit 71fd91
* Avoid possible segfault in BZ2_bzclose.  From Coverity's NetBSD
Packit 71fd91
  scan.
Packit 71fd91
Packit 71fd91
* 'const'/prototype cleanups in the C code.
Packit 71fd91
Packit 71fd91
* Change default install location to /usr/local, and handle multiple
Packit 71fd91
  'make install's without error.
Packit 71fd91
Packit 71fd91
* Sanitise file names more carefully in bzgrep.  Fixes CAN-2005-0758
Packit 71fd91
  to the extent that applies to bzgrep.
Packit 71fd91
Packit 71fd91
* Use 'mktemp' rather than 'tempfile' in bzdiff.
Packit 71fd91
Packit 71fd91
* Tighten up a couple of assertions in blocksort.c following automated
Packit 71fd91
  analysis.
Packit 71fd91
Packit 71fd91
* Fix minor doc/comment bugs.
Packit 71fd91
Packit 71fd91
Packit 71fd91
1.0.5 (10 Dec 07)
Packit 71fd91
~~~~~~~~~~~~~~~~~
Packit 71fd91
Security fix only.  Fixes CERT-FI 20469 as it applies to bzip2.
Packit 71fd91
Packit 71fd91
Packit 71fd91
1.0.6 (6 Sept 10)
Packit 71fd91
~~~~~~~~~~~~~~~~~
Packit 71fd91
Packit 71fd91
* Security fix for CVE-2010-0405.  This was reported by Mikolaj
Packit 71fd91
  Izdebski.
Packit 71fd91
Packit 71fd91
* Make the documentation build on Ubuntu 10.04