CHANGES 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. ------------------------------------------------------------------
  2. This file is part of bzip2/libbzip2, a program and library for
  3. lossless, block-sorting data compression.
  4. bzip2/libbzip2 version 1.0.8 of 13 July 2019
  5. Copyright (C) 1996-2019 Julian Seward <jseward@acm.org>
  6. Please read the WARNING, DISCLAIMER and PATENTS sections in the
  7. README file.
  8. This program is released under the terms of the license contained
  9. in the file LICENSE.
  10. ------------------------------------------------------------------
  11. 0.9.0
  12. ~~~~~
  13. First version.
  14. 0.9.0a
  15. ~~~~~~
  16. Removed 'ranlib' from Makefile, since most modern Unix-es
  17. don't need it, or even know about it.
  18. 0.9.0b
  19. ~~~~~~
  20. Fixed a problem with error reporting in bzip2.c. This does not effect
  21. the library in any way. Problem is: versions 0.9.0 and 0.9.0a (of the
  22. program proper) compress and decompress correctly, but give misleading
  23. error messages (internal panics) when an I/O error occurs, instead of
  24. reporting the problem correctly. This shouldn't give any data loss
  25. (as far as I can see), but is confusing.
  26. Made the inline declarations disappear for non-GCC compilers.
  27. 0.9.0c
  28. ~~~~~~
  29. Fixed some problems in the library pertaining to some boundary cases.
  30. This makes the library behave more correctly in those situations. The
  31. fixes apply only to features (calls and parameters) not used by
  32. bzip2.c, so the non-fixedness of them in previous versions has no
  33. effect on reliability of bzip2.c.
  34. In bzlib.c:
  35. * made zero-length BZ_FLUSH work correctly in bzCompress().
  36. * fixed bzWrite/bzRead to ignore zero-length requests.
  37. * fixed bzread to correctly handle read requests after EOF.
  38. * wrong parameter order in call to bzDecompressInit in
  39. bzBuffToBuffDecompress. Fixed.
  40. In compress.c:
  41. * changed setting of nGroups in sendMTFValues() so as to
  42. do a bit better on small files. This _does_ effect
  43. bzip2.c.
  44. 0.9.5a
  45. ~~~~~~
  46. Major change: add a fallback sorting algorithm (blocksort.c)
  47. to give reasonable behaviour even for very repetitive inputs.
  48. Nuked --repetitive-best and --repetitive-fast since they are
  49. no longer useful.
  50. Minor changes: mostly a whole bunch of small changes/
  51. bugfixes in the driver (bzip2.c). Changes pertaining to the
  52. user interface are:
  53. allow decompression of symlink'd files to stdout
  54. decompress/test files even without .bz2 extension
  55. give more accurate error messages for I/O errors
  56. when compressing/decompressing to stdout, don't catch control-C
  57. read flags from BZIP2 and BZIP environment variables
  58. decline to break hard links to a file unless forced with -f
  59. allow -c flag even with no filenames
  60. preserve file ownerships as far as possible
  61. make -s -1 give the expected block size (100k)
  62. add a flag -q --quiet to suppress nonessential warnings
  63. stop decoding flags after --, so files beginning in - can be handled
  64. resolved inconsistent naming: bzcat or bz2cat ?
  65. bzip2 --help now returns 0
  66. Programming-level changes are:
  67. fixed syntax error in GET_LL4 for Borland C++ 5.02
  68. let bzBuffToBuffDecompress return BZ_DATA_ERROR{_MAGIC}
  69. fix overshoot of mode-string end in bzopen_or_bzdopen
  70. wrapped bzlib.h in #ifdef __cplusplus ... extern "C" { ... }
  71. close file handles under all error conditions
  72. added minor mods so it compiles with DJGPP out of the box
  73. fixed Makefile so it doesn't give problems with BSD make
  74. fix uninitialised memory reads in dlltest.c
  75. 0.9.5b
  76. ~~~~~~
  77. Open stdin/stdout in binary mode for DJGPP.
  78. 0.9.5c
  79. ~~~~~~
  80. Changed BZ_N_OVERSHOOT to be ... + 2 instead of ... + 1. The + 1
  81. version could cause the sorted order to be wrong in some extremely
  82. obscure cases. Also changed setting of quadrant in blocksort.c.
  83. 0.9.5d
  84. ~~~~~~
  85. The only functional change is to make bzlibVersion() in the library
  86. return the correct string. This has no effect whatsoever on the
  87. functioning of the bzip2 program or library. Added a couple of casts
  88. so the library compiles without warnings at level 3 in MS Visual
  89. Studio 6.0. Included a Y2K statement in the file Y2K_INFO. All other
  90. changes are minor documentation changes.
  91. 1.0
  92. ~~~
  93. Several minor bugfixes and enhancements:
  94. * Large file support. The library uses 64-bit counters to
  95. count the volume of data passing through it. bzip2.c
  96. is now compiled with -D_FILE_OFFSET_BITS=64 to get large
  97. file support from the C library. -v correctly prints out
  98. file sizes greater than 4 gigabytes. All these changes have
  99. been made without assuming a 64-bit platform or a C compiler
  100. which supports 64-bit ints, so, except for the C library
  101. aspect, they are fully portable.
  102. * Decompression robustness. The library/program should be
  103. robust to any corruption of compressed data, detecting and
  104. handling _all_ corruption, instead of merely relying on
  105. the CRCs. What this means is that the program should
  106. never crash, given corrupted data, and the library should
  107. always return BZ_DATA_ERROR.
  108. * Fixed an obscure race-condition bug only ever observed on
  109. Solaris, in which, if you were very unlucky and issued
  110. control-C at exactly the wrong time, both input and output
  111. files would be deleted.
  112. * Don't run out of file handles on test/decompression when
  113. large numbers of files have invalid magic numbers.
  114. * Avoid library namespace pollution. Prefix all exported
  115. symbols with BZ2_.
  116. * Minor sorting enhancements from my DCC2000 paper.
  117. * Advance the version number to 1.0, so as to counteract the
  118. (false-in-this-case) impression some people have that programs
  119. with version numbers less than 1.0 are in some way, experimental,
  120. pre-release versions.
  121. * Create an initial Makefile-libbz2_so to build a shared library.
  122. Yes, I know I should really use libtool et al ...
  123. * Make the program exit with 2 instead of 0 when decompression
  124. fails due to a bad magic number (ie, an invalid bzip2 header).
  125. Also exit with 1 (as the manual claims :-) whenever a diagnostic
  126. message would have been printed AND the corresponding operation
  127. is aborted, for example
  128. bzip2: Output file xx already exists.
  129. When a diagnostic message is printed but the operation is not
  130. aborted, for example
  131. bzip2: Can't guess original name for wurble -- using wurble.out
  132. then the exit value 0 is returned, unless some other problem is
  133. also detected.
  134. I think it corresponds more closely to what the manual claims now.
  135. 1.0.1
  136. ~~~~~
  137. * Modified dlltest.c so it uses the new BZ2_ naming scheme.
  138. * Modified makefile-msc to fix minor build probs on Win2k.
  139. * Updated README.COMPILATION.PROBLEMS.
  140. There are no functionality changes or bug fixes relative to version
  141. 1.0.0. This is just a documentation update + a fix for minor Win32
  142. build problems. For almost everyone, upgrading from 1.0.0 to 1.0.1 is
  143. utterly pointless. Don't bother.
  144. 1.0.2
  145. ~~~~~
  146. A bug fix release, addressing various minor issues which have appeared
  147. in the 18 or so months since 1.0.1 was released. Most of the fixes
  148. are to do with file-handling or documentation bugs. To the best of my
  149. knowledge, there have been no data-loss-causing bugs reported in the
  150. compression/decompression engine of 1.0.0 or 1.0.1.
  151. Note that this release does not improve the rather crude build system
  152. for Unix platforms. The general plan here is to autoconfiscate/
  153. libtoolise 1.0.2 soon after release, and release the result as 1.1.0
  154. or perhaps 1.2.0. That, however, is still just a plan at this point.
  155. Here are the changes in 1.0.2. Bug-reporters and/or patch-senders in
  156. parentheses.
  157. * Fix an infinite segfault loop in 1.0.1 when a directory is
  158. encountered in -f (force) mode.
  159. (Trond Eivind Glomsrod, Nicholas Nethercote, Volker Schmidt)
  160. * Avoid double fclose() of output file on certain I/O error paths.
  161. (Solar Designer)
  162. * Don't fail with internal error 1007 when fed a long stream (> 48MB)
  163. of byte 251. Also print useful message suggesting that 1007s may be
  164. caused by bad memory.
  165. (noticed by Juan Pedro Vallejo, fixed by me)
  166. * Fix uninitialised variable silly bug in demo prog dlltest.c.
  167. (Jorj Bauer)
  168. * Remove 512-MB limitation on recovered file size for bzip2recover
  169. on selected platforms which support 64-bit ints. At the moment
  170. all GCC supported platforms, and Win32.
  171. (me, Alson van der Meulen)
  172. * Hard-code header byte values, to give correct operation on platforms
  173. using EBCDIC as their native character set (IBM's OS/390).
  174. (Leland Lucius)
  175. * Copy file access times correctly.
  176. (Marty Leisner)
  177. * Add distclean and check targets to Makefile.
  178. (Michael Carmack)
  179. * Parameterise use of ar and ranlib in Makefile. Also add $(LDFLAGS).
  180. (Rich Ireland, Bo Thorsen)
  181. * Pass -p (create parent dirs as needed) to mkdir during make install.
  182. (Jeremy Fusco)
  183. * Dereference symlinks when copying file permissions in -f mode.
  184. (Volker Schmidt)
  185. * Majorly simplify implementation of uInt64_qrm10.
  186. (Bo Lindbergh)
  187. * Check the input file still exists before deleting the output one,
  188. when aborting in cleanUpAndFail().
  189. (Joerg Prante, Robert Linden, Matthias Krings)
  190. Also a bunch of patches courtesy of Philippe Troin, the Debian maintainer
  191. of bzip2:
  192. * Wrapper scripts (with manpages): bzdiff, bzgrep, bzmore.
  193. * Spelling changes and minor enhancements in bzip2.1.
  194. * Avoid race condition between creating the output file and setting its
  195. interim permissions safely, by using fopen_output_safely().
  196. No changes to bzip2recover since there is no issue with file
  197. permissions there.
  198. * do not print senseless report with -v when compressing an empty
  199. file.
  200. * bzcat -f works on non-bzip2 files.
  201. * do not try to escape shell meta-characters on unix (the shell takes
  202. care of these).
  203. * added --fast and --best aliases for -1 -9 for gzip compatibility.
  204. 1.0.3 (15 Feb 05)
  205. ~~~~~~~~~~~~~~~~~
  206. Fixes some minor bugs since the last version, 1.0.2.
  207. * Further robustification against corrupted compressed data.
  208. There are currently no known bitstreams which can cause the
  209. decompressor to crash, loop or access memory which does not
  210. belong to it. If you are using bzip2 or the library to
  211. decompress bitstreams from untrusted sources, an upgrade
  212. to 1.0.3 is recommended. This fixes CAN-2005-1260.
  213. * The documentation has been converted to XML, from which html
  214. and pdf can be derived.
  215. * Various minor bugs in the documentation have been fixed.
  216. * Fixes for various compilation warnings with newer versions of
  217. gcc, and on 64-bit platforms.
  218. * The BZ_NO_STDIO cpp symbol was not properly observed in 1.0.2.
  219. This has been fixed.
  220. 1.0.4 (20 Dec 06)
  221. ~~~~~~~~~~~~~~~~~
  222. Fixes some minor bugs since the last version, 1.0.3.
  223. * Fix file permissions race problem (CAN-2005-0953).
  224. * Avoid possible segfault in BZ2_bzclose. From Coverity's NetBSD
  225. scan.
  226. * 'const'/prototype cleanups in the C code.
  227. * Change default install location to /usr/local, and handle multiple
  228. 'make install's without error.
  229. * Sanitise file names more carefully in bzgrep. Fixes CAN-2005-0758
  230. to the extent that applies to bzgrep.
  231. * Use 'mktemp' rather than 'tempfile' in bzdiff.
  232. * Tighten up a couple of assertions in blocksort.c following automated
  233. analysis.
  234. * Fix minor doc/comment bugs.
  235. 1.0.5 (10 Dec 07)
  236. ~~~~~~~~~~~~~~~~~
  237. Security fix only. Fixes CERT-FI 20469 as it applies to bzip2.
  238. 1.0.6 (6 Sept 10)
  239. ~~~~~~~~~~~~~~~~~
  240. * Security fix for CVE-2010-0405. This was reported by Mikolaj
  241. Izdebski.
  242. * Make the documentation build on Ubuntu 10.04
  243. 1.0.7 (27 Jun 19)
  244. ~~~~~~~~~~~~~~~~~
  245. * Fix undefined behavior in the macros SET_BH, CLEAR_BH, & ISSET_BH
  246. * bzip2: Fix return value when combining --test,-t and -q.
  247. * bzip2recover: Fix buffer overflow for large argv[0]
  248. * bzip2recover: Fix use after free issue with outFile (CVE-2016-3189)
  249. * Make sure nSelectors is not out of range (CVE-2019-12900)
  250. 1.0.8 (13 Jul 19)
  251. ~~~~~~~~~~~~~~~~~
  252. * Accept as many selectors as the file format allows.
  253. This relaxes the fix for CVE-2019-12900 from 1.0.7
  254. so that bzip2 allows decompression of bz2 files that
  255. use (too) many selectors again.
  256. * Fix handling of large (> 4GB) files on Windows.
  257. * Cleanup of bzdiff and bzgrep scripts so they don't use
  258. any bash extensions and handle multiple archives correctly.
  259. * There is now a bz2-files testsuite at
  260. https://sourceware.org/git/bzip2-tests.git