NEWS 97 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514
  1. XZ Utils Release Notes
  2. ======================
  3. 5.6.2 (2024-05-29)
  4. * Remove the backdoor (CVE-2024-3094).
  5. * Not changed: Memory sanitizer (MSAN) has a false positive
  6. in the CRC CLMUL code which also makes OSS Fuzz unhappy.
  7. Valgrind is smarter and doesn't complain.
  8. A revision to the CLMUL code is coming anyway and this issue
  9. will be cleaned up as part of it. It won't be backported to
  10. 5.6.x or 5.4.x because the old code isn't wrong. There is
  11. no reason to risk introducing regressions in old branches
  12. just to silence a false positive.
  13. * liblzma:
  14. - lzma_index_decoder() and lzma_index_buffer_decode(): Fix
  15. a missing output pointer initialization (*i = NULL) if the
  16. functions are called with invalid arguments. The API docs
  17. say that such an initialization is always done. In practice
  18. this matters very little because the problem can only occur
  19. if the calling application has a bug and these functions
  20. return LZMA_PROG_ERROR.
  21. - lzma_str_to_filters(): Fix a missing output pointer
  22. initialization (*error_pos = 0). This is very similar
  23. to the fix above.
  24. - Fix C standard conformance with function pointer types.
  25. - Remove GNU indirect function (IFUNC) support. This is *NOT*
  26. done for security reasons even though the backdoor relied on
  27. this code. The performance benefits of IFUNC are too tiny in
  28. this project to make the extra complexity worth it.
  29. - FreeBSD on ARM64: Add error checking to CRC32 instruction
  30. support detection.
  31. - Fix building with NVIDIA HPC SDK.
  32. * xz:
  33. - Fix a C standard conformance issue in --block-list parsing
  34. (arithmetic on a null pointer).
  35. - Fix a warning from GNU groff when processing the man page:
  36. "warning: cannot select font 'CW'"
  37. * xzdec: Add support for Linux Landlock ABI version 4. xz already
  38. had the v3-to-v4 change but it had been forgotten from xzdec.
  39. * Autotools-based build system (configure):
  40. - Symbol versioning variant can now be overridden with
  41. --enable-symbol-versions. Documentation in INSTALL was
  42. updated to match.
  43. - Add new configure option --enable-doxygen to enable
  44. generation and installation of the liblzma API documentation
  45. using Doxygen. Documentation in INSTALL and PACKAGERS was
  46. updated to match.
  47. CMake:
  48. - Fix detection of Linux Landlock support. The detection code
  49. in CMakeLists.txt had been sabotaged.
  50. - Disable symbol versioning on non-glibc Linux to match what
  51. the Autotools build does. For example, symbol versioning
  52. isn't enabled with musl.
  53. - Symbol versioning variant can now be overridden by setting
  54. SYMBOL_VERSIONING to "OFF", "generic", or "linux".
  55. - Add support for all tests in typical build configurations.
  56. Now the only difference to the tests coverage to Autotools
  57. is that CMake-based build will skip more tests if features
  58. are disabled. Such builds are only for special cases like
  59. embedded systems.
  60. - Separate the CMake code for the tests into tests/tests.cmake.
  61. It is used conditionally, thus it is possible to
  62. rm -rf tests
  63. and the CMake-based build will still work normally except
  64. that no tests are then available.
  65. - Add a option ENABLE_DOXYGEN to enable generation and
  66. installation of the liblzma API documentation using Doxygen.
  67. * Documentation:
  68. - Omit the Doxygen-generated liblzma API documentation from the
  69. package. Instead, the generation and installation of the API
  70. docs can be enabled with a configure or CMake option if
  71. Doxygen is available.
  72. - Remove the XZ logo which was used in the API documentation.
  73. The logo has been retired and isn't used by the project
  74. anymore. However, it's OK to use it in contexts that refer
  75. to the backdoor incident.
  76. - Remove the PDF versions of the man pages from the source
  77. package. These existed primarily for users of operating
  78. systems which don't come with tools to render man page
  79. source files. The plain text versions are still included
  80. in doc/man/txt. PDF files can still be generated to doc/man,
  81. if the required tools are available, using "make pdf" after
  82. running "configure".
  83. - Update home page URLs back to their old locations on
  84. tukaani.org.
  85. - Update maintainer info.
  86. * Tests:
  87. - In tests/files/README, explain how to recreate the ARM64
  88. test files.
  89. - Remove two tests that used tiny x86 and SPARC object files
  90. as the input files. The matching .c file was included but
  91. the object files aren't easy to reproduce. The test cases
  92. weren't great anyway; they were from the early days (2009)
  93. of the project when the test suite had very few tests.
  94. - Improve a few tests.
  95. 5.6.1 (2024-03-09)
  96. IMPORTANT: This fixed bugs in the backdoor (CVE-2024-3094) (someone
  97. had forgot to run Valgrind).
  98. * liblzma: Fixed two bugs relating to GNU indirect function (IFUNC)
  99. with GCC. The more serious bug caused a program linked with
  100. liblzma to crash on start up if the flag -fprofile-generate was
  101. used to build liblzma. The second bug caused liblzma to falsely
  102. report an invalid write to Valgrind when loading liblzma.
  103. * xz: Changed the messages for thread reduction due to memory
  104. constraints to only appear under the highest verbosity level.
  105. * Build:
  106. - Fixed a build issue when the header file <linux/landlock.h>
  107. was present on the system but the Landlock system calls were
  108. not defined in <sys/syscall.h>.
  109. - The CMake build now warns and disables NLS if both gettext
  110. tools and pre-created .gmo files are missing. Previously,
  111. this caused the CMake build to fail.
  112. * Minor improvements to man pages.
  113. * Minor improvements to tests.
  114. 5.6.0 (2024-02-24)
  115. IMPORTANT: This added a backdoor (CVE-2024-3094). It's enabled only
  116. in the release tarballs.
  117. This bumps the minor version of liblzma because new features were
  118. added. The API and ABI are still backward compatible with liblzma
  119. 5.4.x and 5.2.x and 5.0.x.
  120. NOTE: As described in the NEWS for 5.5.2beta, the core components
  121. are now under the BSD Zero Clause License (0BSD).
  122. Since 5.5.2beta:
  123. * liblzma:
  124. - Disabled the branchless C variant in the LZMA decoder based
  125. on the benchmark results from the community.
  126. - Disabled x86-64 inline assembly on x32 to fix the build.
  127. * Sandboxing support in xz:
  128. - Landlock is now used even when xz needs to create files.
  129. In this case the sandbox has to be more permissive than
  130. when no files need to be created. A similar thing was
  131. already in use with pledge(2) since 5.3.4alpha.
  132. - Landlock and pledge(2) are now stricter when reading from
  133. more than one input file and only writing to standard output.
  134. - Added support for Landlock ABI version 4.
  135. * CMake:
  136. - Default to -O2 instead of -O3 with CMAKE_BUILD_TYPE=Release.
  137. -O3 is not useful for speed and makes the code larger.
  138. - Now builds lzmainfo and lzmadec.
  139. - xzdiff, xzgrep, xzless, xzmore, and their symlinks are now
  140. installed. The scripts are also tested during "make test".
  141. - Added translation support for xz, lzmainfo, and the
  142. man pages.
  143. - Applied the symbol versioning workaround for MicroBlaze that
  144. is used in the Autotools build.
  145. - The general XZ Utils and liblzma API documentation is now
  146. installed.
  147. - The CMake component names were changed a little and several
  148. were added. liblzma_Runtime and liblzma_Development are
  149. unchanged.
  150. - Minimum required CMake version is now 3.14. However,
  151. translation support is disabled with CMake versions
  152. older than 3.20.
  153. - The CMake-based build is now close to feature parity with the
  154. Autotools-based build. Most importantly a few tests aren't
  155. run yet. Testing the CMake-based build on different operating
  156. systems would be welcome now. See the comment at the top of
  157. CMakeLists.txt.
  158. * Fixed a bug in the Autotools feature test for ARM64 CRC32
  159. instruction support for old versions of Clang. This did not
  160. affect the CMake build.
  161. * Windows:
  162. - The build instructions in INSTALL and windows/INSTALL*.txt
  163. were revised completely.
  164. - windows/build-with-cmake.bat along with the instructions
  165. in windows/INSTALL-MinGW-w64_with_CMake.txt should make
  166. it very easy to build liblzma.dll and xz.exe on Windows
  167. using CMake and MinGW-w64 with either GCC or Clang/LLVM.
  168. - windows/build.bash was updated. It now works on MSYS2 and
  169. on GNU/Linux (cross-compiling) to create a .zip and .7z
  170. package for 32-bit and 64-bit x86 using GCC + MinGW-w64.
  171. * The TODO file is no longer installed as part of the
  172. documentation. The file is out of date and does not reflect
  173. the actual tasks that will be completed in the future.
  174. * Translations:
  175. - Translated lzmainfo man pages are now installed. These
  176. had been forgotten in earlier versions.
  177. - Updated Croatian, Esperanto, German, Hungarian, Korean,
  178. Polish, Romanian, Spanish, Swedish, Vietnamese, and Ukrainian
  179. translations.
  180. - Updated German, Korean, Romanian, and Ukrainian man page
  181. translations.
  182. * Added a few tests.
  183. Summary of new features added in the 5.5.x development releases:
  184. * liblzma:
  185. - LZMA decoder: Speed optimizations to the C code and
  186. added GCC & Clang compatible inline assembly for x86-64.
  187. - Added lzma_mt_block_size() to recommend a Block size for
  188. multithreaded encoding.
  189. - Added CLMUL-based CRC32 on x86-64 and E2K with runtime
  190. processor detection. Similar to CRC64, on 32-bit x86 it
  191. isn't available unless --disable-assembler is used.
  192. - Optimized the CRC32 calculation on ARM64 platforms using the
  193. CRC32 instructions. Runtime detection for the instruction is
  194. used on GNU/Linux, FreeBSD, Windows, and macOS. If the
  195. compiler flags indicate unconditional CRC32 instruction
  196. support (+crc) then the generic version is not built.
  197. - Added definitions of mask values like
  198. LZMA_INDEX_CHECK_MASK_CRC32 to <lzma/index.h>.
  199. * xz:
  200. - Multithreaded mode is now the default. This improves
  201. compression speed and creates .xz files that can be
  202. decompressed in multithreaded mode. The downsides are
  203. increased memory usage and slightly worse compression ratio.
  204. - Added a new command line option --filters to set the filter
  205. chain using the liblzma filter string syntax.
  206. - Added new command line options --filters1 ... --filters9 to
  207. set additional filter chains using the liblzma filter string
  208. syntax. The --block-list option now allows specifying filter
  209. chains that were set using these new options.
  210. - Ported the command line tools to Windows MSVC.
  211. Visual Studio 2015 or later is required.
  212. * Added lz4 support to xzdiff/xzcmp and xzgrep.
  213. 5.5.2beta (2024-02-14)
  214. * Licensing change: The core components are now under the
  215. BSD Zero Clause License (0BSD). In XZ Utils 5.4.6 and older
  216. and 5.5.1alpha these components are in the public domain and
  217. obviously remain so; the change affects the new releases only.
  218. 0BSD is an extremely permissive license which doesn't require
  219. retaining or reproducing copyright or license notices when
  220. distributing the code, thus in practice there is extremely
  221. little difference to public domain.
  222. * liblzma
  223. - Significant speed optimizations to the LZMA decoder were
  224. made. There are now three variants that can be chosen at
  225. build time:
  226. * Basic C version: This is a few percent faster than
  227. 5.4.x due to some new optimizations.
  228. * Branchless C: This is currently the default on platforms
  229. for which there is no assembly code. This should be a few
  230. percent faster than the basic C version.
  231. * x86-64 inline assembly. This works with GCC and Clang.
  232. The default choice can currently be overridden by setting
  233. LZMA_RANGE_DECODER_CONFIG in CPPFLAGS: 0 means the basic
  234. version and 3 means that branchless C version.
  235. - Optimized the CRC32 calculation on ARM64 platforms using the
  236. CRC32 instructions. The instructions are optional in ARMv8.0
  237. and are required in ARMv8.1 and later. Runtime detection for
  238. the instruction is used on GNU/Linux, FreeBSD, Windows, and
  239. macOS. If the compiler flags indicate unconditional CRC32
  240. instruction support (+crc) then the generic version is not
  241. built.
  242. * Added lz4 support to xzdiff/xzcmp and xzgrep.
  243. * Man pages of xzdiff/xzcmp, xzgrep, and xzmore were rewritten
  244. to simplify licensing of the man page translations.
  245. * Translations:
  246. - Updated Chinese (simplified), German, Korean, Polish,
  247. Romanian, Spanish, Swedish, and Ukrainian translations.
  248. - Updated German, Korean, Romanian, and Ukrainian man page
  249. translations.
  250. * Small improvements to the tests.
  251. * Added doc/examples/11_file_info.c. It was added to the Git
  252. repository in 2017 but forgotten to be added into distribution
  253. tarballs.
  254. * Removed doc/examples_old. These were from 2012.
  255. * Removed the macos/build.sh script. It had not been updated
  256. since 2013.
  257. 5.5.1alpha (2024-01-26)
  258. * Added a new filter for RISC-V binaries. The filter can be used
  259. for 32-bit and 64-bit binaries with either little or big
  260. endianness. In liblzma, the Filter ID is LZMA_FILTER_RISCV (0x0B)
  261. and the xz option is --riscv. liblzma filter string syntax
  262. recognizes this filter as "riscv".
  263. * liblzma:
  264. - Added lzma_mt_block_size() to recommend a Block size for
  265. multithreaded encoding
  266. - Added CLMUL-based CRC32 on x86-64 and E2K with runtime
  267. processor detection. Similar to CRC64, on 32-bit x86 it
  268. isn't available unless --disable-assembler is used.
  269. - Implemented GNU indirect function (IFUNC) as a runtime
  270. function dispatching method for CRC32 and CRC64 fast
  271. implementations on x86. Only GNU/Linux (glibc) and FreeBSD
  272. builds will use IFUNC, unless --enable-ifunc is specified to
  273. configure.
  274. - Added definitions of mask values like
  275. LZMA_INDEX_CHECK_MASK_CRC32 to <lzma/index.h>.
  276. - The XZ logo is now included in the Doxygen generated
  277. documentation. It is licensed under Creative Commons
  278. Attribution-ShareAlike 4.0.
  279. * xz:
  280. - Multithreaded mode is now the default. This improves
  281. compression speed and creates .xz files that can be
  282. decompressed multithreaded at the cost of increased memory
  283. usage and slightly worse compression ratio.
  284. - Added new command line option --filters to set the filter
  285. chain using liblzma filter string syntax.
  286. - Added new command line options --filters1 ... --filters9 to
  287. set additional filter chains using liblzma filter string
  288. syntax. The --block-list option now allows specifying filter
  289. chains that were set using these new options.
  290. - Added support for Linux Landlock as a sandboxing method.
  291. - xzdec now supports pledge(2), Capsicum, and Linux Landlock as
  292. sandboxing methods.
  293. - Progress indicator time stats remain accurate after pausing
  294. xz with SIGTSTP.
  295. - Ported xz and xzdec to Windows MSVC. Visual Studio 2015 or
  296. later is required.
  297. * CMake Build:
  298. - Supports pledge(2), Capsicum, and Linux Landlock sandboxing
  299. methods.
  300. - Replacement functions for getopt_long() are used on platforms
  301. that do not have it.
  302. * Enabled unaligned access by default on PowerPC64LE and on RISC-V
  303. targets that define __riscv_misaligned_fast.
  304. * Tests:
  305. - Added two new fuzz targets to OSS-Fuzz.
  306. - Implemented Continuous Integration (CI) testing using
  307. GitHub Actions.
  308. * Changed quoting style from `...' to '...' in all messages,
  309. scripts, and documentation.
  310. * Added basic Codespell support to help catch typo errors.
  311. 5.4.7 (2024-05-29)
  312. * Not changed: Memory sanitizer (MSAN) has a false positive
  313. in the CRC CLMUL code which also makes OSS Fuzz unhappy.
  314. Valgrind is smarter and doesn't complain.
  315. A revision to the CLMUL code is coming anyway and this issue
  316. will be cleaned up as part of it. It won't be backported to
  317. 5.6.x or 5.4.x because the old code isn't wrong. There is
  318. no reason to risk introducing regressions in old branches
  319. just to silence a false positive.
  320. * liblzma:
  321. - lzma_index_decoder() and lzma_index_buffer_decode(): Fix
  322. a missing output pointer initialization (*i = NULL) if the
  323. functions are called with invalid arguments. The API docs
  324. say that such an initialization is always done. In practice
  325. this matters very little because the problem can only occur
  326. if the calling application has a bug and these functions
  327. return LZMA_PROG_ERROR.
  328. - lzma_str_to_filters(): Fix a missing output pointer
  329. initialization (*error_pos = 0). This is very similar
  330. to the fix above.
  331. - Fix C standard conformance with function pointer types.
  332. This newly showed up with Clang 17 with -fsanitize=undefined.
  333. There are no bug reports about this.
  334. - Fix building with NVIDIA HPC SDK.
  335. * xz:
  336. - Fix a C standard conformance issue in --block-list parsing
  337. (arithmetic on a null pointer).
  338. - Fix a warning from GNU groff when processing the man page:
  339. "warning: cannot select font 'CW'"
  340. - Fix outdated threading related information on the man page.
  341. * xzless:
  342. - With "less" version 451 and later, use "||-" instead of "|-"
  343. in the environment variable LESSOPEN. This way compressed
  344. files that contain no uncompressed data are shown correctly
  345. as empty.
  346. - With "less" version 632 and later, use --show-preproc-errors
  347. to make "less" show a warning on decompression errors.
  348. * Autotools-based build system (configure):
  349. - Symbol versioning variant can now be overridden with
  350. --enable-symbol-versions. Documentation in INSTALL was
  351. updated to match.
  352. CMake:
  353. - Linux on MicroBlaze is handled specially now. This matches
  354. the changes made to the Autotools-based build in XZ Utils
  355. 5.4.2 and 5.2.11.
  356. - Disable symbol versioning on non-glibc Linux to match what
  357. the Autotools build does. For example, symbol versioning
  358. isn't enabled with musl.
  359. - Symbol versioning variant can now be overridden by setting
  360. SYMBOL_VERSIONING to "OFF", "generic", or "linux".
  361. * Documentation:
  362. - Clarify the description of --disable-assembler in INSTALL.
  363. The option only affects 32-bit x86 assembly usage.
  364. - Add doc/examples/11_file_info.c. It was added to the
  365. Git repository in 2017 but forgotten to be added into
  366. distribution tarballs.
  367. - Don't install the TODO file as part of the documentation.
  368. The file is out of date.
  369. - Update home page URLs back to their old locations on
  370. tukaani.org.
  371. - Update maintainer info.
  372. 5.4.6 (2024-01-26)
  373. * Fixed a bug involving internal function pointers in liblzma not
  374. being initialized to NULL. The bug can only be triggered if
  375. lzma_filters_update() is called on a LZMA1 encoder, so it does
  376. not affect xz or any application known to us that uses liblzma.
  377. * xz:
  378. - Fixed a regression introduced in 5.4.2 that caused encoding
  379. in the raw format to unnecessarily fail if --suffix was not
  380. used. For instance, the following command no longer reports
  381. that --suffix must be used:
  382. echo foo | xz --format=raw --lzma2 | wc -c
  383. - Fixed an issue on MinGW-w64 builds that prevented reading
  384. from or writing to non-terminal character devices like NUL.
  385. * Added a new test.
  386. 5.4.5 (2023-11-01)
  387. * liblzma:
  388. - Use __attribute__((__no_sanitize_address__)) to avoid address
  389. sanitization with CRC64 CLMUL. It uses 16-byte-aligned reads
  390. which can extend past the bounds of the input buffer and
  391. inherently trigger address sanitization errors. This isn't
  392. a bug.
  393. - Fixed an assertion failure that could be triggered by a large
  394. unpadded_size argument. It was verified that there was no
  395. other bug than the assertion failure.
  396. - Fixed a bug that prevented building with Windows Vista
  397. threading when __attribute__((__constructor__)) is not
  398. supported.
  399. * xz now properly handles special files such as "con" or "nul" on
  400. Windows. Before this fix, the following wrote "foo" to the
  401. console and deleted the input file "con_xz":
  402. echo foo | xz > con_xz
  403. xz --suffix=_xz --decompress con_xz
  404. * Build systems:
  405. - Allow builds with Windows win95 threading and small mode when
  406. __attribute__((__constructor__)) is supported.
  407. - Added a new line to liblzma.pc for MSYS2 (Windows):
  408. Cflags.private: -DLZMA_API_STATIC
  409. When compiling code that will link against static liblzma,
  410. the LZMA_API_STATIC macro needs to be defined on Windows.
  411. - CMake specific changes:
  412. * Fixed a bug that allowed CLOCK_MONOTONIC to be used even
  413. if the check for it failed.
  414. * Fixed a bug where configuring CMake multiple times
  415. resulted in HAVE_CLOCK_GETTIME and HAVE_CLOCK_MONOTONIC
  416. not being set.
  417. * Fixed the build with MinGW-w64-based Clang/LLVM 17.
  418. llvm-windres now has more accurate GNU windres emulation
  419. so the GNU windres workaround from 5.4.1 is needed with
  420. llvm-windres version 17 too.
  421. * The import library on Windows is now properly named
  422. "liblzma.dll.a" instead of "libliblzma.dll.a"
  423. * Fixed a bug causing the Ninja Generator to fail on
  424. UNIX-like systems. This bug was introduced in 5.4.0.
  425. * Added a new option to disable CLMUL CRC64.
  426. * A module-definition (.def) file is now created when
  427. building liblzma.dll with MinGW-w64.
  428. * The pkg-config liblzma.pc file is now installed on all
  429. builds except when using MSVC on Windows.
  430. * Added large file support by default for platforms that
  431. need it to handle files larger than 2 GiB. This includes
  432. MinGW-w64, even 64-bit builds.
  433. * Small fixes and improvements to the tests.
  434. * Updated translations: Chinese (simplified) and Esperanto.
  435. 5.4.4 (2023-08-02)
  436. * liblzma and xzdec can now build against WASI SDK when threading
  437. support is disabled. xz and tests don't build yet.
  438. * CMake:
  439. - Fixed a bug preventing other projects from including liblzma
  440. multiple times using find_package().
  441. - Don't create broken symlinks in Cygwin and MSYS2 unless
  442. supported by the environment. This prevented building for the
  443. default MSYS2 environment. The problem was introduced in
  444. xz 5.4.0.
  445. * Documentation:
  446. - Small improvements to man pages.
  447. - Small improvements and typo fixes for liblzma API
  448. documentation.
  449. * Tests:
  450. - Added a new section to INSTALL to describe basic test usage
  451. and address recent questions about building the tests when
  452. cross compiling.
  453. - Small fixes and improvements to the tests.
  454. * Translations:
  455. - Fixed a mistake that caused one of the error messages to not
  456. be translated. This only affected versions 5.4.2 and 5.4.3.
  457. - Updated the Chinese (simplified), Croatian, Esperanto, German,
  458. Korean, Polish, Romanian, Spanish, Swedish, Ukrainian, and
  459. Vietnamese translations.
  460. - Updated the German, Korean, Romanian, and Ukrainian man page
  461. translations.
  462. 5.4.3 (2023-05-04)
  463. * All fixes from 5.2.12
  464. * Features in the CMake build can now be disabled as CMake cache
  465. variables, similar to the Autotools build.
  466. * Minor update to the Croatian translation.
  467. 5.4.2 (2023-03-18)
  468. * All fixes from 5.2.11 that were not included in 5.4.1.
  469. * If xz is built with support for the Capsicum sandbox but running
  470. in an environment that doesn't support Capsicum, xz now runs
  471. normally without sandboxing instead of exiting with an error.
  472. * liblzma:
  473. - Documentation was updated to improve the style, consistency,
  474. and completeness of the liblzma API headers.
  475. - The Doxygen-generated HTML documentation for the liblzma API
  476. header files is now included in the source release and is
  477. installed as part of "make install". All JavaScript is
  478. removed to simplify license compliance and to reduce the
  479. install size.
  480. - Fixed a minor bug in lzma_str_from_filters() that produced
  481. too many filters in the output string instead of reporting
  482. an error if the input array had more than four filters. This
  483. bug did not affect xz.
  484. * Build systems:
  485. - autogen.sh now invokes the doxygen tool via the new wrapper
  486. script doxygen/update-doxygen, unless the command line option
  487. --no-doxygen is used.
  488. - Added microlzma_encoder.c and microlzma_decoder.c to the
  489. VS project files for Windows and to the CMake build. These
  490. should have been included in 5.3.2alpha.
  491. * Tests:
  492. - Added a test to the CMake build that was forgotten in the
  493. previous release.
  494. - Added and refactored a few tests.
  495. * Translations:
  496. - Updated the Brazilian Portuguese translation.
  497. - Added Brazilian Portuguese man page translation.
  498. 5.4.1 (2023-01-11)
  499. * liblzma:
  500. - Fixed the return value of lzma_microlzma_encoder() if the
  501. LZMA options lc/lp/pb are invalid. Invalid lc/lp/pb options
  502. made the function return LZMA_STREAM_END without encoding
  503. anything instead of returning LZMA_OPTIONS_ERROR.
  504. - Windows / Visual Studio: Workaround a possible compiler bug
  505. when targeting 32-bit x86 and compiling the CLMUL version of
  506. the CRC64 code. The CLMUL code isn't enabled by the Windows
  507. project files but it is in the CMake-based builds.
  508. * Build systems:
  509. - Windows-specific CMake changes:
  510. * Don't try to enable CLMUL CRC64 code if _mm_set_epi64x()
  511. isn't available. This fixes CMake-based build with Visual
  512. Studio 2013.
  513. * Created a workaround for a build failure with windres
  514. from GNU binutils. It is used only when the C compiler
  515. is GCC (not Clang). The workaround is incompatible
  516. with llvm-windres, resulting in "XZx20Utils" instead
  517. of "XZ Utils" in the resource file, but without the
  518. workaround llvm-windres works correctly. See the
  519. comment in CMakeLists.txt for details.
  520. * Included the resource files in the xz and xzdec build
  521. rules. Building the command line tools is still
  522. experimental but possible with MinGW-w64.
  523. - Visual Studio: Added stream_decoder_mt.c to the project
  524. files. Now the threaded decompressor lzma_stream_decoder_mt()
  525. gets built. CMake-based build wasn't affected.
  526. - Updated windows/INSTALL-MSVC.txt to mention that CMake-based
  527. build is now the preferred method with Visual Studio. The
  528. project files will probably be removed after 5.4.x releases.
  529. - Changes to #defines in config.h:
  530. * HAVE_DECL_CLOCK_MONOTONIC was replaced by
  531. HAVE_CLOCK_MONOTONIC. The old macro was always defined
  532. in configure-generated config.h to either 0 or 1. The
  533. new macro is defined (to 1) only if the declaration of
  534. CLOCK_MONOTONIC is available. This matches the way most
  535. other config.h macros work and makes things simpler with
  536. other build systems.
  537. * HAVE_DECL_PROGRAM_INVOCATION_NAME was replaced by
  538. HAVE_PROGRAM_INVOCATION_NAME for the same reason.
  539. * Tests:
  540. - Fixed test script compatibility with ancient /bin/sh
  541. versions. Now the five test_compress_* tests should
  542. no longer fail on Solaris 10.
  543. - Added and refactored a few tests.
  544. * Translations:
  545. - Updated the Catalan and Esperanto translations.
  546. - Added Korean and Ukrainian man page translations.
  547. 5.4.0 (2022-12-13)
  548. This bumps the minor version of liblzma because new features were
  549. added. The API and ABI are still backward compatible with liblzma
  550. 5.2.x and 5.0.x.
  551. Since 5.3.5beta:
  552. * All fixes from 5.2.10.
  553. * The ARM64 filter is now stable. The xz option is now --arm64.
  554. Decompression requires XZ Utils 5.4.0. In the future the ARM64
  555. filter will be supported by XZ for Java, XZ Embedded (including
  556. the version in Linux), LZMA SDK, and 7-Zip.
  557. * Translations:
  558. - Updated Catalan, Croatian, German, Romanian, and Turkish
  559. translations.
  560. - Updated German man page translations.
  561. - Added Romanian man page translations.
  562. Summary of new features added in the 5.3.x development releases:
  563. * liblzma:
  564. - Added threaded .xz decompressor lzma_stream_decoder_mt().
  565. It can use multiple threads with .xz files that have multiple
  566. Blocks with size information in Block Headers. The threaded
  567. encoder in xz has always created such files.
  568. Single-threaded encoder cannot store the size information in
  569. Block Headers even if one used LZMA_FULL_FLUSH to create
  570. multiple Blocks, so this threaded decoder cannot use multiple
  571. threads with such files.
  572. If there are multiple Streams (concatenated .xz files), one
  573. Stream will be decompressed completely before starting the
  574. next Stream.
  575. - A new decoder flag LZMA_FAIL_FAST was added. It makes the
  576. threaded decompressor report errors soon instead of first
  577. flushing all pending data before the error location.
  578. - New Filter IDs:
  579. * LZMA_FILTER_ARM64 is for ARM64 binaries.
  580. * LZMA_FILTER_LZMA1EXT is for raw LZMA1 streams that don't
  581. necessarily use the end marker.
  582. - Added lzma_str_to_filters(), lzma_str_from_filters(), and
  583. lzma_str_list_filters() to convert a preset or a filter chain
  584. string to a lzma_filter[] and vice versa. These should make
  585. it easier to write applications that allow users to specify
  586. custom compression options.
  587. - Added lzma_filters_free() which can be convenient for freeing
  588. the filter options in a filter chain (an array of lzma_filter
  589. structures).
  590. - lzma_file_info_decoder() to makes it a little easier to get
  591. the Index field from .xz files. This helps in getting the
  592. uncompressed file size but an easy-to-use random access
  593. API is still missing which has existed in XZ for Java for
  594. a long time.
  595. - Added lzma_microlzma_encoder() and lzma_microlzma_decoder().
  596. It is used by erofs-utils and may be used by others too.
  597. The MicroLZMA format is a raw LZMA stream (without end marker)
  598. whose first byte (always 0x00) has been replaced with
  599. bitwise-negation of the LZMA properties (lc/lp/pb). It was
  600. created for use in EROFS but may be used in other contexts
  601. as well where it is important to avoid wasting bytes for
  602. stream headers or footers. The format is also supported by
  603. XZ Embedded (the XZ Embedded version in Linux got MicroLZMA
  604. support in Linux 5.16).
  605. The MicroLZMA encoder API in liblzma can compress into a
  606. fixed-sized output buffer so that as much data is compressed
  607. as can be fit into the buffer while still creating a valid
  608. MicroLZMA stream. This is needed for EROFS.
  609. - Added lzma_lzip_decoder() to decompress the .lz (lzip) file
  610. format version 0 and the original unextended version 1 files.
  611. Also lzma_auto_decoder() supports .lz files.
  612. - lzma_filters_update() can now be used with the multi-threaded
  613. encoder (lzma_stream_encoder_mt()) to change the filter chain
  614. after LZMA_FULL_BARRIER or LZMA_FULL_FLUSH.
  615. - In lzma_options_lzma, allow nice_len = 2 and 3 with the match
  616. finders that require at least 3 or 4. Now it is internally
  617. rounded up if needed.
  618. - CLMUL-based CRC64 on x86-64 and E2K with runtime processor
  619. detection. On 32-bit x86 it currently isn't available unless
  620. --disable-assembler is used which can make the non-CLMUL
  621. CRC64 slower; this might be fixed in the future.
  622. - Building with --disable-threads --enable-small
  623. is now thread-safe if the compiler supports
  624. __attribute__((__constructor__)).
  625. * xz:
  626. - Using -T0 (--threads=0) will now use multi-threaded encoder
  627. even on a single-core system. This is to ensure that output
  628. from the same xz binary is identical on both single-core and
  629. multi-core systems.
  630. - --threads=+1 or -T+1 is now a way to put xz into
  631. multi-threaded mode while using only one worker thread.
  632. The + is ignored if the number is not 1.
  633. - A default soft memory usage limit is now used for compression
  634. when -T0 is used and no explicit limit has been specified.
  635. This soft limit is used to restrict the number of threads
  636. but if the limit is exceeded with even one thread then xz
  637. will continue with one thread using the multi-threaded
  638. encoder and this limit is ignored. If the number of threads
  639. is specified manually then no default limit will be used;
  640. this affects only -T0.
  641. This change helps on systems that have very many cores and
  642. using all of them for xz makes no sense. Previously xz -T0
  643. could run out of memory on such systems because it attempted
  644. to reserve memory for too many threads.
  645. This also helps with 32-bit builds which don't have a large
  646. amount of address space that would be required for many
  647. threads. The default soft limit for -T0 is at most 1400 MiB
  648. on all 32-bit platforms.
  649. - Previously a low value in --memlimit-compress wouldn't cause
  650. xz to switch from multi-threaded mode to single-threaded mode
  651. if the limit cannot otherwise be met; xz failed instead. Now
  652. xz can switch to single-threaded mode and then, if needed,
  653. scale down the LZMA2 dictionary size too just like it already
  654. did when it was started in single-threaded mode.
  655. - The option --no-adjust no longer prevents xz from scaling down
  656. the number of threads as that doesn't affect the compressed
  657. output (only performance). Now --no-adjust only prevents
  658. adjustments that affect compressed output, that is, with
  659. --no-adjust xz won't switch from multi-threaded mode to
  660. single-threaded mode and won't scale down the LZMA2
  661. dictionary size.
  662. - Added a new option --memlimit-mt-decompress=LIMIT. This is
  663. used to limit the number of decompressor threads (possibly
  664. falling back to single-threaded mode) but it will never make
  665. xz refuse to decompress a file. This has a system-specific
  666. default value because without any limit xz could end up
  667. allocating memory for the whole compressed input file, the
  668. whole uncompressed output file, multiple thread-specific
  669. decompressor instances and so on. Basically xz could
  670. attempt to use an insane amount of memory even with fairly
  671. common files. The system-specific default value is currently
  672. the same as the one used for compression with -T0.
  673. The new option works together with the existing option
  674. --memlimit-decompress=LIMIT. The old option sets a hard limit
  675. that must not be exceeded (xz will refuse to decompress)
  676. while the new option only restricts the number of threads.
  677. If the limit set with --memlimit-mt-decompress is greater
  678. than the limit set with --memlimit-compress, then the latter
  679. value is used also for --memlimit-mt-decompress.
  680. - Added new information to the output of xz --info-memory and
  681. new fields to the output of xz --robot --info-memory.
  682. - In --lzma2=nice=NUMBER allow 2 and 3 with all match finders
  683. now that liblzma handles it.
  684. - Don't mention endianness for ARM and ARM-Thumb filters in
  685. --long-help. The filters only work for little endian
  686. instruction encoding but modern ARM processors using
  687. big endian data access still use little endian
  688. instruction encoding. So the help text was misleading.
  689. In contrast, the PowerPC filter is only for big endian
  690. 32/64-bit PowerPC code. Little endian PowerPC would need
  691. a separate filter.
  692. - Added decompression support for the .lz (lzip) file format
  693. version 0 and the original unextended version 1. It is
  694. autodetected by default. See also the option --format on
  695. the xz man page.
  696. - Sandboxing enabled by default:
  697. * Capsicum (FreeBSD)
  698. * pledge(2) (OpenBSD)
  699. * Scripts now support the .lz format using xz.
  700. * A few new tests were added.
  701. * The liblzma-specific tests are now supported in CMake-based
  702. builds too ("make test").
  703. 5.3.5beta (2022-12-01)
  704. * All fixes from 5.2.9.
  705. * liblzma:
  706. - Added new LZMA_FILTER_LZMA1EXT for raw encoder and decoder to
  707. handle raw LZMA1 streams that don't have end of payload marker
  708. (EOPM) alias end of stream (EOS) marker. It can be used in
  709. filter chains, for example, with the x86 BCJ filter.
  710. - Added lzma_str_to_filters(), lzma_str_from_filters(), and
  711. lzma_str_list_filters() to make it easier for applications
  712. to get custom compression options from a user and convert
  713. it to an array of lzma_filter structures.
  714. - Added lzma_filters_free().
  715. - lzma_filters_update() can now be used with the multi-threaded
  716. encoder (lzma_stream_encoder_mt()) to change the filter chain
  717. after LZMA_FULL_BARRIER or LZMA_FULL_FLUSH.
  718. - In lzma_options_lzma, allow nice_len = 2 and 3 with the match
  719. finders that require at least 3 or 4. Now it is internally
  720. rounded up if needed.
  721. - ARM64 filter was modified. It is still experimental.
  722. - Fixed LTO build with Clang if -fgnuc-version=10 or similar
  723. was used to make Clang look like GCC >= 10. Now it uses
  724. __has_attribute(__symver__) which should be reliable.
  725. * xz:
  726. - --threads=+1 or -T+1 is now a way to put xz into multi-threaded
  727. mode while using only one worker thread.
  728. - In --lzma2=nice=NUMBER allow 2 and 3 with all match finders
  729. now that liblzma handles it.
  730. * Updated translations: Chinese (simplified), Korean, and Turkish.
  731. 5.3.4alpha (2022-11-15)
  732. * All fixes from 5.2.7 and 5.2.8.
  733. * liblzma:
  734. - Minor improvements to the threaded decoder.
  735. - Added CRC64 implementation that uses SSSE3, SSE4.1, and CLMUL
  736. instructions on 32/64-bit x86 and E2K. On 32-bit x86 it's
  737. not enabled unless --disable-assembler is used but then
  738. the non-CLMUL code might be slower. Processor support is
  739. detected at runtime so this is built by default on x86-64
  740. and E2K. On these platforms, if compiler flags indicate
  741. unconditional CLMUL support (-msse4.1 -mpclmul) then the
  742. generic version is not built, making liblzma 8-9 KiB smaller
  743. compared to having both versions included.
  744. With extremely compressible files this can make decompression
  745. up to twice as fast but with typical files 5 % improvement
  746. is a more realistic expectation.
  747. The CLMUL version is slower than the generic version with
  748. tiny inputs (especially at 1-8 bytes per call, but up to
  749. 16 bytes). In normal use in xz this doesn't matter at all.
  750. - Added an experimental ARM64 filter. This is *not* the final
  751. version! Files created with this experimental version won't
  752. be supported in the future versions! The filter design is
  753. a compromise where improving one use case makes some other
  754. cases worse.
  755. - Added decompression support for the .lz (lzip) file format
  756. version 0 and the original unextended version 1. See the
  757. API docs of lzma_lzip_decoder() for details. Also
  758. lzma_auto_decoder() supports .lz files.
  759. - Building with --disable-threads --enable-small
  760. is now thread-safe if the compiler supports
  761. __attribute__((__constructor__))
  762. * xz:
  763. - Added support for OpenBSD's pledge(2) as a sandboxing method.
  764. - Don't mention endianness for ARM and ARM-Thumb filters in
  765. --long-help. The filters only work for little endian
  766. instruction encoding but modern ARM processors using
  767. big endian data access still use little endian
  768. instruction encoding. So the help text was misleading.
  769. In contrast, the PowerPC filter is only for big endian
  770. 32/64-bit PowerPC code. Little endian PowerPC would need
  771. a separate filter.
  772. - Added --experimental-arm64. This will be renamed once the
  773. filter is finished. Files created with this experimental
  774. filter will not be supported in the future!
  775. - Added new fields to the output of xz --robot --info-memory.
  776. - Added decompression support for the .lz (lzip) file format
  777. version 0 and the original unextended version 1. It is
  778. autodetected by default. See also the option --format on
  779. the xz man page.
  780. * Scripts now support the .lz format using xz.
  781. * Build systems:
  782. - New #defines in config.h: HAVE_ENCODER_ARM64,
  783. HAVE_DECODER_ARM64, HAVE_LZIP_DECODER, HAVE_CPUID_H,
  784. HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR, HAVE_USABLE_CLMUL
  785. - New configure options: --disable-clmul-crc,
  786. --disable-microlzma, --disable-lzip-decoder, and
  787. 'pledge' is now an option in --enable-sandbox (but
  788. it's autodetected by default anyway).
  789. - INSTALL was updated to document the new configure options.
  790. - PACKAGERS now lists also --disable-microlzma and
  791. --disable-lzip-decoder as configure options that must
  792. not be used in builds for non-embedded use.
  793. * Tests:
  794. - Fix some of the tests so that they skip instead of fail if
  795. certain features have been disabled with configure options.
  796. It's still not perfect.
  797. - Other improvements to tests.
  798. * Updated translations: Croatian, Finnish, Hungarian, Polish,
  799. Romanian, Spanish, Swedish, and Ukrainian.
  800. 5.3.3alpha (2022-08-22)
  801. * All fixes from 5.2.6.
  802. * liblzma:
  803. - Fixed 32-bit build.
  804. - Added threaded .xz decompressor lzma_stream_decoder_mt().
  805. It can use multiple threads with .xz files that have multiple
  806. Blocks with size information in Block Headers. The threaded
  807. encoder in xz has always created such files.
  808. Single-threaded encoder cannot store the size information in
  809. Block Headers even if one used LZMA_FULL_FLUSH to create
  810. multiple Blocks, so this threaded decoder cannot use multiple
  811. threads with such files.
  812. If there are multiple Streams (concatenated .xz files), one
  813. Stream will be decompressed completely before starting the
  814. next Stream.
  815. - A new decoder flag LZMA_FAIL_FAST was added. It makes the
  816. threaded decompressor report errors soon instead of first
  817. flushing all pending data before the error location.
  818. * xz:
  819. - Using -T0 (--threads=0) will now use multi-threaded encoder
  820. even on a single-core system. This is to ensure that output
  821. from the same xz binary is identical on both single-core and
  822. multi-core systems.
  823. - A default soft memory usage limit is now used for compression
  824. when -T0 is used and no explicit limit has been specified.
  825. This soft limit is used to restrict the number of threads
  826. but if the limit is exceeded with even one thread then xz
  827. will continue with one thread using the multi-threaded
  828. encoder and this limit is ignored. If the number of threads
  829. is specified manually then no default limit will be used;
  830. this affects only -T0.
  831. This change helps on systems that have very many cores and
  832. using all of them for xz makes no sense. Previously xz -T0
  833. could run out of memory on such systems because it attempted
  834. to reserve memory for too many threads.
  835. This also helps with 32-bit builds which don't have a large
  836. amount of address space that would be required for many
  837. threads. The default limit is 1400 MiB on all 32-bit
  838. platforms with -T0.
  839. Now xz -T0 should just work. It might use too few threads
  840. in some cases but at least it shouldn't easily run out of
  841. memory. It's possible that this will be tweaked before 5.4.0.
  842. - Changes to --memlimit-compress and --no-adjust:
  843. In single-threaded mode, --memlimit-compress can make xz
  844. scale down the LZMA2 dictionary size to meet the memory usage
  845. limit. This obviously affects the compressed output. However,
  846. if xz was in threaded mode, --memlimit-compress could make xz
  847. reduce the number of threads but it wouldn't make xz switch
  848. from multi-threaded mode to single-threaded mode or scale
  849. down the LZMA2 dictionary size. This seemed illogical.
  850. Now --memlimit-compress can make xz switch to single-threaded
  851. mode if one thread in multi-threaded mode uses too much
  852. memory. If memory usage is still too high, then the LZMA2
  853. dictionary size can be scaled down too.
  854. The option --no-adjust was also changed so that it no longer
  855. prevents xz from scaling down the number of threads as that
  856. doesn't affect compressed output (only performance). After
  857. this commit --no-adjust only prevents adjustments that affect
  858. compressed output, that is, with --no-adjust xz won't switch
  859. from multithreaded mode to single-threaded mode and won't
  860. scale down the LZMA2 dictionary size.
  861. - Added a new option --memlimit-mt-decompress=LIMIT. This is
  862. used to limit the number of decompressor threads (possibly
  863. falling back to single-threaded mode) but it will never make
  864. xz refuse to decompress a file. This has a system-specific
  865. default value because without any limit xz could end up
  866. allocating memory for the whole compressed input file, the
  867. whole uncompressed output file, multiple thread-specific
  868. decompressor instances and so on. Basically xz could
  869. attempt to use an insane amount of memory even with fairly
  870. common files.
  871. The new option works together with the existing option
  872. --memlimit-decompress=LIMIT. The old option sets a hard limit
  873. that must not be exceeded (xz will refuse to decompress)
  874. while the new option only restricts the number of threads.
  875. If the limit set with --memlimit-mt-decompress is greater
  876. than the limit set with --memlimit-compress, then the latter
  877. value is used also for --memlimit-mt-decompress.
  878. * Tests:
  879. - Added a few more tests.
  880. - Added tests/code_coverage.sh to create a code coverage report
  881. of the tests.
  882. * Build systems:
  883. - Automake's parallel test harness is now used to make tests
  884. finish faster.
  885. - Added the CMake files to the distribution tarball. These were
  886. supposed to be in 5.2.5 already.
  887. - Added liblzma tests to the CMake build.
  888. - Windows: Fix building of liblzma.dll with the included
  889. Visual Studio project files.
  890. 5.3.2alpha (2021-10-28)
  891. This release was made on short notice so that recent erofs-utils can
  892. be built with LZMA support without needing a snapshot from xz.git.
  893. Thus many pending things were not included, not even updated
  894. translations (which would need to be updated for the new --list
  895. strings anyway).
  896. * All fixes from 5.2.5.
  897. * xz:
  898. - When copying metadata from the source file to the destination
  899. file, don't try to set the group (GID) if it is already set
  900. correctly. This avoids a failure on OpenBSD (and possibly on
  901. a few other OSes) where files may get created so that their
  902. group doesn't belong to the user, and fchown(2) can fail even
  903. if it needs to do nothing.
  904. - The --keep option now accepts symlinks, hardlinks, and
  905. setuid, setgid, and sticky files. Previously this required
  906. using --force.
  907. - Split the long strings used in --list and --info-memory modes
  908. to make them much easier for translators.
  909. - If built with sandbox support and enabling the sandbox fails,
  910. xz will now immediately exit with exit status of 1. Previously
  911. it would only display a warning if -vv was used.
  912. - Cap --memlimit-compress to 2000 MiB on MIPS32 because on
  913. MIPS32 userspace processes are limited to 2 GiB of address
  914. space.
  915. * liblzma:
  916. - Added lzma_microlzma_encoder() and lzma_microlzma_decoder().
  917. The API is in lzma/container.h.
  918. The MicroLZMA format is a raw LZMA stream (without end marker)
  919. whose first byte (always 0x00) has been replaced with
  920. bitwise-negation of the LZMA properties (lc/lp/pb). It was
  921. created for use in EROFS but may be used in other contexts
  922. as well where it is important to avoid wasting bytes for
  923. stream headers or footers. The format is also supported by
  924. XZ Embedded.
  925. The MicroLZMA encoder API in liblzma can compress into a
  926. fixed-sized output buffer so that as much data is compressed
  927. as can be fit into the buffer while still creating a valid
  928. MicroLZMA stream. This is needed for EROFS.
  929. - Added fuzzing support.
  930. - Support Intel Control-flow Enforcement Technology (CET) in
  931. 32-bit x86 assembly files.
  932. - Visual Studio: Use non-standard _MSVC_LANG to detect C++
  933. standard version in the lzma.h API header. It's used to
  934. detect when "noexcept" can be used.
  935. * Scripts:
  936. - Fix exit status of xzdiff/xzcmp. Exit status could be 2 when
  937. the correct value is 1.
  938. - Fix exit status of xzgrep.
  939. - Detect corrupt .bz2 files in xzgrep.
  940. - Add zstd support to xzgrep and xzdiff/xzcmp.
  941. - Fix less(1) version detection in xzless. It failed if the
  942. version number from "less -V" contained a dot.
  943. * Fix typos and technical issues in man pages.
  944. * Build systems:
  945. - Windows: Fix building of resource files when config.h isn't
  946. used. CMake + Visual Studio can now build liblzma.dll.
  947. - Various fixes to the CMake support. It might still need a few
  948. more fixes even for liblzma-only builds.
  949. 5.3.1alpha (2018-04-29)
  950. * All fixes from 5.2.4.
  951. * Add lzma_file_info_decoder() into liblzma and use it in xz to
  952. implement the --list feature.
  953. * Capsicum sandbox support is enabled by default where available
  954. (FreeBSD >= 10).
  955. 5.2.13 (2024-05-29)
  956. * liblzma:
  957. - lzma_index_append(): Fix an assertion failure that could be
  958. triggered by a large unpadded_size argument. It was verified
  959. that there was no other bug than the assertion failure.
  960. - lzma_index_decoder() and lzma_index_buffer_decode(): Fix
  961. a missing output pointer initialization (*i = NULL) if the
  962. functions are called with invalid arguments. The API docs
  963. say that such an initialization is always done. In practice
  964. this matters very little because the problem can only occur
  965. if the calling application has a bug and these functions
  966. return LZMA_PROG_ERROR.
  967. - Fix C standard conformance with function pointer types.
  968. This newly showed up with Clang 17 with -fsanitize=undefined.
  969. There are no bug reports about this.
  970. - Fix building with NVIDIA HPC SDK.
  971. - Fix building with Windows Vista threads and --enable-small.
  972. (CMake build doesn't support ENABLE_SMALL in XZ Utils 5.2.x.)
  973. * xz:
  974. - Fix a C standard conformance issue in --block-list parsing
  975. (arithmetic on a null pointer).
  976. - Fix a warning from GNU groff when processing the man page:
  977. "warning: cannot select font 'CW'"
  978. - Windows: Handle special files such as "con" or "nul". Earlier
  979. the following wrote "foo" to the console and deleted the input
  980. file "con_xz":
  981. echo foo | xz > con_xz
  982. xz --suffix=_xz --decompress con_xz
  983. - Windows: Fix an issue that prevented reading from or writing
  984. to non-terminal character devices like NUL.
  985. * xzless:
  986. - With "less" version 451 and later, use "||-" instead of "|-"
  987. in the environment variable LESSOPEN. This way compressed
  988. files that contain no uncompressed data are shown correctly
  989. as empty.
  990. - With "less" version 632 and later, use --show-preproc-errors
  991. to make "less" show a warning on decompression errors.
  992. * Build systems:
  993. - Add a new line to liblzma.pc for MSYS2 (Windows):
  994. Cflags.private: -DLZMA_API_STATIC
  995. When compiling code that will link against static liblzma,
  996. the LZMA_API_STATIC macro needs to be defined on Windows.
  997. - Autotools (configure):
  998. * Symbol versioning variant can now be overridden with
  999. --enable-symbol-versions. Documentation in INSTALL was
  1000. updated to match.
  1001. - CMake:
  1002. * Fix a bug that prevented other projects from including
  1003. liblzma multiple times using find_package().
  1004. * Fix a bug where configuring CMake multiple times resulted
  1005. in HAVE_CLOCK_GETTIME and HAVE_CLOCK_MONOTONIC not being
  1006. defined.
  1007. * Fix the build with MinGW-w64-based Clang/LLVM 17.
  1008. llvm-windres now has more accurate GNU windres emulation
  1009. so the GNU windres workaround from 5.4.1 is needed with
  1010. llvm-windres version 17 too.
  1011. * The import library on Windows is now properly named
  1012. "liblzma.dll.a" instead of "libliblzma.dll.a"
  1013. * Add large file support by default for platforms that
  1014. need it to handle files larger than 2 GiB. This includes
  1015. MinGW-w64, even 64-bit builds.
  1016. * Linux on MicroBlaze is handled specially now. This
  1017. matches the changes made to the Autotools-based build
  1018. in XZ Utils 5.4.2 and 5.2.11.
  1019. * Disable symbol versioning on non-glibc Linux to match
  1020. what the Autotools build does. For example, symbol
  1021. versioning isn't enabled with musl.
  1022. * Symbol versioning variant can now be overridden by
  1023. setting SYMBOL_VERSIONING to "OFF", "generic", or
  1024. "linux".
  1025. * Documentation:
  1026. - Clarify the description of --disable-assembler in INSTALL.
  1027. The option only affects 32-bit x86 assembly usage.
  1028. - Don't install the TODO file as part of the documentation.
  1029. The file is out of date.
  1030. - Update home page URLs back to their old locations on
  1031. tukaani.org.
  1032. - Update maintainer info.
  1033. 5.2.12 (2023-05-04)
  1034. * Fixed a build system bug that prevented building liblzma as a
  1035. shared library when configured with --disable-threads. This bug
  1036. affected releases 5.2.6 to 5.2.11 and 5.4.0 to 5.4.2.
  1037. * Include <intrin.h> for Windows intrinsic functions where they are
  1038. needed. This fixed a bug that prevented building liblzma using
  1039. clang-cl on Windows.
  1040. * Minor update to the Croatian translation. The small change
  1041. applies to a string in both 5.2 and 5.4 branches.
  1042. 5.2.11 (2023-03-18)
  1043. * Removed all possible cases of null pointer + 0. It is undefined
  1044. behavior in C99 and C17. This was detected by a sanitizer and had
  1045. not caused any known issues.
  1046. * Build systems:
  1047. - Added a workaround for building with GCC on MicroBlaze Linux.
  1048. GCC 12 on MicroBlaze doesn't support the __symver__ attribute
  1049. even though __has_attribute(__symver__) returns true. The
  1050. build is now done without the extra RHEL/CentOS 7 symbols
  1051. that were added in XZ Utils 5.2.7. The workaround only
  1052. applies to the Autotools build (not CMake).
  1053. - CMake: Ensure that the C compiler language is set to C99 or
  1054. a newer standard.
  1055. - CMake changes from XZ Utils 5.4.1:
  1056. * Added a workaround for a build failure with
  1057. windres from GNU binutils.
  1058. * Included the Windows resource files in the xz
  1059. and xzdec build rules.
  1060. 5.2.10 (2022-12-13)
  1061. * xz: Don't modify argv[] when parsing the --memlimit* and
  1062. --block-list command line options. This fixes confusing
  1063. arguments in process listing (like "ps auxf").
  1064. * GNU/Linux only: Use __has_attribute(__symver__) to detect if
  1065. that attribute is supported. This fixes build on Mandriva where
  1066. Clang is patched to define __GNUC__ to 11 by default (instead
  1067. of 4 as used by Clang upstream).
  1068. 5.2.9 (2022-11-30)
  1069. * liblzma:
  1070. - Fixed an infinite loop in LZMA encoder initialization
  1071. if dict_size >= 2 GiB. (The encoder only supports up
  1072. to 1536 MiB.)
  1073. - Fixed two cases of invalid free() that can happen if
  1074. a tiny allocation fails in encoder re-initialization
  1075. or in lzma_filters_update(). These bugs had some
  1076. similarities with the bug fixed in 5.2.7.
  1077. - Fixed lzma_block_encoder() not allowing the use of
  1078. LZMA_SYNC_FLUSH with lzma_code() even though it was
  1079. documented to be supported. The sync-flush code in
  1080. the Block encoder was already used internally via
  1081. lzma_stream_encoder(), so this was just a missing flag
  1082. in the lzma_block_encoder() API function.
  1083. - GNU/Linux only: Don't put symbol versions into static
  1084. liblzma as it breaks things in some cases (and even if
  1085. it didn't break anything, symbol versions in static
  1086. libraries are useless anyway). The downside of the fix
  1087. is that if the configure options --with-pic or --without-pic
  1088. are used then it's not possible to build both shared and
  1089. static liblzma at the same time on GNU/Linux anymore;
  1090. with those options --disable-static or --disable-shared
  1091. must be used too.
  1092. * New email address for bug reports is <xz@tukaani.org> which
  1093. forwards messages to Lasse Collin and Jia Tan.
  1094. 5.2.8 (2022-11-13)
  1095. * xz:
  1096. - If xz cannot remove an input file when it should, this
  1097. is now treated as a warning (exit status 2) instead of
  1098. an error (exit status 1). This matches GNU gzip and it
  1099. is more logical as at that point the output file has
  1100. already been successfully closed.
  1101. - Fix handling of .xz files with an unsupported check type.
  1102. Previously such printed a warning message but then xz
  1103. behaved as if an error had occurred (didn't decompress,
  1104. exit status 1). Now a warning is printed, decompression
  1105. is done anyway, and exit status is 2. This used to work
  1106. slightly before 5.0.0. In practice this bug matters only
  1107. if xz has been built with some check types disabled. As
  1108. instructed in PACKAGERS, such builds should be done in
  1109. special situations only.
  1110. - Fix "xz -dc --single-stream tests/files/good-0-empty.xz"
  1111. which failed with "Internal error (bug)". That is,
  1112. --single-stream was broken if the first .xz stream in
  1113. the input file didn't contain any uncompressed data.
  1114. - Fix displaying file sizes in the progress indicator when
  1115. working in passthru mode and there are multiple input files.
  1116. Just like "gzip -cdf", "xz -cdf" works like "cat" when the
  1117. input file isn't a supported compressed file format. In
  1118. this case the file size counters weren't reset between
  1119. files so with multiple input files the progress indicator
  1120. displayed an incorrect (too large) value.
  1121. * liblzma:
  1122. - API docs in lzma/container.h:
  1123. * Update the list of decoder flags in the decoder
  1124. function docs.
  1125. * Explain LZMA_CONCATENATED behavior with .lzma files
  1126. in lzma_auto_decoder() docs.
  1127. - OpenBSD: Use HW_NCPUONLINE to detect the number of
  1128. available hardware threads in lzma_physmem().
  1129. - Fix use of wrong macro to detect x86 SSE2 support.
  1130. __SSE2_MATH__ was used with GCC/Clang but the correct
  1131. one is __SSE2__. The first one means that SSE2 is used
  1132. for floating point math which is irrelevant here.
  1133. The affected SSE2 code isn't used on x86-64 so this affects
  1134. only 32-bit x86 builds that use -msse2 without -mfpmath=sse
  1135. (there is no runtime detection for SSE2). It improves LZMA
  1136. compression speed (not decompression).
  1137. - Fix the build with Intel C compiler 2021 (ICC, not ICX)
  1138. on Linux. It defines __GNUC__ to 10 but doesn't support
  1139. the __symver__ attribute introduced in GCC 10.
  1140. * Scripts: Ignore warnings from xz by using --quiet --no-warn.
  1141. This is needed if the input .xz files use an unsupported
  1142. check type.
  1143. * Translations:
  1144. - Updated Croatian and Turkish translations.
  1145. - One new translations wasn't included because it needed
  1146. technical fixes. It will be in upcoming 5.4.0. No new
  1147. translations will be added to the 5.2.x branch anymore.
  1148. - Renamed the French man page translation file from
  1149. fr_FR.po to fr.po and thus also its install directory
  1150. (like /usr/share/man/fr_FR -> .../fr).
  1151. - Man page translations for upcoming 5.4.0 are now handled
  1152. in the Translation Project.
  1153. * Update doc/faq.txt a little so it's less out-of-date.
  1154. 5.2.7 (2022-09-30)
  1155. * liblzma:
  1156. - Made lzma_filters_copy() to never modify the destination
  1157. array if an error occurs. lzma_stream_encoder() and
  1158. lzma_stream_encoder_mt() already assumed this. Before this
  1159. change, if a tiny memory allocation in lzma_filters_copy()
  1160. failed it would lead to a crash (invalid free() or invalid
  1161. memory reads) in the cleanup paths of these two encoder
  1162. initialization functions.
  1163. - Added missing integer overflow check to lzma_index_append().
  1164. This affects xz --list and other applications that decode
  1165. the Index field from .xz files using lzma_index_decoder().
  1166. Normal decompression of .xz files doesn't call this code
  1167. and thus most applications using liblzma aren't affected
  1168. by this bug.
  1169. - Single-threaded .xz decoder (lzma_stream_decoder()): If
  1170. lzma_code() returns LZMA_MEMLIMIT_ERROR it is now possible
  1171. to use lzma_memlimit_set() to increase the limit and continue
  1172. decoding. This was supposed to work from the beginning
  1173. but there was a bug. With other decoders (.lzma or
  1174. threaded .xz decoder) this already worked correctly.
  1175. - Fixed accumulation of integrity check type statistics in
  1176. lzma_index_cat(). This bug made lzma_index_checks() return
  1177. only the type of the integrity check of the last Stream
  1178. when multiple lzma_indexes were concatenated. Most
  1179. applications don't use these APIs but in xz it made
  1180. xz --list not list all check types from concatenated .xz
  1181. files. In xz --list --verbose only the per-file "Check:"
  1182. lines were affected and in xz --robot --list only the "file"
  1183. line was affected.
  1184. - Added ABI compatibility with executables that were linked
  1185. against liblzma in RHEL/CentOS 7 or other liblzma builds
  1186. that had copied the problematic patch from RHEL/CentOS 7
  1187. (xz-5.2.2-compat-libs.patch). For the details, see the
  1188. comment at the top of src/liblzma/validate_map.sh.
  1189. WARNING: This uses __symver__ attribute with GCC >= 10.
  1190. In other cases the traditional __asm__(".symver ...")
  1191. is used. Using link-time optimization (LTO, -flto) with
  1192. GCC versions older than 10 can silently result in
  1193. broken liblzma.so.5 (incorrect symbol versions)! If you
  1194. want to use -flto with GCC, you must use GCC >= 10.
  1195. LTO with Clang seems to work even with the traditional
  1196. __asm__(".symver ...") method.
  1197. * xzgrep: Fixed compatibility with old shells that break if
  1198. comments inside command substitutions have apostrophes (').
  1199. This problem was introduced in 5.2.6.
  1200. * Build systems:
  1201. - New #define in config.h: HAVE_SYMBOL_VERSIONS_LINUX
  1202. - Windows: Fixed liblzma.dll build with Visual Studio project
  1203. files. It broke in 5.2.6 due to a change that was made to
  1204. improve CMake support.
  1205. - Windows: Building liblzma with UNICODE defined should now
  1206. work.
  1207. - CMake files are now actually included in the release tarball.
  1208. They should have been in 5.2.5 already.
  1209. - Minor CMake fixes and improvements.
  1210. * Added a new translation: Turkish
  1211. 5.2.6 (2022-08-12)
  1212. * xz:
  1213. - The --keep option now accepts symlinks, hardlinks, and
  1214. setuid, setgid, and sticky files. Previously this required
  1215. using --force.
  1216. - When copying metadata from the source file to the destination
  1217. file, don't try to set the group (GID) if it is already set
  1218. correctly. This avoids a failure on OpenBSD (and possibly on
  1219. a few other OSes) where files may get created so that their
  1220. group doesn't belong to the user, and fchown(2) can fail even
  1221. if it needs to do nothing.
  1222. - Cap --memlimit-compress to 2000 MiB instead of 4020 MiB on
  1223. MIPS32 because on MIPS32 userspace processes are limited
  1224. to 2 GiB of address space.
  1225. * liblzma:
  1226. - Fixed a missing error-check in the threaded encoder. If a
  1227. small memory allocation fails, a .xz file with an invalid
  1228. Index field would be created. Decompressing such a file would
  1229. produce the correct output but result in an error at the end.
  1230. Thus this is a "mild" data corruption bug. Note that while
  1231. a failed memory allocation can trigger the bug, it cannot
  1232. cause invalid memory access.
  1233. - The decoder for .lzma files now supports files that have
  1234. uncompressed size stored in the header and still use the
  1235. end of payload marker (end of stream marker) at the end
  1236. of the LZMA stream. Such files are rare but, according to
  1237. the documentation in LZMA SDK, they are valid.
  1238. doc/lzma-file-format.txt was updated too.
  1239. - Improved 32-bit x86 assembly files:
  1240. * Support Intel Control-flow Enforcement Technology (CET)
  1241. * Use non-executable stack on FreeBSD.
  1242. - Visual Studio: Use non-standard _MSVC_LANG to detect C++
  1243. standard version in the lzma.h API header. It's used to
  1244. detect when "noexcept" can be used.
  1245. * xzgrep:
  1246. - Fixed arbitrary command injection via a malicious filename
  1247. (CVE-2022-1271, ZDI-CAN-16587). A standalone patch for
  1248. this was released to the public on 2022-04-07. A slight
  1249. robustness improvement has been made since then and, if
  1250. using GNU or *BSD grep, a new faster method is now used
  1251. that doesn't use the old sed-based construct at all. This
  1252. also fixes bad output with GNU grep >= 3.5 (2020-09-27)
  1253. when xzgrepping binary files.
  1254. This vulnerability was discovered by:
  1255. cleemy desu wayo working with Trend Micro Zero Day Initiative
  1256. - Fixed detection of corrupt .bz2 files.
  1257. - Improved error handling to fix exit status in some situations
  1258. and to fix handling of signals: in some situations a signal
  1259. didn't make xzgrep exit when it clearly should have. It's
  1260. possible that the signal handling still isn't quite perfect
  1261. but hopefully it's good enough.
  1262. - Documented exit statuses on the man page.
  1263. - xzegrep and xzfgrep now use "grep -E" and "grep -F" instead
  1264. of the deprecated egrep and fgrep commands.
  1265. - Fixed parsing of the options -E, -F, -G, -P, and -X. The
  1266. problem occurred when multiple options were specified in
  1267. a single argument, for example,
  1268. echo foo | xzgrep -Fe foo
  1269. treated foo as a filename because -Fe wasn't correctly
  1270. split into -F -e.
  1271. - Added zstd support.
  1272. * xzdiff/xzcmp:
  1273. - Fixed wrong exit status. Exit status could be 2 when the
  1274. correct value is 1.
  1275. - Documented on the man page that exit status of 2 is used
  1276. for decompression errors.
  1277. - Added zstd support.
  1278. * xzless:
  1279. - Fix less(1) version detection. It failed if the version number
  1280. from "less -V" contained a dot.
  1281. * Translations:
  1282. - Added new translations: Catalan, Croatian, Esperanto,
  1283. Korean, Portuguese, Romanian, Serbian, Spanish, Swedish,
  1284. and Ukrainian
  1285. - Updated the Brazilian Portuguese translation.
  1286. - Added French man page translation. This and the existing
  1287. German translation aren't complete anymore because the
  1288. English man pages got a few updates and the translators
  1289. weren't reached so that they could update their work.
  1290. * Build systems:
  1291. - Windows: Fix building of resource files when config.h isn't
  1292. used. CMake + Visual Studio can now build liblzma.dll.
  1293. - Various fixes to the CMake support. Building static or shared
  1294. liblzma should work fine in most cases. In contrast, building
  1295. the command line tools with CMake is still clearly incomplete
  1296. and experimental and should be used for testing only.
  1297. 5.2.5 (2020-03-17)
  1298. * liblzma:
  1299. - Fixed several C99/C11 conformance bugs. Now the code is clean
  1300. under gcc/clang -fsanitize=undefined. Some of these changes
  1301. might have a negative effect on performance with old GCC
  1302. versions or compilers other than GCC and Clang. The configure
  1303. option --enable-unsafe-type-punning can be used to (mostly)
  1304. restore the old behavior but it shouldn't normally be used.
  1305. - Improved API documentation of lzma_properties_decode().
  1306. - Added a very minor encoder speed optimization.
  1307. * xz:
  1308. - Fixed a crash in "xz -dcfv not_an_xz_file". All four options
  1309. were required to trigger it. The crash occurred in the
  1310. progress indicator code when xz was in passthru mode where
  1311. xz works like "cat".
  1312. - Fixed an integer overflow with 32-bit off_t. It could happen
  1313. when decompressing a file that has a long run of zero bytes
  1314. which xz would try to write as a sparse file. Since the build
  1315. system enables large file support by default, off_t is
  1316. normally 64-bit even on 32-bit systems.
  1317. - Fixes for --flush-timeout:
  1318. * Fix semi-busy-waiting.
  1319. * Avoid unneeded flushes when no new input has arrived
  1320. since the previous flush was completed.
  1321. - Added a special case for 32-bit xz: If --memlimit-compress is
  1322. used to specify a limit that exceeds 4020 MiB, the limit will
  1323. be set to 4020 MiB. The values "0" and "max" aren't affected
  1324. by this and neither is decompression. This hack can be
  1325. helpful when a 32-bit xz has access to 4 GiB address space
  1326. but the specified memlimit exceeds 4 GiB. This can happen
  1327. e.g. with some scripts.
  1328. - Capsicum sandbox is now enabled by default where available
  1329. (FreeBSD >= 10). The sandbox debug messages (xz -vv) were
  1330. removed since they seemed to be more annoying than useful.
  1331. - DOS build now requires DJGPP 2.05 instead of 2.04beta.
  1332. A workaround for a locale problem with DJGPP 2.05 was added.
  1333. * xzgrep and other scripts:
  1334. - Added a configure option --enable-path-for-scripts=PREFIX.
  1335. It is disabled by default except on Solaris where the default
  1336. is /usr/xpg4/bin. See INSTALL for details.
  1337. - Added a workaround for a POSIX shell detection problem on
  1338. Solaris.
  1339. * Build systems:
  1340. - Added preliminary build instructions for z/OS. See INSTALL
  1341. section 1.2.9.
  1342. - Experimental CMake support was added. It should work to build
  1343. static liblzma on a few operating systems. It may or may not
  1344. work to build shared liblzma. On some platforms it can build
  1345. xz and xzdec too but those are only for testing. See the
  1346. comment in the beginning of CMakeLists.txt for details.
  1347. - Visual Studio project files were updated.
  1348. WindowsTargetPlatformVersion was removed from VS2017 files
  1349. and set to "10.0" in the added VS2019 files. In the future
  1350. the VS project files will be removed when CMake support is
  1351. good enough.
  1352. - New #defines in config.h: HAVE___BUILTIN_ASSUME_ALIGNED,
  1353. HAVE___BUILTIN_BSWAPXX, and TUKLIB_USE_UNSAFE_TYPE_PUNNING.
  1354. - autogen.sh has a new optional dependency on po4a and a new
  1355. option --no-po4a to skip that step. This matters only if one
  1356. wants to remake the build files. po4a is used to update the
  1357. translated man pages but as long as the man pages haven't
  1358. been modified, there's nothing to update and one can use
  1359. --no-po4a to avoid the dependency on po4a.
  1360. * Translations:
  1361. - XZ Utils translations are now handled by the Translation
  1362. Project: https://translationproject.org/domain/xz.html
  1363. - All man pages are now included in German too.
  1364. - New xz translations: Brazilian Portuguese, Finnish,
  1365. Hungarian, Chinese (simplified), Chinese (traditional),
  1366. and Danish (partial translation)
  1367. - Updated xz translations: French, German, Italian, and Polish
  1368. - Unfortunately a few new xz translations weren't included due
  1369. to technical problems like too long lines in --help output or
  1370. misaligned column headings in tables. In the future, many of
  1371. these strings will be split and e.g. the table column
  1372. alignment will be handled in software. This should make the
  1373. strings easier to translate.
  1374. 5.2.4 (2018-04-29)
  1375. * liblzma:
  1376. - Allow 0 as memory usage limit instead of returning
  1377. LZMA_PROG_ERROR. Now 0 is treated as if 1 byte was specified,
  1378. which effectively is the same as 0.
  1379. - Use "noexcept" keyword instead of "throw()" in the public
  1380. headers when a C++11 (or newer standard) compiler is used.
  1381. - Added a portability fix for recent Intel C Compilers.
  1382. - Microsoft Visual Studio build files have been moved under
  1383. windows/vs2013 and windows/vs2017.
  1384. * xz:
  1385. - Fix "xz --list --robot missing_or_bad_file.xz" which would
  1386. try to print an uninitialized string and thus produce garbage
  1387. output. Since the exit status is non-zero, most uses of such
  1388. a command won't try to interpret the garbage output.
  1389. - "xz --list foo.xz" could print "Internal error (bug)" in a
  1390. corner case where a specific memory usage limit had been set.
  1391. 5.2.3 (2016-12-30)
  1392. * xz:
  1393. - Always close a file before trying to delete it to avoid
  1394. problems on some operating system and file system combinations.
  1395. - Fixed copying of file timestamps on Windows.
  1396. - Added experimental (disabled by default) sandbox support using
  1397. Capsicum (FreeBSD >= 10). See --enable-sandbox in INSTALL.
  1398. * C99/C11 conformance fixes to liblzma. The issues affected at least
  1399. some builds using link-time optimizations.
  1400. * Fixed bugs in the rarely-used function lzma_index_dup().
  1401. * Use of external SHA-256 code is now disabled by default.
  1402. It can still be enabled by passing --enable-external-sha256
  1403. to configure. The reasons to disable it by default (see INSTALL
  1404. for more details):
  1405. - Some OS-specific SHA-256 implementations conflict with
  1406. OpenSSL and cause problems in programs that link against both
  1407. liblzma and libcrypto. At least FreeBSD 10 and MINIX 3.3.0
  1408. are affected.
  1409. - The internal SHA-256 is faster than the SHA-256 code in
  1410. some operating systems.
  1411. * Changed CPU core count detection to use sched_getaffinity() on
  1412. GNU/Linux and GNU/kFreeBSD.
  1413. * Fixes to the build-system and xz to make xz buildable even when
  1414. encoders, decoders, or threading have been disabled from libilzma
  1415. using configure options. These fixes added two new #defines to
  1416. config.h: HAVE_ENCODERS and HAVE_DECODERS.
  1417. 5.2.2 (2015-09-29)
  1418. * Fixed bugs in QNX-specific code.
  1419. * Omitted the use of pipe2() even if it is available to avoid
  1420. portability issues with some old Linux and glibc combinations.
  1421. * Updated German translation.
  1422. * Added project files to build static and shared liblzma (not the
  1423. whole XZ Utils) with Visual Studio 2013 update 2 or later.
  1424. * Documented that threaded decompression hasn't been implemented
  1425. yet. A 5.2.0 NEWS entry describing multi-threading support had
  1426. incorrectly said "decompression" when it should have said
  1427. "compression".
  1428. 5.2.1 (2015-02-26)
  1429. * Fixed a compression-ratio regression in fast mode of LZMA1 and
  1430. LZMA2. The bug is present in 5.1.4beta and 5.2.0 releases.
  1431. * Fixed a portability problem in xz that affected at least OpenBSD.
  1432. * Fixed xzdiff to be compatible with FreeBSD's mktemp which differs
  1433. from most other mktemp implementations.
  1434. * Changed CPU core count detection to use cpuset_getaffinity() on
  1435. FreeBSD.
  1436. 5.2.0 (2014-12-21)
  1437. Since 5.1.4beta:
  1438. * All fixes from 5.0.8
  1439. * liblzma: Fixed lzma_stream_encoder_mt_memusage() when a preset
  1440. was used.
  1441. * xzdiff: If mktemp isn't installed, mkdir will be used as
  1442. a fallback to create a temporary directory. Installing mktemp
  1443. is still recommended.
  1444. * Updated French, German, Italian, Polish, and Vietnamese
  1445. translations.
  1446. Summary of fixes and new features added in the 5.1.x development
  1447. releases:
  1448. * liblzma:
  1449. - Added support for multi-threaded compression. See the
  1450. lzma_mt structure, lzma_stream_encoder_mt(), and
  1451. lzma_stream_encoder_mt_memusage() in <lzma/container.h>,
  1452. lzma_get_progress() in <lzma/base.h>, and lzma_cputhreads()
  1453. in <lzma/hardware.h> for details.
  1454. - Made the uses of lzma_allocator const correct.
  1455. - Added lzma_block_uncomp_encode() to create uncompressed
  1456. .xz Blocks using LZMA2 uncompressed chunks.
  1457. - Added support for LZMA_IGNORE_CHECK.
  1458. - A few speed optimizations were made.
  1459. - Added support for symbol versioning. It is enabled by default
  1460. on GNU/Linux, other GNU-based systems, and FreeBSD.
  1461. - liblzma (not the whole XZ Utils) should now be buildable
  1462. with MSVC 2013 update 2 or later using windows/config.h.
  1463. * xz:
  1464. - Fixed a race condition in the signal handling. It was
  1465. possible that e.g. the first SIGINT didn't make xz exit
  1466. if reading or writing blocked and one had bad luck. The fix
  1467. is non-trivial, so as of writing it is unknown if it will be
  1468. backported to the v5.0 branch.
  1469. - Multi-threaded compression can be enabled with the
  1470. --threads (-T) option.
  1471. [Fixed: This originally said "decompression".]
  1472. - New command line options in xz: --single-stream,
  1473. --block-size=SIZE, --block-list=SIZES,
  1474. --flush-timeout=TIMEOUT, and --ignore-check.
  1475. - xz -lvv now shows the minimum xz version that is required to
  1476. decompress the file. Currently it is 5.0.0 for all supported
  1477. .xz files except files with empty LZMA2 streams require 5.0.2.
  1478. * xzdiff and xzgrep now support .lzo files if lzop is installed.
  1479. The .tzo suffix is also recognized as a shorthand for .tar.lzo.
  1480. 5.1.4beta (2014-09-14)
  1481. * All fixes from 5.0.6
  1482. * liblzma: Fixed the use of presets in threaded encoder
  1483. initialization.
  1484. * xz --block-list and --block-size can now be used together
  1485. in single-threaded mode. Previously the combination only
  1486. worked in multi-threaded mode.
  1487. * Added support for LZMA_IGNORE_CHECK to liblzma and made it
  1488. available in xz as --ignore-check.
  1489. * liblzma speed optimizations:
  1490. - Initialization of a new LZMA1 or LZMA2 encoder has been
  1491. optimized. (The speed of reinitializing an already-allocated
  1492. encoder isn't affected.) This helps when compressing many
  1493. small buffers with lzma_stream_buffer_encode() and other
  1494. similar situations where an already-allocated encoder state
  1495. isn't reused. This speed-up is visible in xz too if one
  1496. compresses many small files one at a time instead running xz
  1497. once and giving all files as command-line arguments.
  1498. - Buffer comparisons are now much faster when unaligned access
  1499. is allowed (configured with --enable-unaligned-access). This
  1500. speeds up encoding significantly. There is arch-specific code
  1501. for 32-bit and 64-bit x86 (32-bit needs SSE2 for the best
  1502. results and there's no run-time CPU detection for now).
  1503. For other archs there is only generic code which probably
  1504. isn't as optimal as arch-specific solutions could be.
  1505. - A few speed optimizations were made to the SHA-256 code.
  1506. (Note that the builtin SHA-256 code isn't used on all
  1507. operating systems.)
  1508. * liblzma can now be built with MSVC 2013 update 2 or later
  1509. using windows/config.h.
  1510. * Vietnamese translation was added.
  1511. 5.1.3alpha (2013-10-26)
  1512. * All fixes from 5.0.5
  1513. * liblzma:
  1514. - Fixed a deadlock in the threaded encoder.
  1515. - Made the uses of lzma_allocator const correct.
  1516. - Added lzma_block_uncomp_encode() to create uncompressed
  1517. .xz Blocks using LZMA2 uncompressed chunks.
  1518. - Added support for native threads on Windows and the ability
  1519. to detect the number of CPU cores.
  1520. * xz:
  1521. - Fixed a race condition in the signal handling. It was
  1522. possible that e.g. the first SIGINT didn't make xz exit
  1523. if reading or writing blocked and one had bad luck. The fix
  1524. is non-trivial, so as of writing it is unknown if it will be
  1525. backported to the v5.0 branch.
  1526. - Made the progress indicator work correctly in threaded mode.
  1527. - Threaded encoder now works together with --block-list=SIZES.
  1528. - Added preliminary support for --flush-timeout=TIMEOUT.
  1529. It can be useful for (somewhat) real-time streaming. For
  1530. now the decompression side has to be done with something
  1531. else than the xz tool due to how xz does buffering, but this
  1532. should be fixed.
  1533. 5.1.2alpha (2012-07-04)
  1534. * All fixes from 5.0.3 and 5.0.4
  1535. * liblzma:
  1536. - Fixed a deadlock and an invalid free() in the threaded encoder.
  1537. - Added support for symbol versioning. It is enabled by default
  1538. on GNU/Linux, other GNU-based systems, and FreeBSD.
  1539. - Use SHA-256 implementation from the operating system if one is
  1540. available in libc, libmd, or libutil. liblzma won't use e.g.
  1541. OpenSSL or libgcrypt to avoid introducing new dependencies.
  1542. - Fixed liblzma.pc for static linking.
  1543. - Fixed a few portability bugs.
  1544. * xz --decompress --single-stream now fixes the input position after
  1545. successful decompression. Now the following works:
  1546. echo foo | xz > foo.xz
  1547. echo bar | xz >> foo.xz
  1548. ( xz -dc --single-stream ; xz -dc --single-stream ) < foo.xz
  1549. Note that it doesn't work if the input is not seekable
  1550. or if there is Stream Padding between the concatenated
  1551. .xz Streams.
  1552. * xz -lvv now shows the minimum xz version that is required to
  1553. decompress the file. Currently it is 5.0.0 for all supported .xz
  1554. files except files with empty LZMA2 streams require 5.0.2.
  1555. * Added an *incomplete* implementation of --block-list=SIZES to xz.
  1556. It only works correctly in single-threaded mode and when
  1557. --block-size isn't used at the same time. --block-list allows
  1558. specifying the sizes of Blocks which can be useful e.g. when
  1559. creating files for random-access reading.
  1560. 5.1.1alpha (2011-04-12)
  1561. * All fixes from 5.0.2
  1562. * liblzma fixes that will also be included in 5.0.3:
  1563. - A memory leak was fixed.
  1564. - lzma_stream_buffer_encode() no longer creates an empty .xz
  1565. Block if encoding an empty buffer. Such an empty Block with
  1566. LZMA2 data would trigger a bug in 5.0.1 and older (see the
  1567. first bullet point in 5.0.2 notes). When releasing 5.0.2,
  1568. I thought that no encoder creates this kind of files but
  1569. I was wrong.
  1570. - Validate function arguments better in a few functions. Most
  1571. importantly, specifying an unsupported integrity check to
  1572. lzma_stream_buffer_encode() no longer creates a corrupt .xz
  1573. file. Probably no application tries to do that, so this
  1574. shouldn't be a big problem in practice.
  1575. - Document that lzma_block_buffer_encode(),
  1576. lzma_easy_buffer_encode(), lzma_stream_encoder(), and
  1577. lzma_stream_buffer_encode() may return LZMA_UNSUPPORTED_CHECK.
  1578. - The return values of the _memusage() functions are now
  1579. documented better.
  1580. * Support for multithreaded compression was added using the simplest
  1581. method, which splits the input data into blocks and compresses
  1582. them independently. Other methods will be added in the future.
  1583. The current method has room for improvement, e.g. it is possible
  1584. to reduce the memory usage.
  1585. * Added the options --single-stream and --block-size=SIZE to xz.
  1586. * xzdiff and xzgrep now support .lzo files if lzop is installed.
  1587. The .tzo suffix is also recognized as a shorthand for .tar.lzo.
  1588. * Support for short 8.3 filenames under DOS was added to xz. It is
  1589. experimental and may change before it gets into a stable release.
  1590. 5.0.8 (2014-12-21)
  1591. * Fixed an old bug in xzgrep that affected OpenBSD and probably
  1592. a few other operating systems too.
  1593. * Updated French and German translations.
  1594. * Added support for detecting the amount of RAM on AmigaOS/AROS.
  1595. * Minor build system updates.
  1596. 5.0.7 (2014-09-20)
  1597. * Fix regressions introduced in 5.0.6:
  1598. - Fix building with non-GNU make.
  1599. - Fix invalid Libs.private value in liblzma.pc which broke
  1600. static linking against liblzma if the linker flags were
  1601. taken from pkg-config.
  1602. 5.0.6 (2014-09-14)
  1603. * xzgrep now exits with status 0 if at least one file matched.
  1604. * A few minor portability and build system fixes
  1605. 5.0.5 (2013-06-30)
  1606. * lzmadec and liblzma's lzma_alone_decoder(): Support decompressing
  1607. .lzma files that have less common settings in the headers
  1608. (dictionary size other than 2^n or 2^n + 2^(n-1), or uncompressed
  1609. size greater than 256 GiB). The limitations existed to avoid false
  1610. positives when detecting .lzma files. The lc + lp <= 4 limitation
  1611. still remains since liblzma's LZMA decoder has that limitation.
  1612. NOTE: xz's .lzma support or liblzma's lzma_auto_decoder() are NOT
  1613. affected by this change. They still consider uncommon .lzma headers
  1614. as not being in the .lzma format. Changing this would give way too
  1615. many false positives.
  1616. * xz:
  1617. - Interaction of preset and custom filter chain options was
  1618. made less illogical. This affects only certain less typical
  1619. uses cases so few people are expected to notice this change.
  1620. Now when a custom filter chain option (e.g. --lzma2) is
  1621. specified, all preset options (-0 ... -9, -e) earlier are on
  1622. the command line are completely forgotten. Similarly, when
  1623. a preset option is specified, all custom filter chain options
  1624. earlier on the command line are completely forgotten.
  1625. Example 1: "xz -9 --lzma2=preset=5 -e" is equivalent to "xz -e"
  1626. which is equivalent to "xz -6e". Earlier -e didn't put xz back
  1627. into preset mode and thus the example command was equivalent
  1628. to "xz --lzma2=preset=5".
  1629. Example 2: "xz -9e --lzma2=preset=5 -7" is equivalent to
  1630. "xz -7". Earlier a custom filter chain option didn't make
  1631. xz forget the -e option so the example was equivalent to
  1632. "xz -7e".
  1633. - Fixes and improvements to error handling.
  1634. - Various fixes to the man page.
  1635. * xzless: Fixed to work with "less" versions 448 and later.
  1636. * xzgrep: Made -h an alias for --no-filename.
  1637. * Include the previously missing debug/translation.bash which can
  1638. be useful for translators.
  1639. * Include a build script for Mac OS X. This has been in the Git
  1640. repository since 2010 but due to a mistake in Makefile.am the
  1641. script hasn't been included in a release tarball before.
  1642. 5.0.4 (2012-06-22)
  1643. * liblzma:
  1644. - Fix lzma_index_init(). It could crash if memory allocation
  1645. failed.
  1646. - Fix the possibility of an incorrect LZMA_BUF_ERROR when a BCJ
  1647. filter is used and the application only provides exactly as
  1648. much output space as is the uncompressed size of the file.
  1649. - Fix a bug in doc/examples_old/xz_pipe_decompress.c. It didn't
  1650. check if the last call to lzma_code() really returned
  1651. LZMA_STREAM_END, which made the program think that truncated
  1652. files are valid.
  1653. - New example programs in doc/examples (old programs are now in
  1654. doc/examples_old). These have more comments and more detailed
  1655. error handling.
  1656. * Fix "xz -lvv foo.xz". It could crash on some corrupted files.
  1657. * Fix output of "xz --robot -lv" and "xz --robot -lvv" which
  1658. incorrectly printed the filename also in the "foo (x/x)" format.
  1659. * Fix exit status of "xzdiff foo.xz bar.xz".
  1660. * Fix exit status of "xzgrep foo binary_file".
  1661. * Fix portability to EBCDIC systems.
  1662. * Fix a configure issue on AIX with the XL C compiler. See INSTALL
  1663. for details.
  1664. * Update French, German, Italian, and Polish translations.
  1665. 5.0.3 (2011-05-21)
  1666. * liblzma fixes:
  1667. - A memory leak was fixed.
  1668. - lzma_stream_buffer_encode() no longer creates an empty .xz
  1669. Block if encoding an empty buffer. Such an empty Block with
  1670. LZMA2 data would trigger a bug in 5.0.1 and older (see the
  1671. first bullet point in 5.0.2 notes). When releasing 5.0.2,
  1672. I thought that no encoder creates this kind of files but
  1673. I was wrong.
  1674. - Validate function arguments better in a few functions. Most
  1675. importantly, specifying an unsupported integrity check to
  1676. lzma_stream_buffer_encode() no longer creates a corrupt .xz
  1677. file. Probably no application tries to do that, so this
  1678. shouldn't be a big problem in practice.
  1679. - Document that lzma_block_buffer_encode(),
  1680. lzma_easy_buffer_encode(), lzma_stream_encoder(), and
  1681. lzma_stream_buffer_encode() may return LZMA_UNSUPPORTED_CHECK.
  1682. - The return values of the _memusage() functions are now
  1683. documented better.
  1684. * Fix command name detection in xzgrep. xzegrep and xzfgrep now
  1685. correctly use egrep and fgrep instead of grep.
  1686. * French translation was added.
  1687. 5.0.2 (2011-04-01)
  1688. * LZMA2 decompressor now correctly accepts LZMA2 streams with no
  1689. uncompressed data. Previously it considered them corrupt. The
  1690. bug can affect applications that use raw LZMA2 streams. It is
  1691. very unlikely to affect .xz files because no compressor creates
  1692. .xz files with empty LZMA2 streams. (Empty .xz files are a
  1693. different thing than empty LZMA2 streams.)
  1694. * "xz --suffix=.foo filename.foo" now refuses to compress the
  1695. file due to it already having the suffix .foo. It was already
  1696. documented on the man page, but the code lacked the test.
  1697. * "xzgrep -l foo bar.xz" works now.
  1698. * Polish translation was added.
  1699. 5.0.1 (2011-01-29)
  1700. * xz --force now (de)compresses files that have setuid, setgid,
  1701. or sticky bit set and files that have multiple hard links.
  1702. The man page had it documented this way already, but the code
  1703. had a bug.
  1704. * gzip and bzip2 support in xzdiff was fixed.
  1705. * Portability fixes
  1706. * Minor fix to Czech translation
  1707. 5.0.0 (2010-10-23)
  1708. Only the most important changes compared to 4.999.9beta are listed
  1709. here. One change is especially important:
  1710. * The memory usage limit is now disabled by default. Some scripts
  1711. written before this change may have used --memory=max on xz command
  1712. line or in XZ_OPT. THESE USES OF --memory=max SHOULD BE REMOVED
  1713. NOW, because they interfere with user's ability to set the memory
  1714. usage limit himself. If user-specified limit causes problems to
  1715. your script, blame the user.
  1716. Other significant changes:
  1717. * Added support for XZ_DEFAULTS environment variable. This variable
  1718. allows users to set default options for xz, e.g. default memory
  1719. usage limit or default compression level. Scripts that use xz
  1720. must never set or unset XZ_DEFAULTS. Scripts should use XZ_OPT
  1721. instead if they need a way to pass options to xz via an
  1722. environment variable.
  1723. * The compression settings associated with the preset levels
  1724. -0 ... -9 have been changed. --extreme was changed a little too.
  1725. It is now less likely to make compression worse, but with some
  1726. files the new --extreme may compress slightly worse than the old
  1727. --extreme.
  1728. * If a preset level (-0 ... -9) is specified after a custom filter
  1729. chain options have been used (e.g. --lzma2), the custom filter
  1730. chain will be forgotten. Earlier the preset options were
  1731. completely ignored after custom filter chain options had been
  1732. seen.
  1733. * xz will create sparse files when decompressing if the uncompressed
  1734. data contains long sequences of binary zeros. This is done even
  1735. when writing to standard output that is connected to a regular
  1736. file and certain additional conditions are met to make it safe.
  1737. * Support for "xz --list" was added. Combine with --verbose or
  1738. --verbose --verbose (-vv) for detailed output.
  1739. * I had hoped that liblzma API would have been stable after
  1740. 4.999.9beta, but there have been a couple of changes in the
  1741. advanced features, which don't affect most applications:
  1742. - Index handling code was revised. If you were using the old
  1743. API, you will get a compiler error (so it's easy to notice).
  1744. - A subtle but important change was made to the Block handling
  1745. API. lzma_block.version has to be initialized even for
  1746. lzma_block_header_decode(). Code that doesn't do it will work
  1747. for now, but might break in the future, which makes this API
  1748. change easy to miss.
  1749. * The major soname has been bumped to 5.0.0. liblzma API and ABI
  1750. are now stable, so the need to recompile programs linking against
  1751. liblzma shouldn't arise soon.