NEWS 102 KB

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