NEWS 104 KB

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