NEWS 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553
  1. XZ Utils Release Notes
  2. ======================
  3. 5.4.0 (2022-12-13)
  4. This bumps the minor version of liblzma because new features were
  5. added. The API and ABI are still backward compatible with liblzma
  6. 5.2.x and 5.0.x.
  7. Since 5.3.5beta:
  8. * All fixes from 5.2.10.
  9. * The ARM64 filter is now stable. The xz option is now --arm64.
  10. Decompression requires XZ Utils 5.4.0. In the future the ARM64
  11. filter will be supported by XZ for Java, XZ Embedded (including
  12. the version in Linux), LZMA SDK, and 7-Zip.
  13. * Translations:
  14. - Updated Catalan, Croatian, German, Romanian, and Turkish
  15. translations.
  16. - Updated German man page translations.
  17. - Added Romanian man page translations.
  18. Summary of new features added in the 5.3.x development releases:
  19. * liblzma:
  20. - Added threaded .xz decompressor lzma_stream_decoder_mt().
  21. It can use multiple threads with .xz files that have multiple
  22. Blocks with size information in Block Headers. The threaded
  23. encoder in xz has always created such files.
  24. Single-threaded encoder cannot store the size information in
  25. Block Headers even if one used LZMA_FULL_FLUSH to create
  26. multiple Blocks, so this threaded decoder cannot use multiple
  27. threads with such files.
  28. If there are multiple Streams (concatenated .xz files), one
  29. Stream will be decompressed completely before starting the
  30. next Stream.
  31. - A new decoder flag LZMA_FAIL_FAST was added. It makes the
  32. threaded decompressor report errors soon instead of first
  33. flushing all pending data before the error location.
  34. - New Filter IDs:
  35. * LZMA_FILTER_ARM64 is for ARM64 binaries.
  36. * LZMA_FILTER_LZMA1EXT is for raw LZMA1 streams that don't
  37. necessarily use the end marker.
  38. - Added lzma_str_to_filters(), lzma_str_from_filters(), and
  39. lzma_str_list_filters() to convert a preset or a filter chain
  40. string to a lzma_filter[] and vice versa. These should make
  41. it easier to write applications that allow users to specify
  42. custom compression options.
  43. - Added lzma_filters_free() which can be convenient for freeing
  44. the filter options in a filter chain (an array of lzma_filter
  45. structures).
  46. - lzma_file_info_decoder() to makes it a little easier to get
  47. the Index field from .xz files. This helps in getting the
  48. uncompressed file size but an easy-to-use random access
  49. API is still missing which has existed in XZ for Java for
  50. a long time.
  51. - Added lzma_microlzma_encoder() and lzma_microlzma_decoder().
  52. It is used by erofs-utils and may be used by others too.
  53. The MicroLZMA format is a raw LZMA stream (without end marker)
  54. whose first byte (always 0x00) has been replaced with
  55. bitwise-negation of the LZMA properties (lc/lp/pb). It was
  56. created for use in EROFS but may be used in other contexts
  57. as well where it is important to avoid wasting bytes for
  58. stream headers or footers. The format is also supported by
  59. XZ Embedded (the XZ Embedded version in Linux got MicroLZMA
  60. support in Linux 5.16).
  61. The MicroLZMA encoder API in liblzma can compress into a
  62. fixed-sized output buffer so that as much data is compressed
  63. as can be fit into the buffer while still creating a valid
  64. MicroLZMA stream. This is needed for EROFS.
  65. - Added lzma_lzip_decoder() to decompress the .lz (lzip) file
  66. format version 0 and the original unextended version 1 files.
  67. Also lzma_auto_decoder() supports .lz files.
  68. - lzma_filters_update() can now be used with the multi-threaded
  69. encoder (lzma_stream_encoder_mt()) to change the filter chain
  70. after LZMA_FULL_BARRIER or LZMA_FULL_FLUSH.
  71. - In lzma_options_lzma, allow nice_len = 2 and 3 with the match
  72. finders that require at least 3 or 4. Now it is internally
  73. rounded up if needed.
  74. - CLMUL-based CRC64 on x86-64 and E2K with runtime processor
  75. detection. On 32-bit x86 it currently isn't available unless
  76. --disable-assembler is used which can make the non-CLMUL
  77. CRC64 slower; this might be fixed in the future.
  78. - Building with --disable-threads --enable-small
  79. is now thread-safe if the compiler supports
  80. __attribute__((__constructor__)).
  81. * xz:
  82. - Using -T0 (--threads=0) will now use multi-threaded encoder
  83. even on a single-core system. This is to ensure that output
  84. from the same xz binary is identical on both single-core and
  85. multi-core systems.
  86. - --threads=+1 or -T+1 is now a way to put xz into
  87. multi-threaded mode while using only one worker thread.
  88. The + is ignored if the number is not 1.
  89. - A default soft memory usage limit is now used for compression
  90. when -T0 is used and no explicit limit has been specified.
  91. This soft limit is used to restrict the number of threads
  92. but if the limit is exceeded with even one thread then xz
  93. will continue with one thread using the multi-threaded
  94. encoder and this limit is ignored. If the number of threads
  95. is specified manually then no default limit will be used;
  96. this affects only -T0.
  97. This change helps on systems that have very many cores and
  98. using all of them for xz makes no sense. Previously xz -T0
  99. could run out of memory on such systems because it attempted
  100. to reserve memory for too many threads.
  101. This also helps with 32-bit builds which don't have a large
  102. amount of address space that would be required for many
  103. threads. The default soft limit for -T0 is at most 1400 MiB
  104. on all 32-bit platforms.
  105. - Previously a low value in --memlimit-compress wouldn't cause
  106. xz to switch from multi-threaded mode to single-threaded mode
  107. if the limit cannot otherwise be met; xz failed instead. Now
  108. xz can switch to single-threaded mode and then, if needed,
  109. scale down the LZMA2 dictionary size too just like it already
  110. did when it was started in single-threaded mode.
  111. - The option --no-adjust no longer prevents xz from scaling down
  112. the number of threads as that doesn't affect the compressed
  113. output (only performance). Now --no-adjust only prevents
  114. adjustments that affect compressed output, that is, with
  115. --no-adjust xz won't switch from multi-threaded mode to
  116. single-threaded mode and won't scale down the LZMA2
  117. dictionary size.
  118. - Added a new option --memlimit-mt-decompress=LIMIT. This is
  119. used to limit the number of decompressor threads (possibly
  120. falling back to single-threaded mode) but it will never make
  121. xz refuse to decompress a file. This has a system-specific
  122. default value because without any limit xz could end up
  123. allocating memory for the whole compressed input file, the
  124. whole uncompressed output file, multiple thread-specific
  125. decompressor instances and so on. Basically xz could
  126. attempt to use an insane amount of memory even with fairly
  127. common files. The system-specific default value is currently
  128. the same as the one used for compression with -T0.
  129. The new option works together with the existing option
  130. --memlimit-decompress=LIMIT. The old option sets a hard limit
  131. that must not be exceeded (xz will refuse to decompress)
  132. while the new option only restricts the number of threads.
  133. If the limit set with --memlimit-mt-decompress is greater
  134. than the limit set with --memlimit-compress, then the latter
  135. value is used also for --memlimit-mt-decompress.
  136. - Added new information to the output of xz --info-memory and
  137. new fields to the output of xz --robot --info-memory.
  138. - In --lzma2=nice=NUMBER allow 2 and 3 with all match finders
  139. now that liblzma handles it.
  140. - Don't mention endianness for ARM and ARM-Thumb filters in
  141. --long-help. The filters only work for little endian
  142. instruction encoding but modern ARM processors using
  143. big endian data access still use little endian
  144. instruction encoding. So the help text was misleading.
  145. In contrast, the PowerPC filter is only for big endian
  146. 32/64-bit PowerPC code. Little endian PowerPC would need
  147. a separate filter.
  148. - Added decompression support for the .lz (lzip) file format
  149. version 0 and the original unextended version 1. It is
  150. autodetected by default. See also the option --format on
  151. the xz man page.
  152. - Sandboxing enabled by default:
  153. * Capsicum (FreeBSD)
  154. * pledge(2) (OpenBSD)
  155. * Scripts now support the .lz format using xz.
  156. * A few new tests were added.
  157. * The liblzma-specific tests are now supported in CMake-based
  158. builds too ("make test").
  159. 5.3.5beta (2022-12-01)
  160. * All fixes from 5.2.9.
  161. * liblzma:
  162. - Added new LZMA_FILTER_LZMA1EXT for raw encoder and decoder to
  163. handle raw LZMA1 streams that don't have end of payload marker
  164. (EOPM) alias end of stream (EOS) marker. It can be used in
  165. filter chains, for example, with the x86 BCJ filter.
  166. - Added lzma_str_to_filters(), lzma_str_from_filters(), and
  167. lzma_str_list_filters() to make it easier for applications
  168. to get custom compression options from a user and convert
  169. it to an array of lzma_filter structures.
  170. - Added lzma_filters_free().
  171. - lzma_filters_update() can now be used with the multi-threaded
  172. encoder (lzma_stream_encoder_mt()) to change the filter chain
  173. after LZMA_FULL_BARRIER or LZMA_FULL_FLUSH.
  174. - In lzma_options_lzma, allow nice_len = 2 and 3 with the match
  175. finders that require at least 3 or 4. Now it is internally
  176. rounded up if needed.
  177. - ARM64 filter was modified. It is still experimental.
  178. - Fixed LTO build with Clang if -fgnuc-version=10 or similar
  179. was used to make Clang look like GCC >= 10. Now it uses
  180. __has_attribute(__symver__) which should be reliable.
  181. * xz:
  182. - --threads=+1 or -T+1 is now a way to put xz into multi-threaded
  183. mode while using only one worker thread.
  184. - In --lzma2=nice=NUMBER allow 2 and 3 with all match finders
  185. now that liblzma handles it.
  186. * Updated translations: Chinese (simplified), Korean, and Turkish.
  187. 5.3.4alpha (2022-11-15)
  188. * All fixes from 5.2.7 and 5.2.8.
  189. * liblzma:
  190. - Minor improvements to the threaded decoder.
  191. - Added CRC64 implementation that uses SSSE3, SSE4.1, and CLMUL
  192. instructions on 32/64-bit x86 and E2K. On 32-bit x86 it's
  193. not enabled unless --disable-assembler is used but then
  194. the non-CLMUL code might be slower. Processor support is
  195. detected at runtime so this is built by default on x86-64
  196. and E2K. On these platforms, if compiler flags indicate
  197. unconditional CLMUL support (-msse4.1 -mpclmul) then the
  198. generic version is not built, making liblzma 8-9 KiB smaller
  199. compared to having both versions included.
  200. With extremely compressible files this can make decompression
  201. up to twice as fast but with typical files 5 % improvement
  202. is a more realistic expectation.
  203. The CLMUL version is slower than the generic version with
  204. tiny inputs (especially at 1-8 bytes per call, but up to
  205. 16 bytes). In normal use in xz this doesn't matter at all.
  206. - Added an experimental ARM64 filter. This is *not* the final
  207. version! Files created with this experimental version won't
  208. be supported in the future versions! The filter design is
  209. a compromise where improving one use case makes some other
  210. cases worse.
  211. - Added decompression support for the .lz (lzip) file format
  212. version 0 and the original unextended version 1. See the
  213. API docs of lzma_lzip_decoder() for details. Also
  214. lzma_auto_decoder() supports .lz files.
  215. - Building with --disable-threads --enable-small
  216. is now thread-safe if the compiler supports
  217. __attribute__((__constructor__))
  218. * xz:
  219. - Added support for OpenBSD's pledge(2) as a sandboxing method.
  220. - Don't mention endianness for ARM and ARM-Thumb filters in
  221. --long-help. The filters only work for little endian
  222. instruction encoding but modern ARM processors using
  223. big endian data access still use little endian
  224. instruction encoding. So the help text was misleading.
  225. In contrast, the PowerPC filter is only for big endian
  226. 32/64-bit PowerPC code. Little endian PowerPC would need
  227. a separate filter.
  228. - Added --experimental-arm64. This will be renamed once the
  229. filter is finished. Files created with this experimental
  230. filter will not be supported in the future!
  231. - Added new fields to the output of xz --robot --info-memory.
  232. - Added decompression support for the .lz (lzip) file format
  233. version 0 and the original unextended version 1. It is
  234. autodetected by default. See also the option --format on
  235. the xz man page.
  236. * Scripts now support the .lz format using xz.
  237. * Build systems:
  238. - New #defines in config.h: HAVE_ENCODER_ARM64,
  239. HAVE_DECODER_ARM64, HAVE_LZIP_DECODER, HAVE_CPUID_H,
  240. HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR, HAVE_USABLE_CLMUL
  241. - New configure options: --disable-clmul-crc,
  242. --disable-microlzma, --disable-lzip-decoder, and
  243. 'pledge' is now an option in --enable-sandbox (but
  244. it's autodetected by default anyway).
  245. - INSTALL was updated to document the new configure options.
  246. - PACKAGERS now lists also --disable-microlzma and
  247. --disable-lzip-decoder as configure options that must
  248. not be used in builds for non-embedded use.
  249. * Tests:
  250. - Fix some of the tests so that they skip instead of fail if
  251. certain features have been disabled with configure options.
  252. It's still not perfect.
  253. - Other improvements to tests.
  254. * Updated translations: Croatian, Finnish, Hungarian, Polish,
  255. Romanian, Spanish, Swedish, and Ukrainian.
  256. 5.3.3alpha (2022-08-22)
  257. * All fixes from 5.2.6.
  258. * liblzma:
  259. - Fixed 32-bit build.
  260. - Added threaded .xz decompressor lzma_stream_decoder_mt().
  261. It can use multiple threads with .xz files that have multiple
  262. Blocks with size information in Block Headers. The threaded
  263. encoder in xz has always created such files.
  264. Single-threaded encoder cannot store the size information in
  265. Block Headers even if one used LZMA_FULL_FLUSH to create
  266. multiple Blocks, so this threaded decoder cannot use multiple
  267. threads with such files.
  268. If there are multiple Streams (concatenated .xz files), one
  269. Stream will be decompressed completely before starting the
  270. next Stream.
  271. - A new decoder flag LZMA_FAIL_FAST was added. It makes the
  272. threaded decompressor report errors soon instead of first
  273. flushing all pending data before the error location.
  274. * xz:
  275. - Using -T0 (--threads=0) will now use multi-threaded encoder
  276. even on a single-core system. This is to ensure that output
  277. from the same xz binary is identical on both single-core and
  278. multi-core systems.
  279. - A default soft memory usage limit is now used for compression
  280. when -T0 is used and no explicit limit has been specified.
  281. This soft limit is used to restrict the number of threads
  282. but if the limit is exceeded with even one thread then xz
  283. will continue with one thread using the multi-threaded
  284. encoder and this limit is ignored. If the number of threads
  285. is specified manually then no default limit will be used;
  286. this affects only -T0.
  287. This change helps on systems that have very many cores and
  288. using all of them for xz makes no sense. Previously xz -T0
  289. could run out of memory on such systems because it attempted
  290. to reserve memory for too many threads.
  291. This also helps with 32-bit builds which don't have a large
  292. amount of address space that would be required for many
  293. threads. The default limit is 1400 MiB on all 32-bit
  294. platforms with -T0.
  295. Now xz -T0 should just work. It might use too few threads
  296. in some cases but at least it shouldn't easily run out of
  297. memory. It's possible that this will be tweaked before 5.4.0.
  298. - Changes to --memlimit-compress and --no-adjust:
  299. In single-threaded mode, --memlimit-compress can make xz
  300. scale down the LZMA2 dictionary size to meet the memory usage
  301. limit. This obviously affects the compressed output. However,
  302. if xz was in threaded mode, --memlimit-compress could make xz
  303. reduce the number of threads but it wouldn't make xz switch
  304. from multi-threaded mode to single-threaded mode or scale
  305. down the LZMA2 dictionary size. This seemed illogical.
  306. Now --memlimit-compress can make xz switch to single-threaded
  307. mode if one thread in multi-threaded mode uses too much
  308. memory. If memory usage is still too high, then the LZMA2
  309. dictionary size can be scaled down too.
  310. The option --no-adjust was also changed so that it no longer
  311. prevents xz from scaling down the number of threads as that
  312. doesn't affect compressed output (only performance). After
  313. this commit --no-adjust only prevents adjustments that affect
  314. compressed output, that is, with --no-adjust xz won't switch
  315. from multithreaded mode to single-threaded mode and won't
  316. scale down the LZMA2 dictionary size.
  317. - Added a new option --memlimit-mt-decompress=LIMIT. This is
  318. used to limit the number of decompressor threads (possibly
  319. falling back to single-threaded mode) but it will never make
  320. xz refuse to decompress a file. This has a system-specific
  321. default value because without any limit xz could end up
  322. allocating memory for the whole compressed input file, the
  323. whole uncompressed output file, multiple thread-specific
  324. decompressor instances and so on. Basically xz could
  325. attempt to use an insane amount of memory even with fairly
  326. common files.
  327. The new option works together with the existing option
  328. --memlimit-decompress=LIMIT. The old option sets a hard limit
  329. that must not be exceeded (xz will refuse to decompress)
  330. while the new option only restricts the number of threads.
  331. If the limit set with --memlimit-mt-decompress is greater
  332. than the limit set with --memlimit-compress, then the latter
  333. value is used also for --memlimit-mt-decompress.
  334. * Tests:
  335. - Added a few more tests.
  336. - Added tests/code_coverage.sh to create a code coverage report
  337. of the tests.
  338. * Build systems:
  339. - Automake's parallel test harness is now used to make tests
  340. finish faster.
  341. - Added the CMake files to the distribution tarball. These were
  342. supposed to be in 5.2.5 already.
  343. - Added liblzma tests to the CMake build.
  344. - Windows: Fix building of liblzma.dll with the included
  345. Visual Studio project files.
  346. 5.3.2alpha (2021-10-28)
  347. This release was made on short notice so that recent erofs-utils can
  348. be built with LZMA support without needing a snapshot from xz.git.
  349. Thus many pending things were not included, not even updated
  350. translations (which would need to be updated for the new --list
  351. strings anyway).
  352. * All fixes from 5.2.5.
  353. * xz:
  354. - When copying metadata from the source file to the destination
  355. file, don't try to set the group (GID) if it is already set
  356. correctly. This avoids a failure on OpenBSD (and possibly on
  357. a few other OSes) where files may get created so that their
  358. group doesn't belong to the user, and fchown(2) can fail even
  359. if it needs to do nothing.
  360. - The --keep option now accepts symlinks, hardlinks, and
  361. setuid, setgid, and sticky files. Previously this required
  362. using --force.
  363. - Split the long strings used in --list and --info-memory modes
  364. to make them much easier for translators.
  365. - If built with sandbox support and enabling the sandbox fails,
  366. xz will now immediately exit with exit status of 1. Previously
  367. it would only display a warning if -vv was used.
  368. - Cap --memlimit-compress to 2000 MiB on MIPS32 because on
  369. MIPS32 userspace processes are limited to 2 GiB of address
  370. space.
  371. * liblzma:
  372. - Added lzma_microlzma_encoder() and lzma_microlzma_decoder().
  373. The API is in lzma/container.h.
  374. The MicroLZMA format is a raw LZMA stream (without end marker)
  375. whose first byte (always 0x00) has been replaced with
  376. bitwise-negation of the LZMA properties (lc/lp/pb). It was
  377. created for use in EROFS but may be used in other contexts
  378. as well where it is important to avoid wasting bytes for
  379. stream headers or footers. The format is also supported by
  380. XZ Embedded.
  381. The MicroLZMA encoder API in liblzma can compress into a
  382. fixed-sized output buffer so that as much data is compressed
  383. as can be fit into the buffer while still creating a valid
  384. MicroLZMA stream. This is needed for EROFS.
  385. - Added fuzzing support.
  386. - Support Intel Control-flow Enforcement Technology (CET) in
  387. 32-bit x86 assembly files.
  388. - Visual Studio: Use non-standard _MSVC_LANG to detect C++
  389. standard version in the lzma.h API header. It's used to
  390. detect when "noexcept" can be used.
  391. * Scripts:
  392. - Fix exit status of xzdiff/xzcmp. Exit status could be 2 when
  393. the correct value is 1.
  394. - Fix exit status of xzgrep.
  395. - Detect corrupt .bz2 files in xzgrep.
  396. - Add zstd support to xzgrep and xzdiff/xzcmp.
  397. - Fix less(1) version detection in xzless. It failed if the
  398. version number from "less -V" contained a dot.
  399. * Fix typos and technical issues in man pages.
  400. * Build systems:
  401. - Windows: Fix building of resource files when config.h isn't
  402. used. CMake + Visual Studio can now build liblzma.dll.
  403. - Various fixes to the CMake support. It might still need a few
  404. more fixes even for liblzma-only builds.
  405. 5.3.1alpha (2018-04-29)
  406. * All fixes from 5.2.4.
  407. * Add lzma_file_info_decoder() into liblzma and use it in xz to
  408. implement the --list feature.
  409. * Capsicum sandbox support is enabled by default where available
  410. (FreeBSD >= 10).
  411. 5.2.10 (2022-12-13)
  412. * xz: Don't modify argv[] when parsing the --memlimit* and
  413. --block-list command line options. This fixes confusing
  414. arguments in process listing (like "ps auxf").
  415. * GNU/Linux only: Use __has_attribute(__symver__) to detect if
  416. that attribute is supported. This fixes build on Mandriva where
  417. Clang is patched to define __GNUC__ to 11 by default (instead
  418. of 4 as used by Clang upstream).
  419. 5.2.9 (2022-11-30)
  420. * liblzma:
  421. - Fixed an infinite loop in LZMA encoder initialization
  422. if dict_size >= 2 GiB. (The encoder only supports up
  423. to 1536 MiB.)
  424. - Fixed two cases of invalid free() that can happen if
  425. a tiny allocation fails in encoder re-initialization
  426. or in lzma_filters_update(). These bugs had some
  427. similarities with the bug fixed in 5.2.7.
  428. - Fixed lzma_block_encoder() not allowing the use of
  429. LZMA_SYNC_FLUSH with lzma_code() even though it was
  430. documented to be supported. The sync-flush code in
  431. the Block encoder was already used internally via
  432. lzma_stream_encoder(), so this was just a missing flag
  433. in the lzma_block_encoder() API function.
  434. - GNU/Linux only: Don't put symbol versions into static
  435. liblzma as it breaks things in some cases (and even if
  436. it didn't break anything, symbol versions in static
  437. libraries are useless anyway). The downside of the fix
  438. is that if the configure options --with-pic or --without-pic
  439. are used then it's not possible to build both shared and
  440. static liblzma at the same time on GNU/Linux anymore;
  441. with those options --disable-static or --disable-shared
  442. must be used too.
  443. * New email address for bug reports is <xz@tukaani.org> which
  444. forwards messages to Lasse Collin and Jia Tan.
  445. 5.2.8 (2022-11-13)
  446. * xz:
  447. - If xz cannot remove an input file when it should, this
  448. is now treated as a warning (exit status 2) instead of
  449. an error (exit status 1). This matches GNU gzip and it
  450. is more logical as at that point the output file has
  451. already been successfully closed.
  452. - Fix handling of .xz files with an unsupported check type.
  453. Previously such printed a warning message but then xz
  454. behaved as if an error had occurred (didn't decompress,
  455. exit status 1). Now a warning is printed, decompression
  456. is done anyway, and exit status is 2. This used to work
  457. slightly before 5.0.0. In practice this bug matters only
  458. if xz has been built with some check types disabled. As
  459. instructed in PACKAGERS, such builds should be done in
  460. special situations only.
  461. - Fix "xz -dc --single-stream tests/files/good-0-empty.xz"
  462. which failed with "Internal error (bug)". That is,
  463. --single-stream was broken if the first .xz stream in
  464. the input file didn't contain any uncompressed data.
  465. - Fix displaying file sizes in the progress indicator when
  466. working in passthru mode and there are multiple input files.
  467. Just like "gzip -cdf", "xz -cdf" works like "cat" when the
  468. input file isn't a supported compressed file format. In
  469. this case the file size counters weren't reset between
  470. files so with multiple input files the progress indicator
  471. displayed an incorrect (too large) value.
  472. * liblzma:
  473. - API docs in lzma/container.h:
  474. * Update the list of decoder flags in the decoder
  475. function docs.
  476. * Explain LZMA_CONCATENATED behavior with .lzma files
  477. in lzma_auto_decoder() docs.
  478. - OpenBSD: Use HW_NCPUONLINE to detect the number of
  479. available hardware threads in lzma_physmem().
  480. - Fix use of wrong macro to detect x86 SSE2 support.
  481. __SSE2_MATH__ was used with GCC/Clang but the correct
  482. one is __SSE2__. The first one means that SSE2 is used
  483. for floating point math which is irrelevant here.
  484. The affected SSE2 code isn't used on x86-64 so this affects
  485. only 32-bit x86 builds that use -msse2 without -mfpmath=sse
  486. (there is no runtime detection for SSE2). It improves LZMA
  487. compression speed (not decompression).
  488. - Fix the build with Intel C compiler 2021 (ICC, not ICX)
  489. on Linux. It defines __GNUC__ to 10 but doesn't support
  490. the __symver__ attribute introduced in GCC 10.
  491. * Scripts: Ignore warnings from xz by using --quiet --no-warn.
  492. This is needed if the input .xz files use an unsupported
  493. check type.
  494. * Translations:
  495. - Updated Croatian and Turkish translations.
  496. - One new translations wasn't included because it needed
  497. technical fixes. It will be in upcoming 5.4.0. No new
  498. translations will be added to the 5.2.x branch anymore.
  499. - Renamed the French man page translation file from
  500. fr_FR.po to fr.po and thus also its install directory
  501. (like /usr/share/man/fr_FR -> .../fr).
  502. - Man page translations for upcoming 5.4.0 are now handled
  503. in the Translation Project.
  504. * Update doc/faq.txt a little so it's less out-of-date.
  505. 5.2.7 (2022-09-30)
  506. * liblzma:
  507. - Made lzma_filters_copy() to never modify the destination
  508. array if an error occurs. lzma_stream_encoder() and
  509. lzma_stream_encoder_mt() already assumed this. Before this
  510. change, if a tiny memory allocation in lzma_filters_copy()
  511. failed it would lead to a crash (invalid free() or invalid
  512. memory reads) in the cleanup paths of these two encoder
  513. initialization functions.
  514. - Added missing integer overflow check to lzma_index_append().
  515. This affects xz --list and other applications that decode
  516. the Index field from .xz files using lzma_index_decoder().
  517. Normal decompression of .xz files doesn't call this code
  518. and thus most applications using liblzma aren't affected
  519. by this bug.
  520. - Single-threaded .xz decoder (lzma_stream_decoder()): If
  521. lzma_code() returns LZMA_MEMLIMIT_ERROR it is now possible
  522. to use lzma_memlimit_set() to increase the limit and continue
  523. decoding. This was supposed to work from the beginning
  524. but there was a bug. With other decoders (.lzma or
  525. threaded .xz decoder) this already worked correctly.
  526. - Fixed accumulation of integrity check type statistics in
  527. lzma_index_cat(). This bug made lzma_index_checks() return
  528. only the type of the integrity check of the last Stream
  529. when multiple lzma_indexes were concatenated. Most
  530. applications don't use these APIs but in xz it made
  531. xz --list not list all check types from concatenated .xz
  532. files. In xz --list --verbose only the per-file "Check:"
  533. lines were affected and in xz --robot --list only the "file"
  534. line was affected.
  535. - Added ABI compatibility with executables that were linked
  536. against liblzma in RHEL/CentOS 7 or other liblzma builds
  537. that had copied the problematic patch from RHEL/CentOS 7
  538. (xz-5.2.2-compat-libs.patch). For the details, see the
  539. comment at the top of src/liblzma/validate_map.sh.
  540. WARNING: This uses __symver__ attribute with GCC >= 10.
  541. In other cases the traditional __asm__(".symver ...")
  542. is used. Using link-time optimization (LTO, -flto) with
  543. GCC versions older than 10 can silently result in
  544. broken liblzma.so.5 (incorrect symbol versions)! If you
  545. want to use -flto with GCC, you must use GCC >= 10.
  546. LTO with Clang seems to work even with the traditional
  547. __asm__(".symver ...") method.
  548. * xzgrep: Fixed compatibility with old shells that break if
  549. comments inside command substitutions have apostrophes (').
  550. This problem was introduced in 5.2.6.
  551. * Build systems:
  552. - New #define in config.h: HAVE_SYMBOL_VERSIONS_LINUX
  553. - Windows: Fixed liblzma.dll build with Visual Studio project
  554. files. It broke in 5.2.6 due to a change that was made to
  555. improve CMake support.
  556. - Windows: Building liblzma with UNICODE defined should now
  557. work.
  558. - CMake files are now actually included in the release tarball.
  559. They should have been in 5.2.5 already.
  560. - Minor CMake fixes and improvements.
  561. * Added a new translation: Turkish
  562. 5.2.6 (2022-08-12)
  563. * xz:
  564. - The --keep option now accepts symlinks, hardlinks, and
  565. setuid, setgid, and sticky files. Previously this required
  566. using --force.
  567. - When copying metadata from the source file to the destination
  568. file, don't try to set the group (GID) if it is already set
  569. correctly. This avoids a failure on OpenBSD (and possibly on
  570. a few other OSes) where files may get created so that their
  571. group doesn't belong to the user, and fchown(2) can fail even
  572. if it needs to do nothing.
  573. - Cap --memlimit-compress to 2000 MiB instead of 4020 MiB on
  574. MIPS32 because on MIPS32 userspace processes are limited
  575. to 2 GiB of address space.
  576. * liblzma:
  577. - Fixed a missing error-check in the threaded encoder. If a
  578. small memory allocation fails, a .xz file with an invalid
  579. Index field would be created. Decompressing such a file would
  580. produce the correct output but result in an error at the end.
  581. Thus this is a "mild" data corruption bug. Note that while
  582. a failed memory allocation can trigger the bug, it cannot
  583. cause invalid memory access.
  584. - The decoder for .lzma files now supports files that have
  585. uncompressed size stored in the header and still use the
  586. end of payload marker (end of stream marker) at the end
  587. of the LZMA stream. Such files are rare but, according to
  588. the documentation in LZMA SDK, they are valid.
  589. doc/lzma-file-format.txt was updated too.
  590. - Improved 32-bit x86 assembly files:
  591. * Support Intel Control-flow Enforcement Technology (CET)
  592. * Use non-executable stack on FreeBSD.
  593. - Visual Studio: Use non-standard _MSVC_LANG to detect C++
  594. standard version in the lzma.h API header. It's used to
  595. detect when "noexcept" can be used.
  596. * xzgrep:
  597. - Fixed arbitrary command injection via a malicious filename
  598. (CVE-2022-1271, ZDI-CAN-16587). A standalone patch for
  599. this was released to the public on 2022-04-07. A slight
  600. robustness improvement has been made since then and, if
  601. using GNU or *BSD grep, a new faster method is now used
  602. that doesn't use the old sed-based construct at all. This
  603. also fixes bad output with GNU grep >= 3.5 (2020-09-27)
  604. when xzgrepping binary files.
  605. This vulnerability was discovered by:
  606. cleemy desu wayo working with Trend Micro Zero Day Initiative
  607. - Fixed detection of corrupt .bz2 files.
  608. - Improved error handling to fix exit status in some situations
  609. and to fix handling of signals: in some situations a signal
  610. didn't make xzgrep exit when it clearly should have. It's
  611. possible that the signal handling still isn't quite perfect
  612. but hopefully it's good enough.
  613. - Documented exit statuses on the man page.
  614. - xzegrep and xzfgrep now use "grep -E" and "grep -F" instead
  615. of the deprecated egrep and fgrep commands.
  616. - Fixed parsing of the options -E, -F, -G, -P, and -X. The
  617. problem occurred when multiple options were specied in
  618. a single argument, for example,
  619. echo foo | xzgrep -Fe foo
  620. treated foo as a filename because -Fe wasn't correctly
  621. split into -F -e.
  622. - Added zstd support.
  623. * xzdiff/xzcmp:
  624. - Fixed wrong exit status. Exit status could be 2 when the
  625. correct value is 1.
  626. - Documented on the man page that exit status of 2 is used
  627. for decompression errors.
  628. - Added zstd support.
  629. * xzless:
  630. - Fix less(1) version detection. It failed if the version number
  631. from "less -V" contained a dot.
  632. * Translations:
  633. - Added new translations: Catalan, Croatian, Esperanto,
  634. Korean, Portuguese, Romanian, Serbian, Spanish, Swedish,
  635. and Ukrainian
  636. - Updated the Brazilian Portuguese translation.
  637. - Added French man page translation. This and the existing
  638. German translation aren't complete anymore because the
  639. English man pages got a few updates and the translators
  640. weren't reached so that they could update their work.
  641. * Build systems:
  642. - Windows: Fix building of resource files when config.h isn't
  643. used. CMake + Visual Studio can now build liblzma.dll.
  644. - Various fixes to the CMake support. Building static or shared
  645. liblzma should work fine in most cases. In contrast, building
  646. the command line tools with CMake is still clearly incomplete
  647. and experimental and should be used for testing only.
  648. 5.2.5 (2020-03-17)
  649. * liblzma:
  650. - Fixed several C99/C11 conformance bugs. Now the code is clean
  651. under gcc/clang -fsanitize=undefined. Some of these changes
  652. might have a negative effect on performance with old GCC
  653. versions or compilers other than GCC and Clang. The configure
  654. option --enable-unsafe-type-punning can be used to (mostly)
  655. restore the old behavior but it shouldn't normally be used.
  656. - Improved API documentation of lzma_properties_decode().
  657. - Added a very minor encoder speed optimization.
  658. * xz:
  659. - Fixed a crash in "xz -dcfv not_an_xz_file". All four options
  660. were required to trigger it. The crash occurred in the
  661. progress indicator code when xz was in passthru mode where
  662. xz works like "cat".
  663. - Fixed an integer overflow with 32-bit off_t. It could happen
  664. when decompressing a file that has a long run of zero bytes
  665. which xz would try to write as a sparse file. Since the build
  666. system enables large file support by default, off_t is
  667. normally 64-bit even on 32-bit systems.
  668. - Fixes for --flush-timeout:
  669. * Fix semi-busy-waiting.
  670. * Avoid unneeded flushes when no new input has arrived
  671. since the previous flush was completed.
  672. - Added a special case for 32-bit xz: If --memlimit-compress is
  673. used to specify a limit that exceeds 4020 MiB, the limit will
  674. be set to 4020 MiB. The values "0" and "max" aren't affected
  675. by this and neither is decompression. This hack can be
  676. helpful when a 32-bit xz has access to 4 GiB address space
  677. but the specified memlimit exceeds 4 GiB. This can happen
  678. e.g. with some scripts.
  679. - Capsicum sandbox is now enabled by default where available
  680. (FreeBSD >= 10). The sandbox debug messages (xz -vv) were
  681. removed since they seemed to be more annoying than useful.
  682. - DOS build now requires DJGPP 2.05 instead of 2.04beta.
  683. A workaround for a locale problem with DJGPP 2.05 was added.
  684. * xzgrep and other scripts:
  685. - Added a configure option --enable-path-for-scripts=PREFIX.
  686. It is disabled by default except on Solaris where the default
  687. is /usr/xpg4/bin. See INSTALL for details.
  688. - Added a workaround for a POSIX shell detection problem on
  689. Solaris.
  690. * Build systems:
  691. - Added preliminary build instructions for z/OS. See INSTALL
  692. section 1.2.9.
  693. - Experimental CMake support was added. It should work to build
  694. static liblzma on a few operating systems. It may or may not
  695. work to build shared liblzma. On some platforms it can build
  696. xz and xzdec too but those are only for testing. See the
  697. comment in the beginning of CMakeLists.txt for details.
  698. - Visual Studio project files were updated.
  699. WindowsTargetPlatformVersion was removed from VS2017 files
  700. and set to "10.0" in the added VS2019 files. In the future
  701. the VS project files will be removed when CMake support is
  702. good enough.
  703. - New #defines in config.h: HAVE___BUILTIN_ASSUME_ALIGNED,
  704. HAVE___BUILTIN_BSWAPXX, and TUKLIB_USE_UNSAFE_TYPE_PUNNING.
  705. - autogen.sh has a new optional dependency on po4a and a new
  706. option --no-po4a to skip that step. This matters only if one
  707. wants to remake the build files. po4a is used to update the
  708. translated man pages but as long as the man pages haven't
  709. been modified, there's nothing to update and one can use
  710. --no-po4a to avoid the dependency on po4a.
  711. * Translations:
  712. - XZ Utils translations are now handled by the Translation
  713. Project: https://translationproject.org/domain/xz.html
  714. - All man pages are now included in German too.
  715. - New xz translations: Brazilian Portuguese, Finnish,
  716. Hungarian, Chinese (simplified), Chinese (traditional),
  717. and Danish (partial translation)
  718. - Updated xz translations: French, German, Italian, and Polish
  719. - Unfortunately a few new xz translations weren't included due
  720. to technical problems like too long lines in --help output or
  721. misaligned column headings in tables. In the future, many of
  722. these strings will be split and e.g. the table column
  723. alignment will be handled in software. This should make the
  724. strings easier to translate.
  725. 5.2.4 (2018-04-29)
  726. * liblzma:
  727. - Allow 0 as memory usage limit instead of returning
  728. LZMA_PROG_ERROR. Now 0 is treated as if 1 byte was specified,
  729. which effectively is the same as 0.
  730. - Use "noexcept" keyword instead of "throw()" in the public
  731. headers when a C++11 (or newer standard) compiler is used.
  732. - Added a portability fix for recent Intel C Compilers.
  733. - Microsoft Visual Studio build files have been moved under
  734. windows/vs2013 and windows/vs2017.
  735. * xz:
  736. - Fix "xz --list --robot missing_or_bad_file.xz" which would
  737. try to print an uninitialized string and thus produce garbage
  738. output. Since the exit status is non-zero, most uses of such
  739. a command won't try to interpret the garbage output.
  740. - "xz --list foo.xz" could print "Internal error (bug)" in a
  741. corner case where a specific memory usage limit had been set.
  742. 5.2.3 (2016-12-30)
  743. * xz:
  744. - Always close a file before trying to delete it to avoid
  745. problems on some operating system and file system combinations.
  746. - Fixed copying of file timestamps on Windows.
  747. - Added experimental (disabled by default) sandbox support using
  748. Capsicum (FreeBSD >= 10). See --enable-sandbox in INSTALL.
  749. * C99/C11 conformance fixes to liblzma. The issues affected at least
  750. some builds using link-time optimizations.
  751. * Fixed bugs in the rarely-used function lzma_index_dup().
  752. * Use of external SHA-256 code is now disabled by default.
  753. It can still be enabled by passing --enable-external-sha256
  754. to configure. The reasons to disable it by default (see INSTALL
  755. for more details):
  756. - Some OS-specific SHA-256 implementations conflict with
  757. OpenSSL and cause problems in programs that link against both
  758. liblzma and libcrypto. At least FreeBSD 10 and MINIX 3.3.0
  759. are affected.
  760. - The internal SHA-256 is faster than the SHA-256 code in
  761. some operating systems.
  762. * Changed CPU core count detection to use sched_getaffinity() on
  763. GNU/Linux and GNU/kFreeBSD.
  764. * Fixes to the build-system and xz to make xz buildable even when
  765. encoders, decoders, or threading have been disabled from libilzma
  766. using configure options. These fixes added two new #defines to
  767. config.h: HAVE_ENCODERS and HAVE_DECODERS.
  768. 5.2.2 (2015-09-29)
  769. * Fixed bugs in QNX-specific code.
  770. * Omitted the use of pipe2() even if it is available to avoid
  771. portability issues with some old Linux and glibc combinations.
  772. * Updated German translation.
  773. * Added project files to build static and shared liblzma (not the
  774. whole XZ Utils) with Visual Studio 2013 update 2 or later.
  775. * Documented that threaded decompression hasn't been implemented
  776. yet. A 5.2.0 NEWS entry describing multi-threading support had
  777. incorrectly said "decompression" when it should have said
  778. "compression".
  779. 5.2.1 (2015-02-26)
  780. * Fixed a compression-ratio regression in fast mode of LZMA1 and
  781. LZMA2. The bug is present in 5.1.4beta and 5.2.0 releases.
  782. * Fixed a portability problem in xz that affected at least OpenBSD.
  783. * Fixed xzdiff to be compatible with FreeBSD's mktemp which differs
  784. from most other mktemp implementations.
  785. * Changed CPU core count detection to use cpuset_getaffinity() on
  786. FreeBSD.
  787. 5.2.0 (2014-12-21)
  788. Since 5.1.4beta:
  789. * All fixes from 5.0.8
  790. * liblzma: Fixed lzma_stream_encoder_mt_memusage() when a preset
  791. was used.
  792. * xzdiff: If mktemp isn't installed, mkdir will be used as
  793. a fallback to create a temporary directory. Installing mktemp
  794. is still recommended.
  795. * Updated French, German, Italian, Polish, and Vietnamese
  796. translations.
  797. Summary of fixes and new features added in the 5.1.x development
  798. releases:
  799. * liblzma:
  800. - Added support for multi-threaded compression. See the
  801. lzma_mt structure, lzma_stream_encoder_mt(), and
  802. lzma_stream_encoder_mt_memusage() in <lzma/container.h>,
  803. lzma_get_progress() in <lzma/base.h>, and lzma_cputhreads()
  804. in <lzma/hardware.h> for details.
  805. - Made the uses of lzma_allocator const correct.
  806. - Added lzma_block_uncomp_encode() to create uncompressed
  807. .xz Blocks using LZMA2 uncompressed chunks.
  808. - Added support for LZMA_IGNORE_CHECK.
  809. - A few speed optimizations were made.
  810. - Added support for symbol versioning. It is enabled by default
  811. on GNU/Linux, other GNU-based systems, and FreeBSD.
  812. - liblzma (not the whole XZ Utils) should now be buildable
  813. with MSVC 2013 update 2 or later using windows/config.h.
  814. * xz:
  815. - Fixed a race condition in the signal handling. It was
  816. possible that e.g. the first SIGINT didn't make xz exit
  817. if reading or writing blocked and one had bad luck. The fix
  818. is non-trivial, so as of writing it is unknown if it will be
  819. backported to the v5.0 branch.
  820. - Multi-threaded compression can be enabled with the
  821. --threads (-T) option.
  822. [Fixed: This originally said "decompression".]
  823. - New command line options in xz: --single-stream,
  824. --block-size=SIZE, --block-list=SIZES,
  825. --flush-timeout=TIMEOUT, and --ignore-check.
  826. - xz -lvv now shows the minimum xz version that is required to
  827. decompress the file. Currently it is 5.0.0 for all supported
  828. .xz files except files with empty LZMA2 streams require 5.0.2.
  829. * xzdiff and xzgrep now support .lzo files if lzop is installed.
  830. The .tzo suffix is also recognized as a shorthand for .tar.lzo.
  831. 5.1.4beta (2014-09-14)
  832. * All fixes from 5.0.6
  833. * liblzma: Fixed the use of presets in threaded encoder
  834. initialization.
  835. * xz --block-list and --block-size can now be used together
  836. in single-threaded mode. Previously the combination only
  837. worked in multi-threaded mode.
  838. * Added support for LZMA_IGNORE_CHECK to liblzma and made it
  839. available in xz as --ignore-check.
  840. * liblzma speed optimizations:
  841. - Initialization of a new LZMA1 or LZMA2 encoder has been
  842. optimized. (The speed of reinitializing an already-allocated
  843. encoder isn't affected.) This helps when compressing many
  844. small buffers with lzma_stream_buffer_encode() and other
  845. similar situations where an already-allocated encoder state
  846. isn't reused. This speed-up is visible in xz too if one
  847. compresses many small files one at a time instead running xz
  848. once and giving all files as command-line arguments.
  849. - Buffer comparisons are now much faster when unaligned access
  850. is allowed (configured with --enable-unaligned-access). This
  851. speeds up encoding significantly. There is arch-specific code
  852. for 32-bit and 64-bit x86 (32-bit needs SSE2 for the best
  853. results and there's no run-time CPU detection for now).
  854. For other archs there is only generic code which probably
  855. isn't as optimal as arch-specific solutions could be.
  856. - A few speed optimizations were made to the SHA-256 code.
  857. (Note that the builtin SHA-256 code isn't used on all
  858. operating systems.)
  859. * liblzma can now be built with MSVC 2013 update 2 or later
  860. using windows/config.h.
  861. * Vietnamese translation was added.
  862. 5.1.3alpha (2013-10-26)
  863. * All fixes from 5.0.5
  864. * liblzma:
  865. - Fixed a deadlock in the threaded encoder.
  866. - Made the uses of lzma_allocator const correct.
  867. - Added lzma_block_uncomp_encode() to create uncompressed
  868. .xz Blocks using LZMA2 uncompressed chunks.
  869. - Added support for native threads on Windows and the ability
  870. to detect the number of CPU cores.
  871. * xz:
  872. - Fixed a race condition in the signal handling. It was
  873. possible that e.g. the first SIGINT didn't make xz exit
  874. if reading or writing blocked and one had bad luck. The fix
  875. is non-trivial, so as of writing it is unknown if it will be
  876. backported to the v5.0 branch.
  877. - Made the progress indicator work correctly in threaded mode.
  878. - Threaded encoder now works together with --block-list=SIZES.
  879. - Added preliminary support for --flush-timeout=TIMEOUT.
  880. It can be useful for (somewhat) real-time streaming. For
  881. now the decompression side has to be done with something
  882. else than the xz tool due to how xz does buffering, but this
  883. should be fixed.
  884. 5.1.2alpha (2012-07-04)
  885. * All fixes from 5.0.3 and 5.0.4
  886. * liblzma:
  887. - Fixed a deadlock and an invalid free() in the threaded encoder.
  888. - Added support for symbol versioning. It is enabled by default
  889. on GNU/Linux, other GNU-based systems, and FreeBSD.
  890. - Use SHA-256 implementation from the operating system if one is
  891. available in libc, libmd, or libutil. liblzma won't use e.g.
  892. OpenSSL or libgcrypt to avoid introducing new dependencies.
  893. - Fixed liblzma.pc for static linking.
  894. - Fixed a few portability bugs.
  895. * xz --decompress --single-stream now fixes the input position after
  896. successful decompression. Now the following works:
  897. echo foo | xz > foo.xz
  898. echo bar | xz >> foo.xz
  899. ( xz -dc --single-stream ; xz -dc --single-stream ) < foo.xz
  900. Note that it doesn't work if the input is not seekable
  901. or if there is Stream Padding between the concatenated
  902. .xz Streams.
  903. * xz -lvv now shows the minimum xz version that is required to
  904. decompress the file. Currently it is 5.0.0 for all supported .xz
  905. files except files with empty LZMA2 streams require 5.0.2.
  906. * Added an *incomplete* implementation of --block-list=SIZES to xz.
  907. It only works correctly in single-threaded mode and when
  908. --block-size isn't used at the same time. --block-list allows
  909. specifying the sizes of Blocks which can be useful e.g. when
  910. creating files for random-access reading.
  911. 5.1.1alpha (2011-04-12)
  912. * All fixes from 5.0.2
  913. * liblzma fixes that will also be included in 5.0.3:
  914. - A memory leak was fixed.
  915. - lzma_stream_buffer_encode() no longer creates an empty .xz
  916. Block if encoding an empty buffer. Such an empty Block with
  917. LZMA2 data would trigger a bug in 5.0.1 and older (see the
  918. first bullet point in 5.0.2 notes). When releasing 5.0.2,
  919. I thought that no encoder creates this kind of files but
  920. I was wrong.
  921. - Validate function arguments better in a few functions. Most
  922. importantly, specifying an unsupported integrity check to
  923. lzma_stream_buffer_encode() no longer creates a corrupt .xz
  924. file. Probably no application tries to do that, so this
  925. shouldn't be a big problem in practice.
  926. - Document that lzma_block_buffer_encode(),
  927. lzma_easy_buffer_encode(), lzma_stream_encoder(), and
  928. lzma_stream_buffer_encode() may return LZMA_UNSUPPORTED_CHECK.
  929. - The return values of the _memusage() functions are now
  930. documented better.
  931. * Support for multithreaded compression was added using the simplest
  932. method, which splits the input data into blocks and compresses
  933. them independently. Other methods will be added in the future.
  934. The current method has room for improvement, e.g. it is possible
  935. to reduce the memory usage.
  936. * Added the options --single-stream and --block-size=SIZE to xz.
  937. * xzdiff and xzgrep now support .lzo files if lzop is installed.
  938. The .tzo suffix is also recognized as a shorthand for .tar.lzo.
  939. * Support for short 8.3 filenames under DOS was added to xz. It is
  940. experimental and may change before it gets into a stable release.
  941. 5.0.8 (2014-12-21)
  942. * Fixed an old bug in xzgrep that affected OpenBSD and probably
  943. a few other operating systems too.
  944. * Updated French and German translations.
  945. * Added support for detecting the amount of RAM on AmigaOS/AROS.
  946. * Minor build system updates.
  947. 5.0.7 (2014-09-20)
  948. * Fix regressions introduced in 5.0.6:
  949. - Fix building with non-GNU make.
  950. - Fix invalid Libs.private value in liblzma.pc which broke
  951. static linking against liblzma if the linker flags were
  952. taken from pkg-config.
  953. 5.0.6 (2014-09-14)
  954. * xzgrep now exits with status 0 if at least one file matched.
  955. * A few minor portability and build system fixes
  956. 5.0.5 (2013-06-30)
  957. * lzmadec and liblzma's lzma_alone_decoder(): Support decompressing
  958. .lzma files that have less common settings in the headers
  959. (dictionary size other than 2^n or 2^n + 2^(n-1), or uncompressed
  960. size greater than 256 GiB). The limitations existed to avoid false
  961. positives when detecting .lzma files. The lc + lp <= 4 limitation
  962. still remains since liblzma's LZMA decoder has that limitation.
  963. NOTE: xz's .lzma support or liblzma's lzma_auto_decoder() are NOT
  964. affected by this change. They still consider uncommon .lzma headers
  965. as not being in the .lzma format. Changing this would give way too
  966. many false positives.
  967. * xz:
  968. - Interaction of preset and custom filter chain options was
  969. made less illogical. This affects only certain less typical
  970. uses cases so few people are expected to notice this change.
  971. Now when a custom filter chain option (e.g. --lzma2) is
  972. specified, all preset options (-0 ... -9, -e) earlier are on
  973. the command line are completely forgotten. Similarly, when
  974. a preset option is specified, all custom filter chain options
  975. earlier on the command line are completely forgotten.
  976. Example 1: "xz -9 --lzma2=preset=5 -e" is equivalent to "xz -e"
  977. which is equivalent to "xz -6e". Earlier -e didn't put xz back
  978. into preset mode and thus the example command was equivalent
  979. to "xz --lzma2=preset=5".
  980. Example 2: "xz -9e --lzma2=preset=5 -7" is equivalent to
  981. "xz -7". Earlier a custom filter chain option didn't make
  982. xz forget the -e option so the example was equivalent to
  983. "xz -7e".
  984. - Fixes and improvements to error handling.
  985. - Various fixes to the man page.
  986. * xzless: Fixed to work with "less" versions 448 and later.
  987. * xzgrep: Made -h an alias for --no-filename.
  988. * Include the previously missing debug/translation.bash which can
  989. be useful for translators.
  990. * Include a build script for Mac OS X. This has been in the Git
  991. repository since 2010 but due to a mistake in Makefile.am the
  992. script hasn't been included in a release tarball before.
  993. 5.0.4 (2012-06-22)
  994. * liblzma:
  995. - Fix lzma_index_init(). It could crash if memory allocation
  996. failed.
  997. - Fix the possibility of an incorrect LZMA_BUF_ERROR when a BCJ
  998. filter is used and the application only provides exactly as
  999. much output space as is the uncompressed size of the file.
  1000. - Fix a bug in doc/examples_old/xz_pipe_decompress.c. It didn't
  1001. check if the last call to lzma_code() really returned
  1002. LZMA_STREAM_END, which made the program think that truncated
  1003. files are valid.
  1004. - New example programs in doc/examples (old programs are now in
  1005. doc/examples_old). These have more comments and more detailed
  1006. error handling.
  1007. * Fix "xz -lvv foo.xz". It could crash on some corrupted files.
  1008. * Fix output of "xz --robot -lv" and "xz --robot -lvv" which
  1009. incorrectly printed the filename also in the "foo (x/x)" format.
  1010. * Fix exit status of "xzdiff foo.xz bar.xz".
  1011. * Fix exit status of "xzgrep foo binary_file".
  1012. * Fix portability to EBCDIC systems.
  1013. * Fix a configure issue on AIX with the XL C compiler. See INSTALL
  1014. for details.
  1015. * Update French, German, Italian, and Polish translations.
  1016. 5.0.3 (2011-05-21)
  1017. * liblzma fixes:
  1018. - A memory leak was fixed.
  1019. - lzma_stream_buffer_encode() no longer creates an empty .xz
  1020. Block if encoding an empty buffer. Such an empty Block with
  1021. LZMA2 data would trigger a bug in 5.0.1 and older (see the
  1022. first bullet point in 5.0.2 notes). When releasing 5.0.2,
  1023. I thought that no encoder creates this kind of files but
  1024. I was wrong.
  1025. - Validate function arguments better in a few functions. Most
  1026. importantly, specifying an unsupported integrity check to
  1027. lzma_stream_buffer_encode() no longer creates a corrupt .xz
  1028. file. Probably no application tries to do that, so this
  1029. shouldn't be a big problem in practice.
  1030. - Document that lzma_block_buffer_encode(),
  1031. lzma_easy_buffer_encode(), lzma_stream_encoder(), and
  1032. lzma_stream_buffer_encode() may return LZMA_UNSUPPORTED_CHECK.
  1033. - The return values of the _memusage() functions are now
  1034. documented better.
  1035. * Fix command name detection in xzgrep. xzegrep and xzfgrep now
  1036. correctly use egrep and fgrep instead of grep.
  1037. * French translation was added.
  1038. 5.0.2 (2011-04-01)
  1039. * LZMA2 decompressor now correctly accepts LZMA2 streams with no
  1040. uncompressed data. Previously it considered them corrupt. The
  1041. bug can affect applications that use raw LZMA2 streams. It is
  1042. very unlikely to affect .xz files because no compressor creates
  1043. .xz files with empty LZMA2 streams. (Empty .xz files are a
  1044. different thing than empty LZMA2 streams.)
  1045. * "xz --suffix=.foo filename.foo" now refuses to compress the
  1046. file due to it already having the suffix .foo. It was already
  1047. documented on the man page, but the code lacked the test.
  1048. * "xzgrep -l foo bar.xz" works now.
  1049. * Polish translation was added.
  1050. 5.0.1 (2011-01-29)
  1051. * xz --force now (de)compresses files that have setuid, setgid,
  1052. or sticky bit set and files that have multiple hard links.
  1053. The man page had it documented this way already, but the code
  1054. had a bug.
  1055. * gzip and bzip2 support in xzdiff was fixed.
  1056. * Portability fixes
  1057. * Minor fix to Czech translation
  1058. 5.0.0 (2010-10-23)
  1059. Only the most important changes compared to 4.999.9beta are listed
  1060. here. One change is especially important:
  1061. * The memory usage limit is now disabled by default. Some scripts
  1062. written before this change may have used --memory=max on xz command
  1063. line or in XZ_OPT. THESE USES OF --memory=max SHOULD BE REMOVED
  1064. NOW, because they interfere with user's ability to set the memory
  1065. usage limit himself. If user-specified limit causes problems to
  1066. your script, blame the user.
  1067. Other significant changes:
  1068. * Added support for XZ_DEFAULTS environment variable. This variable
  1069. allows users to set default options for xz, e.g. default memory
  1070. usage limit or default compression level. Scripts that use xz
  1071. must never set or unset XZ_DEFAULTS. Scripts should use XZ_OPT
  1072. instead if they need a way to pass options to xz via an
  1073. environment variable.
  1074. * The compression settings associated with the preset levels
  1075. -0 ... -9 have been changed. --extreme was changed a little too.
  1076. It is now less likely to make compression worse, but with some
  1077. files the new --extreme may compress slightly worse than the old
  1078. --extreme.
  1079. * If a preset level (-0 ... -9) is specified after a custom filter
  1080. chain options have been used (e.g. --lzma2), the custom filter
  1081. chain will be forgotten. Earlier the preset options were
  1082. completely ignored after custom filter chain options had been
  1083. seen.
  1084. * xz will create sparse files when decompressing if the uncompressed
  1085. data contains long sequences of binary zeros. This is done even
  1086. when writing to standard output that is connected to a regular
  1087. file and certain additional conditions are met to make it safe.
  1088. * Support for "xz --list" was added. Combine with --verbose or
  1089. --verbose --verbose (-vv) for detailed output.
  1090. * I had hoped that liblzma API would have been stable after
  1091. 4.999.9beta, but there have been a couple of changes in the
  1092. advanced features, which don't affect most applications:
  1093. - Index handling code was revised. If you were using the old
  1094. API, you will get a compiler error (so it's easy to notice).
  1095. - A subtle but important change was made to the Block handling
  1096. API. lzma_block.version has to be initialized even for
  1097. lzma_block_header_decode(). Code that doesn't do it will work
  1098. for now, but might break in the future, which makes this API
  1099. change easy to miss.
  1100. * The major soname has been bumped to 5.0.0. liblzma API and ABI
  1101. are now stable, so the need to recompile programs linking against
  1102. liblzma shouldn't arise soon.