1commit d8a898eb9974683bc725c49ec76722f9a8758f48 2Author: Lasse Collin <lasse.collin@tukaani.org> 3Date: 2022-11-30 18:33:05 +0200 4 5 Bump version and soname for 5.2.9. 6 7 src/liblzma/Makefile.am | 2 +- 8 src/liblzma/api/lzma/version.h | 2 +- 9 2 files changed, 2 insertions(+), 2 deletions(-) 10 11commit efd4430e21f798e198a6ee8a368a79065139eb54 12Author: Lasse Collin <lasse.collin@tukaani.org> 13Date: 2022-11-30 18:31:16 +0200 14 15 Add NEWS for 5.2.9. 16 17 NEWS | 34 ++++++++++++++++++++++++++++++++++ 18 1 file changed, 34 insertions(+) 19 20commit 2dc1bc97a562ef4d4134c8df4d344d0f403428b8 21Author: Lasse Collin <lasse.collin@tukaani.org> 22Date: 2022-11-30 18:08:34 +0200 23 24 Change the bug report address. 25 26 It forwards to me and Jia Tan. 27 28 Also update the IRC reference in README as #tukaani was moved 29 to Libera Chat long ago. 30 31 CMakeLists.txt | 2 +- 32 README | 11 +++++------ 33 configure.ac | 2 +- 34 dos/config.h | 2 +- 35 windows/README-Windows.txt | 2 +- 36 5 files changed, 9 insertions(+), 10 deletions(-) 37 38commit fb13a234d9def06cbe2b8ed88ece7db0c6d5c39f 39Author: Lasse Collin <lasse.collin@tukaani.org> 40Date: 2022-11-30 17:38:32 +0200 41 42 Update to HTTPS URLs in AUTHORS. 43 44 AUTHORS | 6 +++--- 45 1 file changed, 3 insertions(+), 3 deletions(-) 46 47commit 841448e36d4455d39ff1e1115843360934e7a507 48Author: Lasse Collin <lasse.collin@tukaani.org> 49Date: 2022-11-27 01:03:16 +0200 50 51 liblzma: Remove two FIXME comments. 52 53 src/liblzma/common/filter_encoder.c | 4 ++-- 54 1 file changed, 2 insertions(+), 2 deletions(-) 55 56commit b61da00c7f535bd48930a878efdf6843d804983e 57Author: Lasse Collin <lasse.collin@tukaani.org> 58Date: 2022-11-24 14:52:44 +0200 59 60 Build: Don't put GNU/Linux-specific symbol versions into static liblzma. 61 62 It not only makes no sense to put symbol versions into a static library 63 but it can also cause breakage. 64 65 By default Libtool #defines PIC if building a shared library and 66 doesn't define it for static libraries. This is documented in the 67 Libtool manual. It can be overriden using --with-pic or --without-pic. 68 configure.ac detects if --with-pic or --without-pic is used and then 69 gives an error if neither --disable-shared nor --disable-static was 70 used at the same time. Thus, in normal situations it works to build 71 both shared and static library at the same time on GNU/Linux, 72 only --with-pic or --without-pic requires that only one type of 73 library is built. 74 75 Thanks to John Paul Adrian Glaubitz from Debian for reporting 76 the problem that occurred on ia64: 77 https://www.mail-archive.com/xz-devel@tukaani.org/msg00610.html 78 79 CMakeLists.txt | 5 +- 80 configure.ac | 143 +++++++++++++++++++++++++++++--------------- 81 src/liblzma/common/common.h | 12 ++++ 82 3 files changed, 111 insertions(+), 49 deletions(-) 83 84commit 6c29793b3cac292b25801d011db6d8ccade50396 85Author: Lasse Collin <lasse.collin@tukaani.org> 86Date: 2022-11-24 00:02:31 +0200 87 88 CMake: Don't use symbol versioning with static library. 89 90 CMakeLists.txt | 10 +++++++--- 91 1 file changed, 7 insertions(+), 3 deletions(-) 92 93commit 872623def5e3e5c7f9f14f366d908f3e012d1007 94Author: Lasse Collin <lasse.collin@tukaani.org> 95Date: 2022-11-24 01:26:37 +0200 96 97 liblzma: Fix another invalid free() after memory allocation failure. 98 99 This time it can happen when lzma_stream_encoder_mt() is used 100 to reinitialize an existing multi-threaded Stream encoder 101 and one of 1-4 tiny allocations in lzma_filters_copy() fail. 102 103 It's very similar to the previous bug 104 10430fbf3820dafd4eafd38ec8be161a6978ed2b, happening with 105 an array of lzma_filter structures whose old options are freed 106 but the replacement never arrives due to a memory allocation 107 failure in lzma_filters_copy(). 108 109 src/liblzma/common/stream_encoder_mt.c | 4 ++++ 110 1 file changed, 4 insertions(+) 111 112commit b0f8d9293ca5a0a56964695a59a098c9d1e82b99 113Author: Jia Tan <jiat0218@gmail.com> 114Date: 2022-05-05 20:53:42 +0800 115 116 liblzma: Add support for LZMA_SYNC_FLUSH in the Block encoder. 117 118 The documentation mentions that lzma_block_encoder() supports 119 LZMA_SYNC_FLUSH but it was never added to supported_actions[] 120 in the internal structure. Because of this, LZMA_SYNC_FLUSH could 121 not be used with the Block encoder unless it was the next coder 122 after something like stream_encoder() or stream_encoder_mt(). 123 124 src/liblzma/common/block_encoder.c | 1 + 125 1 file changed, 1 insertion(+) 126 127commit 6997e0b5e2339025646cfaec13a3317fb340729b 128Author: Lasse Collin <lasse.collin@tukaani.org> 129Date: 2022-11-23 21:55:22 +0200 130 131 liblzma: Add lzma_attr_warn_unused_result to lzma_filters_copy(). 132 133 src/liblzma/api/lzma/filter.h | 3 ++- 134 1 file changed, 2 insertions(+), 1 deletion(-) 135 136commit f94a3e34603c56c55777056bb5412bfd0e948f0b 137Author: Lasse Collin <lasse.collin@tukaani.org> 138Date: 2022-11-23 21:26:21 +0200 139 140 liblzma: Fix invalid free() after memory allocation failure. 141 142 The bug was in the single-threaded .xz Stream encoder 143 in the code that is used for both re-initialization and for 144 lzma_filters_update(). To trigger it, an application had 145 to either re-initialize an existing encoder instance with 146 lzma_stream_encoder() or use lzma_filters_update(), and 147 then one of the 1-4 tiny allocations in lzma_filters_copy() 148 (called from stream_encoder_update()) must fail. An error 149 was correctly reported but the encoder state was corrupted. 150 151 This is related to the recent fix in 152 f8ee61e74eb40600445fdb601c374d582e1e9c8a which is good but 153 it wasn't enough to fix the main problem in stream_encoder.c. 154 155 src/liblzma/common/stream_encoder.c | 39 +++++++++++++++++++++++++++++-------- 156 1 file changed, 31 insertions(+), 8 deletions(-) 157 158commit 8309385b444bce23e56256e21fb008a170434008 159Author: Lasse Collin <lasse.collin@tukaani.org> 160Date: 2022-11-22 16:37:15 +0200 161 162 liblzma: Fix language in a comment. 163 164 src/liblzma/common/stream_encoder.c | 2 +- 165 1 file changed, 1 insertion(+), 1 deletion(-) 166 167commit 5fecba6022cbbeed8103b49d79b2fb36086be72d 168Author: Lasse Collin <lasse.collin@tukaani.org> 169Date: 2022-11-22 11:20:17 +0200 170 171 liblzma: Fix infinite loop in LZMA encoder init with dict_size >= 2 GiB. 172 173 The encoder doesn't support dictionary sizes larger than 1536 MiB. 174 This is validated, for example, when calculating the memory usage 175 via lzma_raw_encoder_memusage(). It is also enforced by the LZ 176 part of the encoder initialization. However, LZMA encoder with 177 LZMA_MODE_NORMAL did an unsafe calculation with dict_size before 178 such validation and that results in an infinite loop if dict_size 179 was 2 << 30 or greater. 180 181 src/liblzma/lzma/lzma_encoder.c | 19 +++++++++++++++---- 182 1 file changed, 15 insertions(+), 4 deletions(-) 183 184commit 1946b2b141d8b12c9325ba48d3a04ad8e8206750 185Author: Lasse Collin <lasse.collin@tukaani.org> 186Date: 2022-11-21 13:02:33 +0200 187 188 liblzma: Fix two Doxygen commands in the API headers. 189 190 These were caught by clang -Wdocumentation. 191 192 src/liblzma/api/lzma/hardware.h | 2 +- 193 src/liblzma/api/lzma/index_hash.h | 2 +- 194 2 files changed, 2 insertions(+), 2 deletions(-) 195 196commit 5476089d9c42b9b04e92b80e1800b384a98265cb 197Author: Lasse Collin <lasse.collin@tukaani.org> 198Date: 2022-11-13 19:58:47 +0200 199 200 Bump version and soname for 5.2.8. 201 202 src/liblzma/Makefile.am | 2 +- 203 src/liblzma/api/lzma/version.h | 2 +- 204 2 files changed, 2 insertions(+), 2 deletions(-) 205 206commit f9994f395d04d37b75e879f90397258b86b466cc 207Author: Lasse Collin <lasse.collin@tukaani.org> 208Date: 2022-11-13 19:57:26 +0200 209 210 Add NEWS for 5.2.8. 211 212 NEWS | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 213 1 file changed, 79 insertions(+) 214 215commit cdf14b28993ef2f3168821372467e3aa7cf1e973 216Author: Lasse Collin <lasse.collin@tukaani.org> 217Date: 2022-11-11 17:16:03 +0200 218 219 Update THANKS. 220 221 THANKS | 1 + 222 1 file changed, 1 insertion(+) 223 224commit 454f567e58bbadea5cff4f31ef450c1305e9853d 225Author: Lasse Collin <lasse.collin@tukaani.org> 226Date: 2022-11-11 17:15:25 +0200 227 228 liblzma: Fix building with Intel ICC (the classic compiler). 229 230 It claims __GNUC__ >= 10 but doesn't support __symver__ attribute. 231 232 Thanks to Stephen Sachs. 233 234 src/liblzma/common/common.h | 2 +- 235 1 file changed, 1 insertion(+), 1 deletion(-) 236 237commit 2f01169f5a81e21e7a7e5f799c32472c6277b1d5 238Author: Lasse Collin <lasse.collin@tukaani.org> 239Date: 2022-11-11 14:35:58 +0200 240 241 liblzma: Fix incorrect #ifdef for x86 SSE2 support. 242 243 __SSE2__ is the correct macro for SSE2 support with GCC, Clang, 244 and ICC. __SSE2_MATH__ means doing floating point math with SSE2 245 instead of 387. Often the latter macro is defined if the first 246 one is but it was still a bug. 247 248 src/liblzma/common/memcmplen.h | 3 +-- 249 1 file changed, 1 insertion(+), 2 deletions(-) 250 251commit fc1358679ed3994f67e5e8c869c281be82370a32 252Author: Lasse Collin <lasse.collin@tukaani.org> 253Date: 2022-11-11 12:23:58 +0200 254 255 Scripts: Ignore warnings from xz. 256 257 In practice this means making the scripts work when 258 the input files have an unsupported check type which 259 isn't a problem in practice unless support for 260 some check types has been disabled at build time. 261 262 src/scripts/xzdiff.in | 5 +++-- 263 src/scripts/xzgrep.in | 2 +- 264 src/scripts/xzless.in | 4 ++-- 265 src/scripts/xzmore.in | 4 ++-- 266 4 files changed, 8 insertions(+), 7 deletions(-) 267 268commit a08be1c420501b1c75770a8f6103e3959486c895 269Author: Lasse Collin <lasse.collin@tukaani.org> 270Date: 2022-11-09 14:10:52 +0200 271 272 xz: Add comments about stdin and src_st.st_size. 273 274 "xz -v < regular_file > out.xz" doesn't display the percentage 275 and estimated remaining time because it doesn't even try to 276 check the input file size when input is read from stdin. 277 This could be improved but for now there's just a comment 278 to remind about it. 279 280 src/xz/coder.c | 9 +++++++++ 281 src/xz/file_io.c | 4 ++++ 282 2 files changed, 13 insertions(+) 283 284commit 3ee411cd1cd636bdced6ecede4651394bb4f9cb1 285Author: Lasse Collin <lasse.collin@tukaani.org> 286Date: 2022-11-09 12:48:22 +0200 287 288 xz: Fix displaying of file sizes in progress indicator in passthru mode. 289 290 It worked for one input file since the counters are zero when 291 xz starts but they weren't reset when starting a new file in 292 passthru mode. For example, if files A, B, and C are one byte each, 293 then "xz -dcvf A B C" would show file sizes as 1, 2, and 3 bytes 294 instead of 1, 1, and 1 byte. 295 296 src/xz/coder.c | 6 +++++- 297 1 file changed, 5 insertions(+), 1 deletion(-) 298 299commit aa7fa9d960df4bb21f7727bbf7ce0503f3d211b4 300Author: Lasse Collin <lasse.collin@tukaani.org> 301Date: 2022-11-09 11:27:20 +0200 302 303 xz: Add a comment why --to-stdout is not in --help. 304 305 It is on the man page still. 306 307 src/xz/message.c | 3 +++ 308 1 file changed, 3 insertions(+) 309 310commit ff49ff84a4ba3fab25ffb6d65af321dee36c1273 311Author: Lasse Collin <lasse.collin@tukaani.org> 312Date: 2022-11-08 22:26:54 +0200 313 314 Docs: Update faq.txt a little. 315 316 doc/faq.txt | 66 ++++++++++++++++++++++++++++++++++++++++--------------------- 317 1 file changed, 43 insertions(+), 23 deletions(-) 318 319commit 3489565b75b45ee514cf0a6785bb721c7dc624f3 320Author: Lasse Collin <lasse.collin@tukaani.org> 321Date: 2022-11-08 14:13:03 +0200 322 323 liblzma: Update API docs about decoder flags. 324 325 src/liblzma/api/lzma/container.h | 20 ++++++++++++++++---- 326 1 file changed, 16 insertions(+), 4 deletions(-) 327 328commit e4937710805c4b660fc629c15d9a6164b2d97822 329Author: Lasse Collin <lasse.collin@tukaani.org> 330Date: 2022-11-08 14:00:58 +0200 331 332 liblzma: Fix a comment in auto_decoder.c. 333 334 src/liblzma/common/auto_decoder.c | 4 ++-- 335 1 file changed, 2 insertions(+), 2 deletions(-) 336 337commit d4674dfbb7d1df1feb841f5dbce6ae1f0b026879 338Author: Jia Tan <jiat0218@gmail.com> 339Date: 2022-11-07 16:24:14 +0200 340 341 xz: Avoid a compiler warning in progress_speed() in message.c. 342 343 This should be smaller too since it avoids the string constants. 344 345 src/xz/message.c | 9 +++------ 346 1 file changed, 3 insertions(+), 6 deletions(-) 347 348commit 4ed56d32a91ff8ff21c71db4082a54a72ae08b3d 349Author: Lasse Collin <lasse.collin@tukaani.org> 350Date: 2022-10-31 16:26:05 +0200 351 352 Build: Clarify comment in configure.ac about SSE2. 353 354 configure.ac | 5 ++++- 355 1 file changed, 4 insertions(+), 1 deletion(-) 356 357commit f930638797f1fec05b272367c052d4fc9de35896 358Author: Lasse Collin <lasse.collin@tukaani.org> 359Date: 2022-10-31 16:16:37 +0200 360 361 Build: Remove obsolete commented-out lines from configure.ac. 362 363 configure.ac | 4 ---- 364 1 file changed, 4 deletions(-) 365 366commit 6930f14733757592a4f8d92513f642a5dcc9ec9c 367Author: Lasse Collin <lasse.collin@tukaani.org> 368Date: 2022-10-31 13:31:58 +0200 369 370 Windows: Fix mythread_once() macro with Vista threads. 371 372 Don't call InitOnceComplete() if initialization was already done. 373 374 So far mythread_once() has been needed only when building 375 with --enable-small. windows/build.bash does this together 376 with --disable-threads so the Vista-specific mythread_once() 377 is never needed by those builds. VS project files or 378 CMake-builds don't support HAVE_SMALL builds at all. 379 380 src/common/mythread.h | 7 ++++--- 381 1 file changed, 4 insertions(+), 3 deletions(-) 382 383commit 1c8cbb5be3a97bf22e933777369c4cc28ef9ed5f 384Author: Lasse Collin <lasse.collin@tukaani.org> 385Date: 2022-10-31 11:49:47 +0200 386 387 CMake: Sync tuklib_cpucores.cmake with tuklib_cpucores.m4. 388 389 This was forgotten from commit 2611c4d90535652d3eb7ef4a026a6691276fab43. 390 391 cmake/tuklib_cpucores.cmake | 5 +++++ 392 1 file changed, 5 insertions(+) 393 394commit fa9efb729b1827b25ec71aefcf32f3aceeaf9597 395Author: Lasse Collin <lasse.collin@tukaani.org> 396Date: 2022-10-25 23:45:03 +0300 397 398 Build: Use AC_CONFIG_HEADERS instead of the ancient AC_CONFIG_HEADER. 399 400 We require Autoconf >= 2.69 and that has AC_CONFIG_HEADERS. 401 402 There is a warning about AC_PROG_CC_C99 being obsolete but 403 it cannot be removed because it is needed with Autoconf 2.69. 404 405 configure.ac | 2 +- 406 1 file changed, 1 insertion(+), 1 deletion(-) 407 408commit b10ba4bf39edd9c9fef42cade3e64fc3b9e3fd19 409Author: Lasse Collin <lasse.collin@tukaani.org> 410Date: 2022-10-25 23:31:44 +0300 411 412 Build: Update m4/ax_pthread.m4 from Autoconf Archive. 413 414 m4/ax_pthread.m4 | 29 ++++++++++++++++++++++------- 415 1 file changed, 22 insertions(+), 7 deletions(-) 416 417commit 01744b280c6e35d331b9dc4cc64716b82bc8b3db 418Author: Lasse Collin <lasse.collin@tukaani.org> 419Date: 2022-10-25 23:09:11 +0300 420 421 xz: Fix --single-stream with an empty .xz Stream. 422 423 Example: 424 425 $ xz -dc --single-stream good-0-empty.xz 426 xz: good-0-empty.xz: Internal error (bug) 427 428 The code, that is tries to catch some input file issues early, 429 didn't anticipate LZMA_STREAM_END which is possible in that 430 code only when --single-stream is used. 431 432 src/xz/coder.c | 9 +++++++++ 433 1 file changed, 9 insertions(+) 434 435commit a3e4606134058241bf1c396243bebcec42c2a780 436Author: Lasse Collin <lasse.collin@tukaani.org> 437Date: 2022-10-25 19:07:17 +0300 438 439 xz: Fix decompressor behavior if input uses an unsupported check type. 440 441 Now files with unsupported check will make xz display 442 a warning, set the exit status to 2 (unless --no-warn is used), 443 and then decompress the file normally. This is how it was 444 supposed to work since the beginning but this was broken by 445 the commit 231c3c7098f1099a56abb8afece76fc9b8699f05, that is, 446 a little before 5.0.0 was released. The buggy behavior displayed 447 a message, set exit status 1 (error), and xz didn't attempt to 448 to decompress the file. 449 450 This doesn't matter today except for special builds that disable 451 CRC64 or SHA-256 at build time (but such builds should be used 452 in special situations only). The bug matters if new check type 453 is added in the future and an old xz version is used to decompress 454 such a file; however, it's likely that such files would use a new 455 filter too and an old xz wouldn't be able to decompress the file 456 anyway. 457 458 The first hunk in the commit is the actual fix. The second hunk 459 is a cleanup since LZMA_TELL_ANY_CHECK isn't used in xz. 460 461 There is a test file for unsupported check type but it wasn't 462 used by test_files.sh, perhaps due to different behavior between 463 xz and the simpler xzdec. 464 465 src/xz/coder.c | 19 +++++++++++++++---- 466 1 file changed, 15 insertions(+), 4 deletions(-) 467 468commit 0b5e8c7e073bce07c59112af1e8a7495e3576e6c 469Author: Lasse Collin <lasse.collin@tukaani.org> 470Date: 2022-10-25 18:36:19 +0300 471 472 xz: Clarify the man page: input file isn't removed if an error occurs. 473 474 src/xz/xz.1 | 5 +++-- 475 1 file changed, 3 insertions(+), 2 deletions(-) 476 477commit 23b7416d5ba0e3579265467bd546865d2ea4cef0 478Author: Lasse Collin <lasse.collin@tukaani.org> 479Date: 2022-10-25 18:23:54 +0300 480 481 xz: If input file cannot be removed, treat it as a warning, not error. 482 483 Treating it as a warning (message + exit status 2) matches gzip 484 and it seems more logical as at that point the output file has 485 already been successfully closed. When it's a warning it is 486 possible to suppress it with --no-warn. 487 488 src/xz/file_io.c | 4 ++-- 489 1 file changed, 2 insertions(+), 2 deletions(-) 490 491commit 5daa40454b63c4eb04ab5caeb339eddc95c94bb1 492Author: Lasse Collin <lasse.collin@tukaani.org> 493Date: 2022-10-20 20:22:50 +0300 494 495 tuklib_cpucores: Use HW_NCPUONLINE on OpenBSD. 496 497 On OpenBSD the number of cores online is often less 498 than what HW_NCPU would return because OpenBSD disables 499 simultaneous multi-threading (SMT) by default. 500 501 Thanks to Christian Weisgerber. 502 503 m4/tuklib_cpucores.m4 | 5 +++++ 504 src/common/tuklib_cpucores.c | 9 +++++++++ 505 2 files changed, 14 insertions(+) 506 507commit 0af861050f375678eafc4e1136ca589ae47d31c0 508Author: Lasse Collin <lasse.collin@tukaani.org> 509Date: 2022-11-11 13:25:02 +0200 510 511 NEWS: Omit the extra copy of 5.2.5 NEWS. 512 513 It was a copy-paste error. 514 515 NEWS | 105 ------------------------------------------------------------------- 516 1 file changed, 105 deletions(-) 517 518commit f0c6a66701afed12c5926c0499b150ecd5b0a63c 519Author: Lasse Collin <lasse.collin@tukaani.org> 520Date: 2022-11-10 12:34:43 +0200 521 522 Translations: Rename poa4/fr_FR.po to po4a/fr.po. 523 524 That's how it is preferred at the Translation Project. 525 On my system /usr/share/man/fr_FR doesn't contain any 526 other man pages than XZ Utils while /usr/share/man/fr 527 has quite a few, so this will fix that too. 528 529 Thanks to Benno Schulenberg from the Translation Project. 530 531 po4a/{fr_FR.po => fr.po} | 0 532 po4a/po4a.conf | 2 +- 533 2 files changed, 1 insertion(+), 1 deletion(-) 534 535commit 6bf8b1f870870a1a0c3f555c34decc9ffb9f8d7a 536Author: Lasse Collin <lasse.collin@tukaani.org> 537Date: 2022-11-08 16:57:17 +0200 538 539 Translations: Update Turkish translation. 540 541 po/tr.po | 2 +- 542 1 file changed, 1 insertion(+), 1 deletion(-) 543 544commit 9f8e9d3c8189d8c6f587c99b0da1cf83f72330c2 545Author: Lasse Collin <lasse.collin@tukaani.org> 546Date: 2022-11-08 14:55:32 +0200 547 548 Translations: Update Croatian translation. 549 550 po/hr.po | 190 ++++++++++++++++++++++++++++++++------------------------------- 551 1 file changed, 96 insertions(+), 94 deletions(-) 552 553commit d24a57b7fc7e5e9267b84367cb0788d3acf7f569 554Author: Lasse Collin <lasse.collin@tukaani.org> 555Date: 2022-09-30 16:41:03 +0300 556 557 Bump version and soname for 5.2.7. 558 559 src/liblzma/Makefile.am | 2 +- 560 src/liblzma/api/lzma/version.h | 2 +- 561 2 files changed, 2 insertions(+), 2 deletions(-) 562 563commit d2003362dd42004355a5550ee7a60ace3b3ea2d8 564Author: Lasse Collin <lasse.collin@tukaani.org> 565Date: 2022-09-30 16:40:39 +0300 566 567 Add NEWS for 5.2.7. 568 569 NEWS | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 570 1 file changed, 74 insertions(+) 571 572commit 369afb51991e91a5c3a23c4ae3872329a403eb31 573Author: Lasse Collin <lasse.collin@tukaani.org> 574Date: 2022-09-30 12:06:13 +0300 575 576 liblzma: Add API doc note about the .xz decoder LZMA_MEMLIMIT_ERROR bug. 577 578 The bug was fixed in 660739f99ab211edec4071de98889fb32ed04e98. 579 580 src/liblzma/api/lzma/base.h | 11 +++++++++++ 581 1 file changed, 11 insertions(+) 582 583commit 166431e9951613481b8136f52b570d7bc30b5a03 584Author: Jia Tan <jiat0218@gmail.com> 585Date: 2022-09-21 16:15:50 +0800 586 587 liblzma: Add dest and src NULL checks to lzma_index_cat. 588 589 The documentation states LZMA_PROG_ERROR can be returned from 590 lzma_index_cat. Previously, lzma_index_cat could not return 591 LZMA_PROG_ERROR. Now, the validation is similar to 592 lzma_index_append, which does a NULL check on the index 593 parameter. 594 595 src/liblzma/common/index.c | 3 +++ 596 1 file changed, 3 insertions(+) 597 598commit 5e53a6c28b87a0bb9b0cfeaf708cc99ef8e9bc66 599Author: Jia Tan <jiat0218@gmail.com> 600Date: 2022-09-21 20:29:28 +0800 601 602 Tests: Create a test for the lzma_index_cat bug. 603 604 tests/test_index.c | 43 ++++++++++++++++++++++++++++++++++++++++++- 605 1 file changed, 42 insertions(+), 1 deletion(-) 606 607commit 4ed5fd54c676b735e3f58158f214af68755d59b5 608Author: Jia Tan <jiat0218@gmail.com> 609Date: 2022-09-21 19:28:53 +0800 610 611 liblzma: Fix copying of check type statistics in lzma_index_cat(). 612 613 The check type of the last Stream in dest was never copied to 614 dest->checks (the code tried to copy it but it was done too late). 615 This meant that the value returned by lzma_index_checks() would 616 only include the check type of the last Stream when multiple 617 lzma_indexes had been concatenated. 618 619 In xz --list this meant that the summary would only list the 620 check type of the last Stream, so in this sense this was only 621 a visual bug. However, it's possible that some applications 622 use this information for purposes other than merely showing 623 it to the users in an informational message. I'm not aware of 624 such applications though and it's quite possible that such 625 applications don't exist. 626 627 Regular streamed decompression in xz or any other application 628 doesn't use lzma_index_cat() and so this bug cannot affect them. 629 630 src/liblzma/common/index.c | 7 ++++++- 631 1 file changed, 6 insertions(+), 1 deletion(-) 632 633commit c4476f695291a2d7376d5fa406d32e354f858858 634Author: Lasse Collin <lasse.collin@tukaani.org> 635Date: 2022-09-28 12:20:41 +0300 636 637 tuklib_physmem: Fix Unicode builds on Windows. 638 639 Thanks to ArSaCiA Game. 640 641 src/common/tuklib_physmem.c | 2 +- 642 1 file changed, 1 insertion(+), 1 deletion(-) 643 644commit 976f897bbba9890a99f01a8d59c6d59c230142e6 645Author: Lasse Collin <lasse.collin@tukaani.org> 646Date: 2022-09-28 11:05:15 +0300 647 648 liblzma: Stream decoder: Fix restarting after LZMA_MEMLIMIT_ERROR. 649 650 If lzma_code() returns LZMA_MEMLIMIT_ERROR it is now possible 651 to use lzma_memlimit_set() to increase the limit and continue 652 decoding. This was supposed to work from the beginning but 653 there was a bug. With other decoders (.lzma or threaded .xz) 654 this already worked correctly. 655 656 src/liblzma/common/stream_decoder.c | 16 +++++++++++++--- 657 1 file changed, 13 insertions(+), 3 deletions(-) 658 659commit 2caa9580e5f7c5cc6668e9427a2c21f3f63bb684 660Author: Lasse Collin <lasse.collin@tukaani.org> 661Date: 2022-09-28 11:00:23 +0300 662 663 liblzma: Stream decoder: Fix comments. 664 665 src/liblzma/common/stream_decoder.c | 12 +++++------- 666 1 file changed, 5 insertions(+), 7 deletions(-) 667 668commit 51882fec5b96cf7760389b670d86c1e7a5a0ced2 669Author: Lasse Collin <lasse.collin@tukaani.org> 670Date: 2022-09-16 14:09:07 +0300 671 672 Update THANKS. 673 674 THANKS | 1 + 675 1 file changed, 1 insertion(+) 676 677commit 974186f7cd839f1dbf937b98e112dff670d2bd5c 678Author: Lasse Collin <lasse.collin@tukaani.org> 679Date: 2022-09-16 14:07:03 +0300 680 681 xzgrep: Fix compatibility with old shells. 682 683 Running the current xzgrep on Slackware 10.1 with GNU bash 3.00.15: 684 685 xzgrep: line 231: syntax error near unexpected token `;;' 686 687 On SCO OpenServer 5.0.7 with Korn Shell 93r: 688 689 syntax error at line 231 : `;;' unexpected 690 691 Turns out that some old shells don't like apostrophes (') inside 692 command substitutions. For example, the following fails: 693 694 x=$(echo foo 695 # asdf'zxcv 696 echo bar) 697 printf '%s\n' "$x" 698 699 The problem was introduced by commits 700 69d1b3fc29677af8ade8dc15dba83f0589cb63d6 (2022-03-29), 701 bd7b290f3fe4faeceb7d3497ed9bf2e6ed5e7dc5 (2022-07-18), and 702 a648978b20495b7aa4a8b029c5a810b5ad9d08ff (2022-07-19). 703 5.2.6 is the only stable release that included 704 this problem. 705 706 Thanks to Kevin R. Bulgrien for reporting the problem 707 on SCO OpenServer 5.0.7 and for providing the fix. 708 709 src/scripts/xzgrep.in | 6 +++--- 710 1 file changed, 3 insertions(+), 3 deletions(-) 711 712commit f94da15120c3d3c363ca12c2262ac6cb9f321f4f 713Author: Lasse Collin <lasse.collin@tukaani.org> 714Date: 2022-09-09 13:51:57 +0300 715 716 liblzma: lzma_filters_copy: Keep dest[] unmodified if an error occurs. 717 718 lzma_stream_encoder() and lzma_stream_encoder_mt() always assumed 719 this. Before this patch, failing lzma_filters_copy() could result 720 in free(invalid_pointer) or invalid memory reads in stream_encoder.c 721 or stream_encoder_mt.c. 722 723 To trigger this, allocating memory for a filter options structure 724 has to fail. These are tiny allocations so in practice they very 725 rarely fail. 726 727 Certain badness in the filter chain array could also make 728 lzma_filters_copy() fail but both stream_encoder.c and 729 stream_encoder_mt.c validate the filter chain before 730 trying to copy it, so the crash cannot occur this way. 731 732 src/liblzma/api/lzma/filter.h | 4 +++- 733 src/liblzma/common/filter_common.c | 18 ++++++++++++------ 734 2 files changed, 15 insertions(+), 7 deletions(-) 735 736commit ea57b9aa2c3e1cdb667f8dd698314b1c36047018 737Author: Lasse Collin <lasse.collin@tukaani.org> 738Date: 2022-09-16 17:08:53 +0300 739 740 Tests: Add a test file for lzma_index_append() integer overflow bug. 741 742 This test fails before commit 18d7facd3802b55c287581405c4d49c98708c136. 743 744 test_files.sh now runs xz -l for bad-3-index-uncomp-overflow.xz 745 because only then the previously-buggy code path gets tested. 746 Normal decompression doesn't use lzma_index_append() at all. 747 Instead, lzma_index_hash functions are used and those already 748 did the overflow check. 749 750 tests/files/README | 10 ++++++++++ 751 tests/files/bad-3-index-uncomp-overflow.xz | Bin 0 -> 132 bytes 752 tests/test_files.sh | 8 ++++++++ 753 3 files changed, 18 insertions(+) 754 755commit 72e1645a439a999638a63ec9abb7210671ea5415 756Author: Jia Tan <jiat0218@gmail.com> 757Date: 2022-09-02 20:18:55 +0800 758 759 liblzma: lzma_index_append: Add missing integer overflow check. 760 761 The documentation in src/liblzma/api/lzma/index.h suggests that 762 both the unpadded (compressed) size and the uncompressed size 763 are checked for overflow, but only the unpadded size was checked. 764 The uncompressed check is done first since that is more likely to 765 occur than the unpadded or index field size overflows. 766 767 src/liblzma/common/index.c | 4 ++++ 768 1 file changed, 4 insertions(+) 769 770commit 20d82bc90781aa9d2373efe872d90ba64dc7dc62 771Author: Lasse Collin <lasse.collin@tukaani.org> 772Date: 2022-09-08 15:11:08 +0300 773 774 Update THANKS. 775 776 THANKS | 1 + 777 1 file changed, 1 insertion(+) 778 779commit 31d80c6b261b24220776dfaeb8a04f80f80e0a24 780Author: Lasse Collin <lasse.collin@tukaani.org> 781Date: 2022-09-04 23:23:00 +0300 782 783 liblzma: Vaccinate against an ill patch from RHEL/CentOS 7. 784 785 RHEL/CentOS 7 shipped with 5.1.2alpha, including the threaded 786 encoder that is behind #ifdef LZMA_UNSTABLE in the API headers. 787 In 5.1.2alpha these symbols are under XZ_5.1.2alpha in liblzma.map. 788 API/ABI compatibility tracking isn't done between development 789 releases so newer releases didn't have XZ_5.1.2alpha anymore. 790 791 Later RHEL/CentOS 7 updated xz to 5.2.2 but they wanted to keep 792 the exported symbols compatible with 5.1.2alpha. After checking 793 the ABI changes it turned out that >= 5.2.0 ABI is backward 794 compatible with the threaded encoder functions from 5.1.2alpha 795 (but not vice versa as fixes and extensions to these functions 796 were made between 5.1.2alpha and 5.2.0). 797 798 In RHEL/CentOS 7, XZ Utils 5.2.2 was patched with 799 xz-5.2.2-compat-libs.patch to modify liblzma.map: 800 801 - XZ_5.1.2alpha was added with lzma_stream_encoder_mt and 802 lzma_stream_encoder_mt_memusage. This matched XZ Utils 5.1.2alpha. 803 804 - XZ_5.2 was replaced with XZ_5.2.2. It is clear that this was 805 an error; the intention was to keep using XZ_5.2 (XZ_5.2.2 806 has never been used in XZ Utils). So XZ_5.2.2 lists all 807 symbols that were listed under XZ_5.2 before the patch. 808 lzma_stream_encoder_mt and _mt_memusage are included too so 809 they are listed both here and under XZ_5.1.2alpha. 810 811 The patch didn't add any __asm__(".symver ...") lines to the .c 812 files. Thus the resulting liblzma.so exports the threaded encoder 813 functions under XZ_5.1.2alpha only. Listing the two functions 814 also under XZ_5.2.2 in liblzma.map has no effect without 815 matching .symver lines. 816 817 The lack of XZ_5.2 in RHEL/CentOS 7 means that binaries linked 818 against unpatched XZ Utils 5.2.x won't run on RHEL/CentOS 7. 819 This is unfortunate but this alone isn't too bad as the problem 820 is contained within RHEL/CentOS 7 and doesn't affect users 821 of other distributions. It could also be fixed internally in 822 RHEL/CentOS 7. 823 824 The second problem is more serious: In XZ Utils 5.2.2 the API 825 headers don't have #ifdef LZMA_UNSTABLE for obvious reasons. 826 This is true in RHEL/CentOS 7 version too. Thus now programs 827 using new APIs can be compiled without an extra #define. However, 828 the programs end up depending on symbol version XZ_5.1.2alpha 829 (and possibly also XZ_5.2.2) instead of XZ_5.2 as they would 830 with an unpatched XZ Utils 5.2.2. This means that such binaries 831 won't run on other distributions shipping XZ Utils >= 5.2.0 as 832 they don't provide XZ_5.1.2alpha or XZ_5.2.2; they only provide 833 XZ_5.2 (and XZ_5.0). (This includes RHEL/CentOS 8 as the patch 834 luckily isn't included there anymore with XZ Utils 5.2.4.) 835 836 Binaries built by RHEL/CentOS 7 users get distributed and then 837 people wonder why they don't run on some other distribution. 838 Seems that people have found out about the patch and been copying 839 it to some build scripts, seemingly curing the symptoms but 840 actually spreading the illness further and outside RHEL/CentOS 7. 841 842 The ill patch seems to be from late 2016 (RHEL 7.3) and in 2017 it 843 had spread at least to EasyBuild. I heard about the events only 844 recently. :-( 845 846 This commit splits liblzma.map into two versions: one for 847 GNU/Linux and another for other OSes that can use symbol versioning 848 (FreeBSD, Solaris, maybe others). The Linux-specific file and the 849 matching additions to .c files add full compatibility with binaries 850 that have been built against a RHEL/CentOS-patched liblzma. Builds 851 for OSes other than GNU/Linux won't get the vaccine as they should 852 be immune to the problem (I really hope that no build script uses 853 the RHEL/CentOS 7 patch outside GNU/Linux). 854 855 The RHEL/CentOS compatibility symbols XZ_5.1.2alpha and XZ_5.2.2 856 are intentionally put *after* XZ_5.2 in liblzma_linux.map. This way 857 if one forgets to #define HAVE_SYMBOL_VERSIONS_LINUX when building, 858 the resulting liblzma.so.5 will have lzma_stream_encoder_mt@@XZ_5.2 859 since XZ_5.2 {...} is the first one that lists that function. 860 Without HAVE_SYMBOL_VERSIONS_LINUX @XZ_5.1.2alpha and @XZ_5.2.2 861 will be missing but that's still a minor problem compared to 862 only having lzma_stream_encoder_mt@@XZ_5.1.2alpha! 863 864 The "local: *;" line was moved to XZ_5.0 so that it doesn't need 865 to be moved around. It doesn't matter where it is put. 866 867 Having two similar liblzma_*.map files is a bit silly as it is, 868 at least for now, easily possible to generate the generic one 869 from the Linux-specific file. But that adds extra steps and 870 increases the risk of mistakes when supporting more than one 871 build system. So I rather maintain two files in parallel and let 872 validate_map.sh check that they are in sync when "make mydist" 873 is run. 874 875 This adds .symver lines for lzma_stream_encoder_mt@XZ_5.2.2 and 876 lzma_stream_encoder_mt_memusage@XZ_5.2.2 even though these 877 weren't exported by RHEL/CentOS 7 (only @@XZ_5.1.2alpha was 878 for these two). I added these anyway because someone might 879 misunderstand the RHEL/CentOS 7 patch and think that @XZ_5.2.2 880 (@@XZ_5.2.2) versions were exported too. 881 882 At glance one could suggest using __typeof__ to copy the function 883 prototypes when making aliases. However, this doesn't work trivially 884 because __typeof__ won't copy attributes (lzma_nothrow, lzma_pure) 885 and it won't change symbol visibility from hidden to default (done 886 by LZMA_API()). Attributes could be copied with __copy__ attribute 887 but that needs GCC 9 and a fallback method would be needed anyway. 888 889 This uses __symver__ attribute with GCC >= 10 and 890 __asm__(".symver ...") with everything else. The attribute method 891 is required for LTO (-flto) support with GCC. Using -flto with 892 GCC older than 10 is now broken on GNU/Linux and will not be fixed 893 (can silently result in a broken liblzma build that has dangerously 894 incorrect symbol versions). LTO builds with Clang seem to work 895 with the traditional __asm__(".symver ...") method. 896 897 Thanks to Boud Roukema for reporting the problem and discussing 898 the details and testing the fix. 899 900 configure.ac | 23 ++++- 901 src/liblzma/Makefile.am | 10 +- 902 src/liblzma/common/block_buffer_encoder.c | 18 ++++ 903 src/liblzma/common/common.c | 14 +++ 904 src/liblzma/common/common.h | 28 ++++++ 905 src/liblzma/common/hardware_cputhreads.c | 12 +++ 906 src/liblzma/common/stream_encoder_mt.c | 42 ++++++++ 907 src/liblzma/{liblzma.map => liblzma_generic.map} | 6 +- 908 src/liblzma/liblzma_linux.map | 123 +++++++++++++++++++++++ 909 src/liblzma/validate_map.sh | 113 +++++++++++++++++++-- 910 10 files changed, 374 insertions(+), 15 deletions(-) 911 912commit e7a7ac744eb0f890ef52388de838596ef566c73f 913Author: Jia Tan <jiat0218@gmail.com> 914Date: 2022-09-08 15:07:00 +0300 915 916 CMake: Clarify a comment about Windows symlinks without file extension. 917 918 CMakeLists.txt | 7 +++---- 919 1 file changed, 3 insertions(+), 4 deletions(-) 920 921commit a273a0cb77c6000e4da627b07f28c5af41f0908c 922Author: Lasse Collin <lasse.collin@tukaani.org> 923Date: 2022-09-08 15:02:41 +0300 924 925 CMake: Update for liblzma_*.map files and fix wrong common_w32res.rc dep. 926 927 The previous commit split liblzma.map into liblzma_linux.map and 928 liblzma_generic.map. This commit updates the CMake build for those. 929 930 common_w32res.rc dependency was listed under Linux/FreeBSD while 931 obviously it belongs to Windows when building a DLL. 932 933 CMakeLists.txt | 24 +++++++++++++++++++----- 934 1 file changed, 19 insertions(+), 5 deletions(-) 935 936commit 5875a45be0ab399e37acc31165725a9b5291f67e 937Author: Lasse Collin <lasse.collin@tukaani.org> 938Date: 2022-08-31 16:42:04 +0300 939 940 CMake: Add xz symlinks. 941 942 These are a minor thing especially since the xz build has 943 some real problems still like lack of large file support 944 on 32-bit systems but I'll commit this since the code exists. 945 946 Thanks to Jia Tan. 947 948 CMakeLists.txt | 38 +++++++++++++++++++++++++++++++++++++- 949 1 file changed, 37 insertions(+), 1 deletion(-) 950 951commit 3523b6ebb56c447f21736f01bfe91602741aa3e7 952Author: Lasse Collin <lasse.collin@tukaani.org> 953Date: 2022-08-31 16:29:38 +0300 954 955 CMake: Put xz man page install under if(UNIX) like is for xzdec. 956 957 Thanks to Jia Tan. 958 959 CMakeLists.txt | 8 +++++--- 960 1 file changed, 5 insertions(+), 3 deletions(-) 961 962commit 5af9e8759f748a11a408bfc5aef829df3811fc23 963Author: Lasse Collin <lasse.collin@tukaani.org> 964Date: 2022-09-16 15:10:07 +0300 965 966 Translations: Add Turkish translation. 967 968 po/LINGUAS | 1 + 969 po/tr.po | 977 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 970 2 files changed, 978 insertions(+) 971 972commit f05a69685e9c7f7157d751abfbd2d8ea6e3bacc7 973Author: Lasse Collin <lasse.collin@tukaani.org> 974Date: 2022-08-18 17:49:16 +0300 975 976 Build: Include the CMake files in the distribution. 977 978 This was supposed to be done in 2020 with 5.2.5 release 979 already but it was noticed only today. 5.2.5 and 5.2.6 980 even mention experiemental CMake support in the NEWS entries. 981 982 Thanks to Olivier B. for reporting the problem. 983 984 Makefile.am | 2 ++ 985 1 file changed, 2 insertions(+) 986 987commit ad5ef6d3c30bb749113c51aa0bbe8bcb5e193fbe 988Author: Lasse Collin <lasse.collin@tukaani.org> 989Date: 2022-08-18 17:38:05 +0300 990 991 Windows: Fix broken liblzma.dll build with Visual Studio project files. 992 993 The bug was introduced in 352ba2d69af2136bc814aa1df1a132559d445616 994 "Windows: Fix building of resource files when config.h isn't used." 995 996 That commit fixed liblzma.dll build with CMake while keeping it 997 working with Autotools on Windows but the VS project files were 998 forgotten. 999 1000 I haven't tested these changes. 1001 1002 Thanks to Olivier B. for reporting the bug and for the initial patch. 1003 1004 windows/vs2013/liblzma_dll.vcxproj | 6 ++++++ 1005 windows/vs2017/liblzma_dll.vcxproj | 6 ++++++ 1006 windows/vs2019/liblzma_dll.vcxproj | 6 ++++++ 1007 3 files changed, 18 insertions(+) 1008 1009commit 8dfed05bdaa4873833ba24279f02ad2db25effea 1010Author: Lasse Collin <lasse.collin@tukaani.org> 1011Date: 2022-08-12 14:30:13 +0300 1012 1013 Bump version and soname for 5.2.6. 1014 1015 src/liblzma/Makefile.am | 2 +- 1016 src/liblzma/api/lzma/version.h | 2 +- 1017 2 files changed, 2 insertions(+), 2 deletions(-) 1018 1019commit 09b4af4e04def5777b06124200b64b0b941eea7f 1020Author: Lasse Collin <lasse.collin@tukaani.org> 1021Date: 2022-08-12 14:29:28 +0300 1022 1023 Add NEWS for 5.2.6. 1024 1025 NEWS | 226 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1026 1 file changed, 226 insertions(+) 1027 1028commit 692de534fae6c38f92416793addcf5f60ffe2bf6 1029Author: Lasse Collin <lasse.collin@tukaani.org> 1030Date: 2022-08-12 14:28:41 +0300 1031 1032 Add Jia Tan to AUTHORS. 1033 1034 AUTHORS | 2 +- 1035 1 file changed, 1 insertion(+), 1 deletion(-) 1036 1037commit 275de376a645f406be7c453bb68427aa9466cf83 1038Author: Lasse Collin <lasse.collin@tukaani.org> 1039Date: 2022-07-25 19:11:05 +0300 1040 1041 Translations: Change the copyright comment string to use with po4a. 1042 1043 This affects the second line in po4a/xz-man.pot. The man pages of 1044 xzdiff, xzgrep, and xzmore are from GNU gzip and under GNU GPLv2+ 1045 while the rest of the man pages are in the public domain. 1046 1047 po4a/update-po | 2 +- 1048 1 file changed, 1 insertion(+), 1 deletion(-) 1049 1050commit 76a5a752b8467ff591dd028deb61e9bf2c274c7e 1051Author: Jia Tan <jiat0218@gmail.com> 1052Date: 2022-07-25 18:30:05 +0300 1053 1054 liblzma: Refactor lzma_mf_is_supported() to use a switch-statement. 1055 1056 src/liblzma/lz/lz_encoder.c | 32 ++++++++++++++------------------ 1057 1 file changed, 14 insertions(+), 18 deletions(-) 1058 1059commit 749b86c2c18ab61a07f19ec8fefc67325da97397 1060Author: Jia Tan <jiat0218@gmail.com> 1061Date: 2022-07-25 18:20:01 +0300 1062 1063 Build: Don't allow empty LIST in --enable-match-finders=LIST. 1064 1065 It's enforced only when a match finder is needed, that is, 1066 when LZMA1 or LZMA2 encoder is enabled. 1067 1068 configure.ac | 4 ++++ 1069 1 file changed, 4 insertions(+) 1070 1071commit 63e3cdef805a4d9ea94c76c36cbabe4dc76abe36 1072Author: Lasse Collin <lasse.collin@tukaani.org> 1073Date: 2021-01-11 23:41:16 +0200 1074 1075 xz: Make --keep accept symlinks, hardlinks, and setuid/setgid/sticky. 1076 1077 Previously this required using --force but that has other 1078 effects too which might be undesirable. Changing the behavior 1079 of --keep has a small risk of breaking existing scripts but 1080 since this is a fairly special corner case I expect the 1081 likehood of breakage to be low enough. 1082 1083 I think the new behavior is more logical. The only reason for 1084 the old behavior was to be consistent with gzip and bzip2. 1085 1086 Thanks to Vincent Lefevre and Sebastian Andrzej Siewior. 1087 1088 src/xz/file_io.c | 9 +++++---- 1089 src/xz/xz.1 | 16 +++++++++++++++- 1090 2 files changed, 20 insertions(+), 5 deletions(-) 1091 1092commit 9055584be0ae47032b7fb3ba8531aa56b9ed572a 1093Author: Lasse Collin <lasse.collin@tukaani.org> 1094Date: 2022-07-19 23:19:49 +0300 1095 1096 xzgrep man page: Document exit statuses. 1097 1098 src/scripts/xzgrep.1 | 15 ++++++++++++++- 1099 1 file changed, 14 insertions(+), 1 deletion(-) 1100 1101commit 57e1ccbb7ce30e5298ea7ec3934e462fa8d32237 1102Author: Lasse Collin <lasse.collin@tukaani.org> 1103Date: 2022-07-19 23:13:24 +0300 1104 1105 xzgrep: Improve error handling, especially signals. 1106 1107 xzgrep wouldn't exit on SIGPIPE or SIGQUIT when it clearly 1108 should have. It's quite possible that it's not perfect still 1109 but at least it's much better. 1110 1111 If multiple exit statuses compete, now it tries to pick 1112 the largest of value. 1113 1114 Some comments were added. 1115 1116 The exit status handling of signals is still broken if the shell 1117 uses values larger than 255 in $? to indicate that a process 1118 died due to a signal ***and*** their "exit" command doesn't take 1119 this into account. This seems to work well with the ksh and yash 1120 versions I tried. However, there is a report in gzip/zgrep that 1121 OpenSolaris 5.11 (not 5.10) has a problem with "exit" truncating 1122 the argument to 8 bits: 1123 1124 https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22900#25 1125 1126 Such a bug would break xzgrep but I didn't add a workaround 1127 at least for now. 5.11 is old and I don't know if the problem 1128 exists in modern descendants, or if the problem exists in other 1129 ksh implementations in use. 1130 1131 src/scripts/xzgrep.in | 72 +++++++++++++++++++++++++++++++++++++-------------- 1132 1 file changed, 53 insertions(+), 19 deletions(-) 1133 1134commit 6351ea1afb261ec9be95f808bcbe724e0da4ae09 1135Author: Lasse Collin <lasse.collin@tukaani.org> 1136Date: 2022-07-19 00:10:55 +0300 1137 1138 xzgrep: Make the fix for ZDI-CAN-16587 more robust. 1139 1140 I don't know if this can make a difference in the real world 1141 but it looked kind of suspicious (what happens with sed 1142 implementations that cannot process very long lines?). 1143 At least this commit shouldn't make it worse. 1144 1145 src/scripts/xzgrep.in | 5 ++++- 1146 1 file changed, 4 insertions(+), 1 deletion(-) 1147 1148commit 2c1ff2ed6b9f17b3913866a15d776ebbbeb824d2 1149Author: Lasse Collin <lasse.collin@tukaani.org> 1150Date: 2022-07-18 21:52:31 +0300 1151 1152 xzgrep: Use grep -H --label when available (GNU, *BSDs). 1153 1154 It avoids the use of sed for prefixing filenames to output lines. 1155 Using sed for that is slower and prone to security bugs so now 1156 the sed method is only used as a fallback. 1157 1158 This also fixes an actual bug: When grepping a binary file, 1159 GNU grep nowadays prints its diagnostics to stderr instead of 1160 stdout and thus the sed-method for prefixing the filename doesn't 1161 work. So with this commit grepping binary files gives reasonable 1162 output with GNU grep now. 1163 1164 This was inspired by zgrep but the implementation is different. 1165 1166 src/scripts/xzgrep.in | 21 +++++++++++++++++++++ 1167 1 file changed, 21 insertions(+) 1168 1169commit 8b0be38a795fa1cdffdada64341a34209e630060 1170Author: Lasse Collin <lasse.collin@tukaani.org> 1171Date: 2022-07-18 21:10:25 +0300 1172 1173 xzgrep: Use -e to specify the pattern to grep. 1174 1175 Now we don't need the separate test for adding the -q option 1176 as it can be added directly in the two places where it's needed. 1177 1178 src/scripts/xzgrep.in | 12 ++++-------- 1179 1 file changed, 4 insertions(+), 8 deletions(-) 1180 1181commit 4a61867a874c60b31448d2d4f3c276efba85a243 1182Author: Lasse Collin <lasse.collin@tukaani.org> 1183Date: 2022-07-18 19:18:48 +0300 1184 1185 Scripts: Use printf instead of echo in a few places. 1186 1187 It's a good habbit as echo has some portability corner cases 1188 when the string contents can be anything. 1189 1190 src/scripts/xzdiff.in | 6 +++--- 1191 src/scripts/xzgrep.in | 4 ++-- 1192 src/scripts/xzless.in | 4 ++-- 1193 src/scripts/xzmore.in | 8 ++++---- 1194 4 files changed, 11 insertions(+), 11 deletions(-) 1195 1196commit 0e222bf7d79a9792025c5ffeaa66c8e14eb47615 1197Author: Lasse Collin <lasse.collin@tukaani.org> 1198Date: 2022-07-17 21:36:25 +0300 1199 1200 xzgrep: Add more LC_ALL=C to avoid bugs with multibyte characters. 1201 1202 Also replace one use of expr with printf. 1203 1204 The rationale for LC_ALL=C was already mentioned in 1205 69d1b3fc29677af8ade8dc15dba83f0589cb63d6 that fixed a security 1206 issue. However, unrelated uses weren't changed in that commit yet. 1207 1208 POSIX says that with sed and such tools one should use LC_ALL=C 1209 to ensure predictable behavior when strings contain byte sequences 1210 that aren't valid multibyte characters in the current locale. See 1211 under "Application usage" in here: 1212 1213 https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html 1214 1215 With GNU sed invalid multibyte strings would work without this; 1216 it's documented in its Texinfo manual. Some other implementations 1217 aren't so forgiving. 1218 1219 src/scripts/xzgrep.in | 14 ++++++++------ 1220 1 file changed, 8 insertions(+), 6 deletions(-) 1221 1222commit 62c1d2bc2da66e182c52bb1e3aa791f6d8a9e099 1223Author: Lasse Collin <lasse.collin@tukaani.org> 1224Date: 2022-07-17 20:55:16 +0300 1225 1226 xzgrep: Fix parsing of certain options. 1227 1228 Fix handling of "xzgrep -25 foo" (in GNU grep "grep -25 foo" is 1229 an alias for "grep -C25 foo"). xzgrep would treat "foo" as filename 1230 instead of as a pattern. This bug was fixed in zgrep in gzip in 2012. 1231 1232 Add -E, -F, -G, and -P to the "no argument required" list. 1233 1234 Add -X to "argument required" list. It is an 1235 intentionally-undocumented GNU grep option so this isn't 1236 an important option for xzgrep but it seems that other grep 1237 implementations (well, those that I checked) don't support -X 1238 so I hope this change is an improvement still. 1239 1240 grep -d (grep --directories=ACTION) requires an argument. In 1241 contrast to zgrep, I kept -d in the "no argument required" list 1242 because it's not supported in xzgrep (or zgrep). This way 1243 "xzgrep -d" gives an error about option being unsupported instead 1244 of telling that it requires an argument. Both zgrep and xzgrep 1245 tell that it's unsupported if an argument is specified. 1246 1247 Add comments. 1248 1249 src/scripts/xzgrep.in | 19 +++++++++++++++++-- 1250 1 file changed, 17 insertions(+), 2 deletions(-) 1251 1252commit 372a0d12c95fad5e5477b4f79646bf66d28e0c31 1253Author: Lasse Collin <lasse.collin@tukaani.org> 1254Date: 2022-07-14 20:33:05 +0300 1255 1256 Tests: Add the .lzma files to test_files.sh. 1257 1258 tests/test_files.sh | 20 ++++++++++++++++++++ 1259 1 file changed, 20 insertions(+) 1260 1261commit b8e3d0c45b62c81dfc6b350556d77cf2c7401edd 1262Author: Lasse Collin <lasse.collin@tukaani.org> 1263Date: 2022-07-14 19:37:42 +0300 1264 1265 Tests: Add .lzma test files. 1266 1267 tests/files/README | 63 ++++++++++++++++----- 1268 tests/files/bad-too_big_size-with_eopm.lzma | Bin 0 -> 37 bytes 1269 tests/files/bad-too_small_size-without_eopm-1.lzma | Bin 0 -> 31 bytes 1270 tests/files/bad-too_small_size-without_eopm-2.lzma | Bin 0 -> 31 bytes 1271 tests/files/bad-too_small_size-without_eopm-3.lzma | Bin 0 -> 36 bytes 1272 tests/files/bad-unknown_size-without_eopm.lzma | Bin 0 -> 31 bytes 1273 tests/files/good-known_size-with_eopm.lzma | Bin 0 -> 37 bytes 1274 tests/files/good-known_size-without_eopm.lzma | Bin 0 -> 31 bytes 1275 tests/files/good-unknown_size-with_eopm.lzma | Bin 0 -> 37 bytes 1276 9 files changed, 50 insertions(+), 13 deletions(-) 1277 1278commit e96bdf7189916bffec0dcc933cd809fac898587c 1279Author: Lasse Collin <lasse.collin@tukaani.org> 1280Date: 2022-07-14 18:12:38 +0300 1281 1282 liblzma: Rename a variable and improve a comment. 1283 1284 src/liblzma/lzma/lzma_decoder.c | 13 +++++++++---- 1285 1 file changed, 9 insertions(+), 4 deletions(-) 1286 1287commit 2d54fdf58e80bb2b0852633838576fd1ae7961c5 1288Author: Lasse Collin <lasse.collin@tukaani.org> 1289Date: 2022-07-13 22:24:41 +0300 1290 1291 Update THANKS. 1292 1293 THANKS | 1 + 1294 1 file changed, 1 insertion(+) 1295 1296commit ff54b557fe3b06b59a24e4028c1464c35dd5b142 1297Author: Lasse Collin <lasse.collin@tukaani.org> 1298Date: 2022-07-13 22:24:07 +0300 1299 1300 liblzma: Add optional autodetection of LZMA end marker. 1301 1302 Turns out that this is needed for .lzma files as the spec in 1303 LZMA SDK says that end marker may be present even if the size 1304 is stored in the header. Such files are rare but exist in the 1305 real world. The code in liblzma is so old that the spec didn't 1306 exist in LZMA SDK back then and I had understood that such 1307 files weren't possible (the lzma tool in LZMA SDK didn't 1308 create such files). 1309 1310 This modifies the internal API so that LZMA decoder can be told 1311 if EOPM is allowed even when the uncompressed size is known. 1312 It's allowed with .lzma and not with other uses. 1313 1314 Thanks to Karl Beldan for reporting the problem. 1315 1316 doc/lzma-file-format.txt | 11 ++++- 1317 src/liblzma/common/alone_decoder.c | 2 +- 1318 src/liblzma/lz/lz_decoder.c | 10 +++- 1319 src/liblzma/lz/lz_decoder.h | 8 +-- 1320 src/liblzma/lzma/lzma2_decoder.c | 2 +- 1321 src/liblzma/lzma/lzma_decoder.c | 99 +++++++++++++++++++++++++++----------- 1322 6 files changed, 94 insertions(+), 38 deletions(-) 1323 1324commit bb795fe835cf2b3ae7ed68b155784fbfc14e2faf 1325Author: Lasse Collin <lasse.collin@tukaani.org> 1326Date: 2022-06-14 17:20:49 +0300 1327 1328 Tests: Add test file good-1-empty-bcj-lzma2.xz. 1329 1330 This is from test_bcj_exact_size.c. 1331 It's good to have it as a standalone file. 1332 1333 tests/files/README | 5 +++++ 1334 tests/files/good-1-empty-bcj-lzma2.xz | Bin 0 -> 52 bytes 1335 2 files changed, 5 insertions(+) 1336 1337commit dbd8b0bf45c10f991635f585a2ea59fb5ae28ff3 1338Author: Lasse Collin <lasse.collin@tukaani.org> 1339Date: 2022-03-31 00:05:07 +0300 1340 1341 Update THANKS. 1342 1343 THANKS | 1 + 1344 1 file changed, 1 insertion(+) 1345 1346commit bb66a98ded39c40df202da17cb2055356dcd4168 1347Author: Lasse Collin <lasse.collin@tukaani.org> 1348Date: 2022-03-29 19:19:12 +0300 1349 1350 xzgrep: Fix escaping of malicious filenames (ZDI-CAN-16587). 1351 1352 Malicious filenames can make xzgrep to write to arbitrary files 1353 or (with a GNU sed extension) lead to arbitrary code execution. 1354 1355 xzgrep from XZ Utils versions up to and including 5.2.5 are 1356 affected. 5.3.1alpha and 5.3.2alpha are affected as well. 1357 This patch works for all of them. 1358 1359 This bug was inherited from gzip's zgrep. gzip 1.12 includes 1360 a fix for zgrep. 1361 1362 The issue with the old sed script is that with multiple newlines, 1363 the N-command will read the second line of input, then the 1364 s-commands will be skipped because it's not the end of the 1365 file yet, then a new sed cycle starts and the pattern space 1366 is printed and emptied. So only the last line or two get escaped. 1367 1368 One way to fix this would be to read all lines into the pattern 1369 space first. However, the included fix is even simpler: All lines 1370 except the last line get a backslash appended at the end. To ensure 1371 that shell command substitution doesn't eat a possible trailing 1372 newline, a colon is appended to the filename before escaping. 1373 The colon is later used to separate the filename from the grep 1374 output so it is fine to add it here instead of a few lines later. 1375 1376 The old code also wasn't POSIX compliant as it used \n in the 1377 replacement section of the s-command. Using \<newline> is the 1378 POSIX compatible method. 1379 1380 LC_ALL=C was added to the two critical sed commands. POSIX sed 1381 manual recommends it when using sed to manipulate pathnames 1382 because in other locales invalid multibyte sequences might 1383 cause issues with some sed implementations. In case of GNU sed, 1384 these particular sed scripts wouldn't have such problems but some 1385 other scripts could have, see: 1386 1387 info '(sed)Locale Considerations' 1388 1389 This vulnerability was discovered by: 1390 cleemy desu wayo working with Trend Micro Zero Day Initiative 1391 1392 Thanks to Jim Meyering and Paul Eggert discussing the different 1393 ways to fix this and for coordinating the patch release schedule 1394 with gzip. 1395 1396 src/scripts/xzgrep.in | 20 ++++++++++++-------- 1397 1 file changed, 12 insertions(+), 8 deletions(-) 1398 1399commit fa3af4e4c6a8f692785b87ba0f165f34d154ae0f 1400Author: Lasse Collin <lasse.collin@tukaani.org> 1401Date: 2022-03-23 16:34:00 +0200 1402 1403 Update THANKS. 1404 1405 THANKS | 1 + 1406 1 file changed, 1 insertion(+) 1407 1408commit f12ce0f23a0496daebc77e8359309bf724ad5e8a 1409Author: Lasse Collin <lasse.collin@tukaani.org> 1410Date: 2022-03-06 16:54:23 +0200 1411 1412 liblzma: Fix docs: lzma_block_decoder() cannot return LZMA_UNSUPPORTED_CHECK. 1413 1414 If Check is unsupported, it will be silently ignored. 1415 It's the caller's job to handle it. 1416 1417 src/liblzma/api/lzma/block.h | 3 --- 1418 1 file changed, 3 deletions(-) 1419 1420commit 412566731111edc28f0b68bc966d01ab24d17082 1421Author: Lasse Collin <lasse.collin@tukaani.org> 1422Date: 2022-03-06 15:18:58 +0200 1423 1424 liblzma: Index hash: Change return value type of hash_append() to void. 1425 1426 src/liblzma/common/index_hash.c | 11 +++++------ 1427 1 file changed, 5 insertions(+), 6 deletions(-) 1428 1429commit 7c3ce02df001701a26c2fa41b2dc8b530743f454 1430Author: Lasse Collin <lasse.collin@tukaani.org> 1431Date: 2022-02-22 03:42:57 +0200 1432 1433 liblzma: Minor addition to lzma_vli_size() API doc. 1434 1435 Thanks to Jia Tan. 1436 1437 src/liblzma/api/lzma/vli.h | 2 ++ 1438 1 file changed, 2 insertions(+) 1439 1440commit b8f667fe0c3e17fd2c559901d2aaf19b1dfd51f2 1441Author: Lasse Collin <lasse.collin@tukaani.org> 1442Date: 2022-02-22 02:04:18 +0200 1443 1444 liblzma: Check the return value of lzma_index_append() in threaded encoder. 1445 1446 If lzma_index_append() failed (most likely memory allocation failure) 1447 it could have gone unnoticed and the resulting .xz file would have 1448 an incorrect Index. Decompressing such a file would produce the 1449 correct uncompressed data but then an error would occur when 1450 verifying the Index field. 1451 1452 src/liblzma/common/stream_encoder_mt.c | 7 +++++-- 1453 1 file changed, 5 insertions(+), 2 deletions(-) 1454 1455commit 2356d53edd8f44ff8f411972ca62d63079ff59af 1456Author: Lasse Collin <lasse.collin@tukaani.org> 1457Date: 2022-02-22 01:37:39 +0200 1458 1459 Update THANKS. 1460 1461 THANKS | 1 + 1462 1 file changed, 1 insertion(+) 1463 1464commit 748ef0833821f1ea4ff5d57abc3cab1ae76266d3 1465Author: Ed Maste <emaste@FreeBSD.org> 1466Date: 2022-02-11 15:25:46 +0000 1467 1468 liblzma: Use non-executable stack on FreeBSD as on Linux 1469 1470 src/liblzma/check/crc32_x86.S | 4 ++-- 1471 src/liblzma/check/crc64_x86.S | 4 ++-- 1472 2 files changed, 4 insertions(+), 4 deletions(-) 1473 1474commit 068a6e3286c9ca7d67f13f4c78646c4f4a3c3c5b 1475Author: Lasse Collin <lasse.collin@tukaani.org> 1476Date: 2022-02-20 20:36:27 +0200 1477 1478 liblzma: Make Block decoder catch certain types of errors better. 1479 1480 Now it limits the input and output buffer sizes that are 1481 passed to a raw decoder. This way there's no need to check 1482 if the sizes can grow too big or overflow when updating 1483 Compressed Size and Uncompressed Size counts. This also means 1484 that a corrupt file cannot cause the raw decoder to process 1485 useless extra input or output that would exceed the size info 1486 in Block Header (and thus cause LZMA_DATA_ERROR anyway). 1487 1488 More importantly, now the size information is verified more 1489 carefully in case raw decoder returns LZMA_OK. This doesn't 1490 really matter with the current single-threaded .xz decoder 1491 as the errors would be detected slightly later anyway. But 1492 this helps avoiding corner cases in the upcoming threaded 1493 decompressor, and it might help other Block decoder uses 1494 outside liblzma too. 1495 1496 The test files bad-1-lzma2-{9,10,11}.xz test these conditions. 1497 With the single-threaded .xz decoder the only difference is 1498 that LZMA_DATA_ERROR is detected in a difference place now. 1499 1500 src/liblzma/common/block_decoder.c | 79 ++++++++++++++++++++++++++------------ 1501 1 file changed, 54 insertions(+), 25 deletions(-) 1502 1503commit 766df4f62c165ba96d60af8fadbada51349fd140 1504Author: Lasse Collin <lasse.collin@tukaani.org> 1505Date: 2022-02-20 19:38:55 +0200 1506 1507 Tests: Add bad-1-lzma2-11.xz. 1508 1509 tests/files/README | 5 +++++ 1510 tests/files/bad-1-lzma2-11.xz | Bin 0 -> 64 bytes 1511 2 files changed, 5 insertions(+) 1512 1513commit 12a6d6ce2a9850e32140e542decfd9c8a33c87fc 1514Author: Lasse Collin <lasse.collin@tukaani.org> 1515Date: 2022-02-18 18:51:10 +0200 1516 1517 Translations: Fix po4a failure with the French man page translations. 1518 1519 Thanks to Mario Blättermann for the patch. 1520 1521 po4a/fr_FR.po | 6 ++++-- 1522 1 file changed, 4 insertions(+), 2 deletions(-) 1523 1524commit 00e6aad836cf301e95575ea53790f5ab96fe8ed6 1525Author: Lasse Collin <lasse.collin@tukaani.org> 1526Date: 2022-02-07 01:14:37 +0200 1527 1528 Translations: Add French translation of man pages. 1529 1530 This matches xz-utils 5.2.5-2 in Debian. 1531 1532 The translation was done by "bubu", proofread by the debian-l10n-french 1533 mailing list contributors, and submitted to me on the xz-devel mailing 1534 list by Jean-Pierre Giraud. Thanks to everyone! 1535 1536 po4a/fr_FR.po | 3541 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1537 po4a/po4a.conf | 2 +- 1538 2 files changed, 3542 insertions(+), 1 deletion(-) 1539 1540commit e20ce2b12251a246c50fb5b7fa2204c11611b407 1541Author: jiat75 <jiat0218@gmail.com> 1542Date: 2022-01-28 20:47:55 +0800 1543 1544 liblzma: Add NULL checks to LZMA and LZMA2 properties encoders. 1545 1546 Previously lzma_lzma_props_encode() and lzma_lzma2_props_encode() 1547 assumed that the options pointers must be non-NULL because the 1548 with these filters the API says it must never be NULL. It is 1549 good to do these checks anyway. 1550 1551 src/liblzma/lzma/lzma2_encoder.c | 3 +++ 1552 src/liblzma/lzma/lzma_encoder.c | 3 +++ 1553 2 files changed, 6 insertions(+) 1554 1555commit feb80ace866c3033cefbc39f6b07ada83e316e6a 1556Author: huangqinjin <huangqinjin@gmail.com> 1557Date: 2021-12-13 20:49:21 +0800 1558 1559 CMake: Keep compatible with Windows 95 for 32-bit build. 1560 1561 CMakeLists.txt | 12 +++++++++++- 1562 1 file changed, 11 insertions(+), 1 deletion(-) 1563 1564commit 725f2e0522c4ef8dc5fdd69b5017bac6322ebce2 1565Author: Lasse Collin <lasse.collin@tukaani.org> 1566Date: 2021-11-13 21:04:05 +0200 1567 1568 xzgrep: Update man page timestamp. 1569 1570 src/scripts/xzgrep.1 | 2 +- 1571 1 file changed, 1 insertion(+), 1 deletion(-) 1572 1573commit 7955669d423724e69a7f2dae1173dae248f7a596 1574Author: Lasse Collin <lasse.collin@tukaani.org> 1575Date: 2021-11-13 18:23:24 +0200 1576 1577 Update THANKS. 1578 1579 THANKS | 1 + 1580 1 file changed, 1 insertion(+) 1581 1582commit 671673a7a209e6131491e6a424758bbc13fb7aa1 1583Author: Ville Skyttä <ville.skytta@iki.fi> 1584Date: 2021-11-13 10:11:57 +0200 1585 1586 xzgrep: use `grep -E/-F` instead of `egrep` and `fgrep` 1587 1588 `egrep` and `fgrep` have been deprecated in GNU grep since 2007, and in 1589 current post 3.7 Git they have been made to emit obsolescence warnings: 1590 https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a9515624709865d480e3142fd959bccd1c9372d1 1591 1592 src/scripts/xzgrep.1 | 8 ++++---- 1593 src/scripts/xzgrep.in | 4 ++-- 1594 2 files changed, 6 insertions(+), 6 deletions(-) 1595 1596commit 45e538257e85050f67a6d363961e31b71e3ec565 1597Author: Lasse Collin <lasse.collin@tukaani.org> 1598Date: 2021-10-27 23:27:48 +0300 1599 1600 Update THANKS. 1601 1602 THANKS | 1 + 1603 1 file changed, 1 insertion(+) 1604 1605commit ca21733d24a4f65b46a5efa124a89c859ac5592e 1606Author: Lasse Collin <lasse.collin@tukaani.org> 1607Date: 2021-10-27 23:23:11 +0300 1608 1609 xz: Change the coding style of the previous commit. 1610 1611 It isn't any better now but it's consistent with 1612 the rest of the code base. 1613 1614 src/xz/file_io.c | 11 ++++++----- 1615 1 file changed, 6 insertions(+), 5 deletions(-) 1616 1617commit 906b990b151b93750958371e39ad00e8d1daada9 1618Author: Alexander Bluhm <alexander.bluhm@gmx.net> 1619Date: 2021-10-05 23:33:16 +0200 1620 1621 xz: Avoid fchown(2) failure. 1622 1623 OpenBSD does not allow to change the group of a file if the user 1624 does not belong to this group. In contrast to Linux, OpenBSD also 1625 fails if the new group is the same as the old one. Do not call 1626 fchown(2) in this case, it would change nothing anyway. 1627 1628 This fixes an issue with Perl Alien::Build module. 1629 https://github.com/PerlAlien/Alien-Build/issues/62 1630 1631 src/xz/file_io.c | 8 +++++++- 1632 1 file changed, 7 insertions(+), 1 deletion(-) 1633 1634commit ca83df96c48371ce0094c73c6f4582899ae4b62b 1635Author: Lasse Collin <lasse.collin@tukaani.org> 1636Date: 2021-09-09 22:21:07 +0300 1637 1638 Update THANKS. 1639 1640 THANKS | 1 + 1641 1 file changed, 1 insertion(+) 1642 1643commit d8b294af03840c7c47d6b7b0d4c0d6d2f6357dfa 1644Author: Lasse Collin <lasse.collin@tukaani.org> 1645Date: 2021-09-09 21:41:51 +0300 1646 1647 liblzma: Use _MSVC_LANG to detect when "noexcept" can be used with MSVC. 1648 1649 By default, MSVC always sets __cplusplus to 199711L. The real 1650 C++ standard version is available in _MSVC_LANG (or one could 1651 use /Zc:__cplusplus to set __cplusplus correctly). 1652 1653 Fixes <https://sourceforge.net/p/lzmautils/discussion/708858/thread/f6bc3b108a/>. 1654 1655 Thanks to Dan Weiss. 1656 1657 src/liblzma/api/lzma.h | 3 ++- 1658 1 file changed, 2 insertions(+), 1 deletion(-) 1659 1660commit c2fde22befe1f5256ad3d7c4cb35794aa8e64c67 1661Author: Lasse Collin <lasse.collin@tukaani.org> 1662Date: 2021-06-04 19:02:38 +0300 1663 1664 xzdiff: Update the man page about the exit status. 1665 1666 This was forgotten from 194029ffaf74282a81f0c299c07f73caca3232ca. 1667 1668 src/scripts/xzdiff.1 | 4 ++-- 1669 1 file changed, 2 insertions(+), 2 deletions(-) 1670 1671commit 8d0fd42fbedd01fd3c847b56d19841e603500dea 1672Author: Lasse Collin <lasse.collin@tukaani.org> 1673Date: 2021-06-04 18:52:48 +0300 1674 1675 xzless: Fix less(1) version detection when it contains a dot. 1676 1677 Sometimes the version number from "less -V" contains a dot, 1678 sometimes not. xzless failed detect the version number when 1679 it does contain a dot. This fixes it. 1680 1681 Thanks to nick87720z for reporting this. Apparently it had been 1682 reported here <https://bugs.gentoo.org/489362> in 2013. 1683 1684 src/scripts/xzless.in | 2 +- 1685 1 file changed, 1 insertion(+), 1 deletion(-) 1686 1687commit 6e2cab8579fc6f832b5954510b27fd7e74563436 1688Author: Lasse Collin <lasse.collin@tukaani.org> 1689Date: 2022-07-12 18:53:04 +0300 1690 1691 xz: Document the special memlimit case of 2000 MiB on MIPS32. 1692 1693 See commit 95806a8a52ae57bddf6c77dfd19cf7938a92e040. 1694 1695 src/xz/xz.1 | 8 ++++++-- 1696 1 file changed, 6 insertions(+), 2 deletions(-) 1697 1698commit 38b311462bd8974888ba3cd9312de132c76ec2e0 1699Author: Lasse Collin <lasse.collin@tukaani.org> 1700Date: 2021-04-11 19:58:10 +0300 1701 1702 Update THANKS. 1703 1704 THANKS | 2 ++ 1705 1 file changed, 2 insertions(+) 1706 1707commit 95806a8a52ae57bddf6c77dfd19cf7938a92e040 1708Author: Ivan A. Melnikov <iv@altlinux.org> 1709Date: 2021-04-09 11:45:10 +0300 1710 1711 Reduce maximum possible memory limit on MIPS32 1712 1713 Due to architectural limitations, address space available to a single 1714 userspace process on MIPS32 is limited to 2 GiB, not 4, even on systems 1715 that have more physical RAM -- e.g. 64-bit systems with 32-bit 1716 userspace, or systems that use XPA (an extension similar to x86's PAE). 1717 1718 So, for MIPS32, we have to impose stronger memory limits. I've chosen 1719 2000MiB to give the process some headroom. 1720 1721 src/xz/hardware.c | 6 ++++++ 1722 1 file changed, 6 insertions(+) 1723 1724commit a79bd30a6fbfe614f47ad77498c46e218dbe2b1d 1725Author: Lasse Collin <lasse.collin@tukaani.org> 1726Date: 2021-02-13 23:31:27 +0200 1727 1728 CMake: Use interface library for better FindLibLZMA compatibility. 1729 1730 https://www.mail-archive.com/xz-devel@tukaani.org/msg00446.html 1731 1732 Thanks to Markus Rickert. 1733 1734 CMakeLists.txt | 11 +++++++++-- 1735 1 file changed, 9 insertions(+), 2 deletions(-) 1736 1737commit 64d98147616c48f2df37fb46b49350f3d5febd34 1738Author: Lasse Collin <lasse.collin@tukaani.org> 1739Date: 2021-01-30 18:36:04 +0200 1740 1741 CMake: Try to improve compatibility with the FindLibLZMA module. 1742 1743 The naming conflict with FindLibLZMA module gets worse. 1744 Not avoiding it in the first place was stupid. 1745 1746 Normally find_package(LibLZMA) will use the module and 1747 find_package(liblzma 5.2.5 REQUIRED CONFIG) will use the config 1748 file even with a case insensitive file system. However, if 1749 CMAKE_FIND_PACKAGE_PREFER_CONFIG is TRUE and the file system 1750 is case insensitive, find_package(LibLZMA) will find our liblzma 1751 config file instead of using FindLibLZMA module. 1752 1753 One big problem with this is that FindLibLZMA uses 1754 LibLZMA::LibLZMA and we use liblzma::liblzma as the target 1755 name. With target names CMake happens to be case sensitive. 1756 To workaround this, this commit adds 1757 1758 add_library(LibLZMA::LibLZMA ALIAS liblzma::liblzma) 1759 1760 to the config file. Then both spellings work. 1761 1762 To make the behavior consistent between case sensitive and 1763 insensitive file systems, the config and related files are 1764 renamed from liblzmaConfig.cmake to liblzma-config.cmake style. 1765 With this style CMake looks for lowercase version of the package 1766 name so find_package(LiBLzmA 5.2.5 REQUIRED CONFIG) will work 1767 to find our config file. 1768 1769 There are other differences between our config file and 1770 FindLibLZMA so it's still possible that things break for 1771 reasons other than the spelling of the target name. Hopefully 1772 those situations aren't too common. 1773 1774 When the config file is available, it should always give as good or 1775 better results as FindLibLZMA so this commit doesn't affect the 1776 recommendation to use find_package(liblzma 5.2.5 REQUIRED CONFIG) 1777 which explicitly avoids FindLibLZMA. 1778 1779 Thanks to Markus Rickert. 1780 1781 CMakeLists.txt | 21 +++++++++++++-------- 1782 1 file changed, 13 insertions(+), 8 deletions(-) 1783 1784commit 9e2f9e2d0841dd0417125ca3c7a05418541fb230 1785Author: Lasse Collin <lasse.collin@tukaani.org> 1786Date: 2021-01-24 22:32:41 +0200 1787 1788 Tests: Add bad-1-lzma2-10.xz and also modify -9.xz. 1789 1790 tests/files/README | 11 +++++++++-- 1791 tests/files/bad-1-lzma2-10.xz | Bin 0 -> 60 bytes 1792 tests/files/bad-1-lzma2-9.xz | Bin 72 -> 72 bytes 1793 3 files changed, 9 insertions(+), 2 deletions(-) 1794 1795commit 00a4c69bbbf302dd6323fd6970890ee22ddd4f96 1796Author: Lasse Collin <lasse.collin@tukaani.org> 1797Date: 2021-01-24 18:51:51 +0200 1798 1799 Tests: Add bad-1-lzma2-9.xz. 1800 1801 tests/files/README | 4 ++++ 1802 tests/files/bad-1-lzma2-9.xz | Bin 0 -> 72 bytes 1803 2 files changed, 4 insertions(+) 1804 1805commit 1da2269b2e9b952d165ad7bec823de9dfe9a9e9e 1806Author: Lasse Collin <lasse.collin@tukaani.org> 1807Date: 2021-01-24 17:02:00 +0200 1808 1809 Tests: Add bad-1-check-crc32-2.xz. 1810 1811 tests/files/README | 7 +++++++ 1812 tests/files/bad-1-check-crc32-2.xz | Bin 0 -> 72 bytes 1813 2 files changed, 7 insertions(+) 1814 1815commit 11ceecb5e2999ff96989915120e63a2e7e130057 1816Author: Lasse Collin <lasse.collin@tukaani.org> 1817Date: 2021-01-11 23:57:11 +0200 1818 1819 Scripts: Add zstd support to xzdiff. 1820 1821 src/scripts/xzdiff.1 | 6 ++++-- 1822 src/scripts/xzdiff.in | 16 +++++++++++----- 1823 2 files changed, 15 insertions(+), 7 deletions(-) 1824 1825commit d655b8c9cb5a4e596c0fa2290fa91e995b734f97 1826Author: Lasse Collin <lasse.collin@tukaani.org> 1827Date: 2021-01-11 23:28:52 +0200 1828 1829 Scripts: Fix exit status of xzgrep. 1830 1831 Omit the -q option from xz, gzip, and bzip2. With xz this shouldn't 1832 matter. With gzip it's important because -q makes gzip replace SIGPIPE 1833 with exit status 2. With bzip2 it's important because with -q bzip2 1834 is completely silent if input is corrupt while other decompressors 1835 still give an error message. 1836 1837 Avoiding exit status 2 from gzip is important because bzip2 uses 1838 exit status 2 to indicate corrupt input. Before this commit xzgrep 1839 didn't recognize corrupt .bz2 files because xzgrep was treating 1840 exit status 2 as SIGPIPE for gzip compatibility. 1841 1842 zstd still needs -q because otherwise it is noisy in normal 1843 operation. 1844 1845 The code to detect real SIGPIPE didn't check if the exit status 1846 was due to a signal (>= 128) and so could ignore some other exit 1847 status too. 1848 1849 src/scripts/xzgrep.in | 20 +++++++++++++------- 1850 1 file changed, 13 insertions(+), 7 deletions(-) 1851 1852commit 09c331b03c801414d547fc25711daf099cef6fb5 1853Author: Lasse Collin <lasse.collin@tukaani.org> 1854Date: 2021-01-11 22:01:51 +0200 1855 1856 Scripts: Fix exit status of xzdiff/xzcmp. 1857 1858 This is a minor fix since this affects only the situation when 1859 the files differ and the exit status is something else than 0. 1860 In such case there could be SIGPIPE from a decompression tool 1861 and that would result in exit status of 2 from xzdiff/xzcmp 1862 while the correct behavior would be to return 1 or whatever 1863 else diff or cmp may have returned. 1864 1865 This commit omits the -q option from xz/gzip/bzip2/lzop arguments. 1866 I'm not sure why the -q was used in the first place, perhaps it 1867 hides warnings in some situation that I cannot see at the moment. 1868 Hopefully the removal won't introduce a new bug. 1869 1870 With gzip the -q option was harmful because it made gzip return 2 1871 instead of >= 128 with SIGPIPE. Ignoring exit status 2 (warning 1872 from gzip) isn't practical because bzip2 uses exit status 2 to 1873 indicate corrupt input file. It's better if SIGPIPE results in 1874 exit status >= 128. 1875 1876 With bzip2 the removal of -q seems to be good because with -q 1877 it prints nothing if input is corrupt. The other tools aren't 1878 silent in this situation even with -q. On the other hand, if 1879 zstd support is added, it will need -q since otherwise it's 1880 noisy in normal situations. 1881 1882 Thanks to Étienne Mollier and Sebastian Andrzej Siewior. 1883 1884 src/scripts/xzdiff.in | 35 +++++++++++++++++++++-------------- 1885 1 file changed, 21 insertions(+), 14 deletions(-) 1886 1887commit b33a345cbab90e18b601d26cc3a0dea083b7d8d9 1888Author: Lasse Collin <lasse.collin@tukaani.org> 1889Date: 2020-12-23 17:15:49 +0200 1890 1891 Update THANKS. 1892 1893 THANKS | 1 + 1894 1 file changed, 1 insertion(+) 1895 1896commit c01e29a933baba737217a3549eaaced7e499edf5 1897Author: H.J. Lu <hjl.tools@gmail.com> 1898Date: 2020-12-23 06:49:04 -0800 1899 1900 liblzma: Enable Intel CET in x86 CRC assembly codes 1901 1902 When Intel CET is enabled, we need to include <cet.h> in assembly codes 1903 to mark Intel CET support and add _CET_ENDBR to indirect jump targets. 1904 1905 Tested on Intel Tiger Lake under CET enabled Linux. 1906 1907 src/liblzma/check/crc32_x86.S | 9 +++++++++ 1908 src/liblzma/check/crc64_x86.S | 9 +++++++++ 1909 2 files changed, 18 insertions(+) 1910 1911commit 0983682f87ae1a9efcbe4e45579d53c9bca16500 1912Author: Lasse Collin <lasse.collin@tukaani.org> 1913Date: 2020-12-16 18:33:29 +0200 1914 1915 Update THANKS. 1916 1917 THANKS | 1 + 1918 1 file changed, 1 insertion(+) 1919 1920commit 880596e4b8731b24f6c19cb737ed7d06fe92dda2 1921Author: Lasse Collin <lasse.collin@tukaani.org> 1922Date: 2020-12-16 18:30:14 +0200 1923 1924 Build: Don't build bundles on Apple OSes. 1925 1926 Thanks to Daniel Packard. 1927 1928 CMakeLists.txt | 3 +++ 1929 1 file changed, 3 insertions(+) 1930 1931commit 29050c79f1f83bf73714146a44dfbb4d26e27920 1932Author: Lasse Collin <lasse.collin@tukaani.org> 1933Date: 2020-12-05 22:44:03 +0200 1934 1935 Update THANKS. 1936 1937 THANKS | 1 + 1938 1 file changed, 1 insertion(+) 1939 1940commit 94fd72474973978f8369be7c23f77c3b741953a6 1941Author: Adam Borowski <kilobyte@angband.pl> 1942Date: 2020-09-25 03:35:18 +0200 1943 1944 Scripts: Add zstd support to xzgrep. 1945 1946 Thanks to Adam Borowski. 1947 1948 src/scripts/xzgrep.1 | 9 ++++++--- 1949 src/scripts/xzgrep.in | 1 + 1950 2 files changed, 7 insertions(+), 3 deletions(-) 1951 1952commit 13c58ac13e1a84c30de24191931af425286d0550 1953Author: Lasse Collin <lasse.collin@tukaani.org> 1954Date: 2020-11-17 20:51:48 +0200 1955 1956 CMake: Fix compatibility with CMake 3.13. 1957 1958 The syntax "if(DEFINED CACHE{FOO})" requires CMake 3.14. 1959 In some other places the code treats the cache variables 1960 like normal variables already (${FOO} or if(FOO) is used, 1961 not ${CACHE{FOO}). 1962 1963 Thanks to ygrek for reporting the bug on IRC. 1964 1965 CMakeLists.txt | 2 +- 1966 cmake/tuklib_cpucores.cmake | 4 ++-- 1967 cmake/tuklib_physmem.cmake | 4 ++-- 1968 3 files changed, 5 insertions(+), 5 deletions(-) 1969 1970commit 8f7d3345a7c31a20a544dc04232715b1bcdc91f7 1971Author: Lasse Collin <lasse.collin@tukaani.org> 1972Date: 2020-11-01 22:56:43 +0200 1973 1974 Update THANKS. 1975 1976 THANKS | 4 +++- 1977 1 file changed, 3 insertions(+), 1 deletion(-) 1978 1979commit ca7bcdb30f14e7cd66fe357d10046442eee648a0 1980Author: Lasse Collin <lasse.collin@tukaani.org> 1981Date: 2020-11-01 22:34:25 +0200 1982 1983 xz: Avoid unneeded \f escapes on the man page. 1984 1985 I don't want to use \c in macro arguments but groff_man(7) 1986 suggests that \f has better portability. \f would be needed 1987 for the .TP strings for portability reasons anyway. 1988 1989 Thanks to Bjarni Ingi Gislason. 1990 1991 src/xz/xz.1 | 31 ++++++++++++++++++++++--------- 1992 1 file changed, 22 insertions(+), 9 deletions(-) 1993 1994commit 3b40a0792ee5ba0dd4d9ab129b4443585bbfdd14 1995Author: Lasse Collin <lasse.collin@tukaani.org> 1996Date: 2020-11-01 19:09:53 +0200 1997 1998 xz: Use non-breaking spaces when intentionally using more than one space. 1999 2000 This silences some style checker warnings. Seems that spaces 2001 in the beginning of a line don't need this treatment. 2002 2003 Thanks to Bjarni Ingi Gislason. 2004 2005 src/xz/xz.1 | 2 +- 2006 1 file changed, 1 insertion(+), 1 deletion(-) 2007 2008commit d85699c36df5f839b82800a6e63151eff25677eb 2009Author: Lasse Collin <lasse.collin@tukaani.org> 2010Date: 2020-11-01 18:49:37 +0200 2011 2012 xz: Protect the ellipsis (...) on the man page with \&. 2013 2014 This does it only when ... appears outside macro calls. 2015 2016 Thanks to Bjarni Ingi Gislason. 2017 2018 src/xz/xz.1 | 4 ++-- 2019 1 file changed, 2 insertions(+), 2 deletions(-) 2020 2021commit d996ae66176206de9b4d485b250a88b2d9ded151 2022Author: Lasse Collin <lasse.collin@tukaani.org> 2023Date: 2020-11-01 18:41:21 +0200 2024 2025 xz: Avoid the abbreviation "e.g." on the man page. 2026 2027 A few are simply omitted, most are converted to "for example" 2028 and surrounded with commas. Sounds like that this is better 2029 style, for example, man-pages(7) recommends avoiding such 2030 abbreviations except in parenthesis. 2031 2032 Thanks to Bjarni Ingi Gislason. 2033 2034 src/xz/xz.1 | 66 ++++++++++++++++++++++++++++++------------------------------- 2035 1 file changed, 33 insertions(+), 33 deletions(-) 2036 2037commit d16d0d198ade6820ed9d39ba6a7068b55b8bf6dc 2038Author: Lasse Collin <lasse.collin@tukaani.org> 2039Date: 2020-07-12 23:10:03 +0300 2040 2041 xz man page: Change \- (minus) to \(en (en-dash) for a numeric range. 2042 2043 Docs of ancient troff/nroff mention \(em (em-dash) but not \(en 2044 and \- was used for both minus and en-dash. I don't know how 2045 portable \(en is nowadays but it can be changed back if someone 2046 complains. At least GNU groff and OpenBSD's mandoc support it. 2047 2048 Thanks to Bjarni Ingi Gislason for the patch. 2049 2050 src/xz/xz.1 | 16 ++++++++-------- 2051 1 file changed, 8 insertions(+), 8 deletions(-) 2052 2053commit 3acf1adfc768c7d2290e138bcb1109145e4d8160 2054Author: Lasse Collin <lasse.collin@tukaani.org> 2055Date: 2020-07-12 20:46:24 +0300 2056 2057 Windows: Fix building of resource files when config.h isn't used. 2058 2059 Now CMake + Visual Studio works for building liblzma.dll. 2060 2061 Thanks to Markus Rickert. 2062 2063 src/common/common_w32res.rc | 4 +++- 2064 1 file changed, 3 insertions(+), 1 deletion(-) 2065 2066commit adba06e649875b45b5b671f5ab45f694144938d4 2067Author: Lasse Collin <lasse.collin@tukaani.org> 2068Date: 2020-04-06 19:31:50 +0300 2069 2070 src/scripts/xzgrep.1: Filenames to xzgrep are optional. 2071 2072 xzgrep --help was correct already. 2073 2074 src/scripts/xzgrep.1 | 2 +- 2075 1 file changed, 1 insertion(+), 1 deletion(-) 2076 2077commit 7be1dcf8585e150bffb57a6ad499a63edd0d3494 2078Author: Lasse Collin <lasse.collin@tukaani.org> 2079Date: 2022-07-12 17:59:41 +0300 2080 2081 Translations: Add Portuguese translation. 2082 2083 Jia Tan made white-space changes and also changed "Language: pt_BR\n" 2084 to pt. The translator wasn't reached so I'm hoping these changes 2085 are OK and will commit it without translator's approval. 2086 2087 Thanks to Pedro Albuquerque and Jia Tan. 2088 2089 po/LINGUAS | 1 + 2090 po/pt.po | 1001 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2091 2 files changed, 1002 insertions(+) 2092 2093commit 3f94d2a568290bf770a762ee69403955fdb0a228 2094Author: Bjarni Ingi Gislason <bjarniig@rhi.hi.is> 2095Date: 2020-03-26 22:17:31 +0000 2096 2097 src/script/xzgrep.1: Remove superfluous '.RB' 2098 2099 Output is from: test-groff -b -e -mandoc -T utf8 -rF0 -t -w w -z 2100 2101 [ "test-groff" is a developmental version of "groff" ] 2102 2103 Input file is ./src/scripts/xzgrep.1 2104 2105 <src/scripts/xzgrep.1>:20 (macro RB): only 1 argument, but more are expected 2106 <src/scripts/xzgrep.1>:23 (macro RB): only 1 argument, but more are expected 2107 <src/scripts/xzgrep.1>:26 (macro RB): only 1 argument, but more are expected 2108 <src/scripts/xzgrep.1>:29 (macro RB): only 1 argument, but more are expected 2109 <src/scripts/xzgrep.1>:32 (macro RB): only 1 argument, but more are expected 2110 2111 "abc..." does not mean the same as "abc ...". 2112 2113 The output from nroff and troff is unchanged except for the space 2114 between "file" and "...". 2115 2116 Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is> 2117 2118 src/scripts/xzgrep.1 | 12 ++++++------ 2119 1 file changed, 6 insertions(+), 6 deletions(-) 2120 2121commit 725d9791c90b7cef19a3ab4d7469b567101c2a87 2122Author: Bjarni Ingi Gislason <bjarniig@rhi.hi.is> 2123Date: 2020-03-30 21:56:36 +0000 2124 2125 xzgrep.1: Delete superfluous '.PP' 2126 2127 Summary: 2128 2129 mandoc -T lint xzgrep.1 : 2130 mandoc: xzgrep.1:79:2: WARNING: skipping paragraph macro: PP empty 2131 2132 There is no change in the output of "nroff" and "troff". 2133 2134 Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is> 2135 2136 src/scripts/xzgrep.1 | 1 - 2137 1 file changed, 1 deletion(-) 2138 2139commit 55c2555c5d420e9251a97828022e5c8c4d786dac 2140Author: Bjarni Ingi Gislason <bjarniig@rhi.hi.is> 2141Date: 2020-03-26 21:16:18 +0000 2142 2143 src/xz/xz.1: Correct misused two-fonts macros 2144 2145 Output is from: test-groff -b -e -mandoc -T utf8 -rF0 -t -w w -z 2146 2147 [ "test-groff" is a developmental version of "groff" ] 2148 2149 Input file is ./src/xz/xz.1 2150 2151 <src/xz/xz.1>:408 (macro BR): only 1 argument, but more are expected 2152 <src/xz/xz.1>:1009 (macro BR): only 1 argument, but more are expected 2153 <src/xz/xz.1>:1743 (macro BR): only 1 argument, but more are expected 2154 <src/xz/xz.1>:1920 (macro BR): only 1 argument, but more are expected 2155 <src/xz/xz.1>:2213 (macro BR): only 1 argument, but more are expected 2156 2157 Output from nroff and troff is unchanged, except for a font change of a 2158 full stop (.). 2159 2160 Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is> 2161 2162 src/xz/xz.1 | 10 +++++----- 2163 1 file changed, 5 insertions(+), 5 deletions(-) 2164 2165commit 55e3a8e0e437279223c108085dccddc60b06036c 2166Author: Lasse Collin <lasse.collin@tukaani.org> 2167Date: 2022-07-10 21:16:40 +0300 2168 2169 Translations: Add Serbian translation. 2170 2171 Quite a few white-space changes were made by Jia Tan to make 2172 this look good. Contacting the translator didn't succeed so 2173 I'm committing this without getting translator's approval. 2174 2175 Thanks to Мирослав Николић (Miroslav Nikolic) and Jia Tan. 2176 2177 po/LINGUAS | 1 + 2178 po/sr.po | 987 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2179 2 files changed, 988 insertions(+) 2180 2181commit 4e04279cbe8c1af25dde42ebf740722deded27a0 2182Author: Lasse Collin <lasse.collin@tukaani.org> 2183Date: 2022-07-04 23:51:36 +0300 2184 2185 Translations: Add Swedish translation. 2186 2187 Thanks to Sebastian Rasmussen and Jia Tan. 2188 2189 po/LINGUAS | 1 + 2190 po/sv.po | 983 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2191 2 files changed, 984 insertions(+) 2192 2193commit 27f55e96b0cdae3fc51b409663b6c017a88ea8bc 2194Author: Lasse Collin <lasse.collin@tukaani.org> 2195Date: 2022-07-04 23:40:27 +0300 2196 2197 Translations: Add Esperanto translation. 2198 2199 Thanks to Keith Bowes and Jia Tan. 2200 2201 po/LINGUAS | 1 + 2202 po/eo.po | 984 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2203 2 files changed, 985 insertions(+) 2204 2205commit be31be9e8f12cf6fce4be1ab822660ad411e803b 2206Author: Lasse Collin <lasse.collin@tukaani.org> 2207Date: 2022-07-01 00:22:33 +0300 2208 2209 Translations: Add Catalan translation. 2210 2211 Thanks to Jordi Mas and Jia Tan. 2212 2213 po/LINGUAS | 1 + 2214 po/ca.po | 1076 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2215 2 files changed, 1077 insertions(+) 2216 2217commit 30e3ad040f4e7ba1a0e97179d6fd62a1201c863b 2218Author: Lasse Collin <lasse.collin@tukaani.org> 2219Date: 2022-06-30 17:47:08 +0300 2220 2221 Translations: Add Ukrainian translation. 2222 2223 Thanks to Yuri Chornoivan and Jia Tan. 2224 2225 po/LINGUAS | 1 + 2226 po/uk.po | 996 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2227 2 files changed, 997 insertions(+) 2228 2229commit f2e2cce49f7b07e8985ba6add4b4ca79b22eddd0 2230Author: Lasse Collin <lasse.collin@tukaani.org> 2231Date: 2022-06-30 17:45:26 +0300 2232 2233 Translators: Add Romanian translation. 2234 2235 Thanks to Remus-Gabriel Chelu and Jia Tan. 2236 2237 po/LINGUAS | 1 + 2238 po/ro.po | 1016 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2239 2 files changed, 1017 insertions(+) 2240 2241commit a12fd5bad2aa922c9b4cf96d16632696f3e0584e 2242Author: Lasse Collin <lasse.collin@tukaani.org> 2243Date: 2022-06-29 18:33:32 +0300 2244 2245 Translations: Update Brazilian Portuguese translation. 2246 2247 One msgstr was changed. The diff is long due to changes 2248 in the source code line numbers in the comments. 2249 2250 Thanks to Rafael Fontenelle. 2251 2252 po/pt_BR.po | 186 ++++++++++++++++++++++++++++++------------------------------ 2253 1 file changed, 92 insertions(+), 94 deletions(-) 2254 2255commit dd713288d27a0d64426d74effe9187087496333c 2256Author: Lasse Collin <lasse.collin@tukaani.org> 2257Date: 2022-06-29 18:04:44 +0300 2258 2259 Translations: Add Croatian translation. 2260 2261 Thanks to Božidar Putanec and Jia Tan. 2262 2263 po/LINGUAS | 1 + 2264 po/hr.po | 987 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2265 2 files changed, 988 insertions(+) 2266 2267commit 016980f26974623a4bcd889b6ba5a0caa4b2f57f 2268Author: Lasse Collin <lasse.collin@tukaani.org> 2269Date: 2022-06-29 17:58:48 +0300 2270 2271 Translations: Add Spanish translation. 2272 2273 Thanks to Cristian Othón Martínez Vera and Jia Tan. 2274 2275 po/LINGUAS | 1 + 2276 po/es.po | 984 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2277 2 files changed, 985 insertions(+) 2278 2279commit 4fe9578c3aab21e6ceb8f0ea470bc87821f5907f 2280Author: Lasse Collin <lasse.collin@tukaani.org> 2281Date: 2022-06-29 17:49:43 +0300 2282 2283 Translations: Add Korean translation. 2284 2285 Thanks to Seong-ho Cho and Jia Tan. 2286 2287 po/LINGUAS | 1 + 2288 po/ko.po | 972 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2289 2 files changed, 973 insertions(+) 2290 2291commit cf1ec5518e6e3d89f57685ac83b81ab228e48bcd 2292Author: Lasse Collin <lasse.collin@tukaani.org> 2293Date: 2020-03-23 18:09:40 +0200 2294 2295 v5.2-specific typo fix from fossies.org. 2296 2297 README | 2 +- 2298 1 file changed, 1 insertion(+), 1 deletion(-) 2299 2300commit 968bbfea09447a4f52e856bb97301aca80e40dcb 2301Author: Lasse Collin <lasse.collin@tukaani.org> 2302Date: 2020-03-23 18:07:50 +0200 2303 2304 Typo fixes from fossies.org. 2305 2306 https://fossies.org/linux/misc/xz-5.2.5.tar.xz/codespell.html 2307 2308 Makefile.am | 2 +- 2309 doc/examples/01_compress_easy.c | 2 +- 2310 src/liblzma/api/lzma/base.h | 2 +- 2311 src/liblzma/check/crc32_x86.S | 2 +- 2312 src/liblzma/common/index.c | 2 +- 2313 src/xz/xz.1 | 4 ++-- 2314 6 files changed, 7 insertions(+), 7 deletions(-) 2315 2316commit 2327a461e1afce862c22269b80d3517801103c1b 2317Author: Lasse Collin <lasse.collin@tukaani.org> 2318Date: 2020-03-17 16:27:42 +0200 2319 2320 Bump version and soname for 5.2.5. 2321 2322 src/liblzma/Makefile.am | 2 +- 2323 src/liblzma/api/lzma/version.h | 2 +- 2324 2 files changed, 2 insertions(+), 2 deletions(-) 2325 2326commit 3be82d2f7dc882258caf0f0a69214e5916b2bdda 2327Author: Lasse Collin <lasse.collin@tukaani.org> 2328Date: 2020-03-17 16:26:04 +0200 2329 2330 Update NEWS for 5.2.5. 2331 2332 NEWS | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2333 1 file changed, 105 insertions(+) 2334 2335commit ab3e57539c7337f0653b13b75dbc5d03ade9700e 2336Author: Lasse Collin <lasse.collin@tukaani.org> 2337Date: 2020-03-16 21:57:21 +0200 2338 2339 Translations: Rebuild cs.po to avoid incorrect fuzzy strings. 2340 2341 "make dist" updates the .po files and the fuzzy strings would 2342 result in multiple very wrong translations. 2343 2344 po/cs.po | 592 ++++++++++++++++++++++++++++++++++----------------------------- 2345 1 file changed, 322 insertions(+), 270 deletions(-) 2346 2347commit 3a6f38309dc5d44d8a63ebb337b6b2028561c93e 2348Author: Lasse Collin <lasse.collin@tukaani.org> 2349Date: 2020-03-16 20:01:37 +0200 2350 2351 README: Update outdated sections. 2352 2353 README | 21 +++++++++++---------- 2354 1 file changed, 11 insertions(+), 10 deletions(-) 2355 2356commit 9cc0901798217e258e91c13cf6fda7ad42ba108c 2357Author: Lasse Collin <lasse.collin@tukaani.org> 2358Date: 2020-03-16 19:46:27 +0200 2359 2360 README: Mention that translatable strings will change after 5.2.x. 2361 2362 README | 74 +++--------------------------------------------------------------- 2363 1 file changed, 3 insertions(+), 71 deletions(-) 2364 2365commit cc163574249f6a4a66f3dc09d6fe5a71bee24fab 2366Author: Lasse Collin <lasse.collin@tukaani.org> 2367Date: 2020-03-16 19:39:45 +0200 2368 2369 README: Mention that man pages can be translated. 2370 2371 README | 7 ++++--- 2372 1 file changed, 4 insertions(+), 3 deletions(-) 2373 2374commit ca261994edc3f2d03d5589c037171c63471ee9dc 2375Author: Lasse Collin <lasse.collin@tukaani.org> 2376Date: 2020-03-16 17:30:39 +0200 2377 2378 Translations: Add partial Danish translation. 2379 2380 I made a few minor white space changes without getting them 2381 approved by the Danish translation team. 2382 2383 po/LINGUAS | 1 + 2384 po/da.po | 896 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2385 2 files changed, 897 insertions(+) 2386 2387commit 51cd5d051fc730d61411dee292e863582784e189 2388Author: Lasse Collin <lasse.collin@tukaani.org> 2389Date: 2020-03-16 16:43:29 +0200 2390 2391 Update INSTALL.generic from Automake 1.16.1. 2392 2393 INSTALL.generic | 321 ++++++++++++++++++++++++++++---------------------------- 2394 1 file changed, 162 insertions(+), 159 deletions(-) 2395 2396commit 69d694e5f1beae2bbfa3b6c348ec0ec5f14b5cd0 2397Author: Lasse Collin <lasse.collin@tukaani.org> 2398Date: 2020-03-15 15:27:22 +0200 2399 2400 Update INSTALL for Windows and DOS and add preliminary info for z/OS. 2401 2402 INSTALL | 51 +++++++++++++++++++++++++++++++++++++++++---------- 2403 1 file changed, 41 insertions(+), 10 deletions(-) 2404 2405commit 2c3b1bb80a3ca7e09728fe4d7a1d8648a5cb9bca 2406Author: Lasse Collin <lasse.collin@tukaani.org> 2407Date: 2020-03-15 15:26:20 +0200 2408 2409 Build: Update m4/ax_pthread.m4 from Autoconf Archive (again). 2410 2411 m4/ax_pthread.m4 | 219 +++++++++++++++++++++++++++++-------------------------- 2412 1 file changed, 117 insertions(+), 102 deletions(-) 2413 2414commit 74a5af180a6a6c4b8c90cefb37ee900d3fea7dc6 2415Author: Lasse Collin <lasse.collin@tukaani.org> 2416Date: 2020-03-11 21:15:35 +0200 2417 2418 xz: Never use thousand separators in DJGPP builds. 2419 2420 DJGPP 2.05 added support for thousands separators but it's 2421 broken at least under WinXP with Finnish locale that uses 2422 a non-breaking space as the thousands separator. Workaround 2423 by disabling thousands separators for DJGPP builds. 2424 2425 src/xz/util.c | 14 ++++++++++++-- 2426 1 file changed, 12 insertions(+), 2 deletions(-) 2427 2428commit ceba0d25e826bcdbf64bb4cb03385a2a66f8cbcb 2429Author: Lasse Collin <lasse.collin@tukaani.org> 2430Date: 2020-03-11 19:38:08 +0200 2431 2432 DOS: Update dos/Makefile for DJGPP 2.05. 2433 2434 It doesn't need -fgnu89-inline like 2.04beta did. 2435 2436 dos/Makefile | 4 +--- 2437 1 file changed, 1 insertion(+), 3 deletions(-) 2438 2439commit 29e5bd71612253281fb22bbaa0a566990a74dcc3 2440Author: Lasse Collin <lasse.collin@tukaani.org> 2441Date: 2020-03-11 19:36:07 +0200 2442 2443 DOS: Update instructions in dos/INSTALL.txt. 2444 2445 dos/INSTALL.txt | 59 ++++++++++++++++++++++++++++----------------------------- 2446 1 file changed, 29 insertions(+), 30 deletions(-) 2447 2448commit 00a037ee9c8ee5a03cf9744e05570ae93d56b875 2449Author: Lasse Collin <lasse.collin@tukaani.org> 2450Date: 2020-03-11 17:58:51 +0200 2451 2452 DOS: Update config.h. 2453 2454 The added defines assume GCC >= 4.8. 2455 2456 dos/config.h | 8 ++++++++ 2457 1 file changed, 8 insertions(+) 2458 2459commit 4ec2feaefa310b4249eb41893caf526e5c51ee39 2460Author: Lasse Collin <lasse.collin@tukaani.org> 2461Date: 2020-03-11 22:37:54 +0200 2462 2463 Translations: Add hu, zh_CN, and zh_TW. 2464 2465 I made a few white space changes to these without getting them 2466 approved by the translation teams. (I tried to contact the hu and 2467 zh_TW teams but didn't succeed. I didn't contact the zh_CN team.) 2468 2469 po/LINGUAS | 3 + 2470 po/hu.po | 985 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2471 po/zh_CN.po | 963 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2472 po/zh_TW.po | 956 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2473 4 files changed, 2907 insertions(+) 2474 2475commit b6ed09729ae408be4533a0ddbc7df3d6f566846a 2476Author: Lasse Collin <lasse.collin@tukaani.org> 2477Date: 2020-03-11 14:33:30 +0200 2478 2479 Translations: Update vi.po to match the file from the TP. 2480 2481 The translated strings haven't been updated but word wrapping 2482 is different. 2483 2484 po/vi.po | 407 ++++++++++++++++++++++++++++----------------------------------- 2485 1 file changed, 179 insertions(+), 228 deletions(-) 2486 2487commit 7c85e8953ced204c858101872a15183e4639e9fb 2488Author: Lasse Collin <lasse.collin@tukaani.org> 2489Date: 2020-03-11 14:18:03 +0200 2490 2491 Translations: Add fi and pt_BR, and update de, fr, it, and pl. 2492 2493 The German translation isn't identical to the file in 2494 the Translation Project but the changes (white space changes 2495 only) were approved by the translator Mario Blättermann. 2496 2497 po/LINGUAS | 2 + 2498 po/de.po | 476 ++++++++++++++-------------- 2499 po/fi.po | 974 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2500 po/fr.po | 272 ++++++++-------- 2501 po/it.po | 479 ++++++++++++---------------- 2502 po/pl.po | 239 +++++++------- 2503 po/pt_BR.po | 1001 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2504 7 files changed, 2697 insertions(+), 746 deletions(-) 2505 2506commit 7da3ebc67fb5414034685ec16c7a29dad03dfa9b 2507Author: Lasse Collin <lasse.collin@tukaani.org> 2508Date: 2020-02-25 21:35:14 +0200 2509 2510 Update THANKS. 2511 2512 THANKS | 1 + 2513 1 file changed, 1 insertion(+) 2514 2515commit 1acc48794364606c9091cae6fa56db75a1325114 2516Author: Lasse Collin <lasse.collin@tukaani.org> 2517Date: 2020-03-11 13:05:29 +0200 2518 2519 Build: Add very limited experimental CMake support. 2520 2521 This version matches CMake files in the master branch (commit 2522 265daa873c0d871f5f23f9b56e133a6f20045a0a) except that this omits 2523 two source files that aren't in v5.2 and in the beginning of 2524 CMakeLists.txt the first paragraph in the comment is slightly 2525 different to point out possible issues in building shared liblzma. 2526 2527 CMakeLists.txt | 659 ++++++++++++++++++++++++++++++++++++++++++++ 2528 cmake/tuklib_common.cmake | 49 ++++ 2529 cmake/tuklib_cpucores.cmake | 175 ++++++++++++ 2530 cmake/tuklib_integer.cmake | 102 +++++++ 2531 cmake/tuklib_mbstr.cmake | 20 ++ 2532 cmake/tuklib_physmem.cmake | 150 ++++++++++ 2533 cmake/tuklib_progname.cmake | 19 ++ 2534 7 files changed, 1174 insertions(+) 2535 2536commit 9acc6abea1552803c74c1486fbb10af119550772 2537Author: Lasse Collin <lasse.collin@tukaani.org> 2538Date: 2020-02-27 20:24:27 +0200 2539 2540 Build: Add support for --no-po4a option to autogen.sh. 2541 2542 Normally, if po4a isn't available, autogen.sh will return 2543 with non-zero exit status. The option --no-po4a can be useful 2544 when one knows that po4a isn't available but wants autogen.sh 2545 to still return with zero exit status. 2546 2547 autogen.sh | 11 ++++++++++- 2548 1 file changed, 10 insertions(+), 1 deletion(-) 2549 2550commit c8853b31545db7bd0551be85949624b1261efd47 2551Author: Lasse Collin <lasse.collin@tukaani.org> 2552Date: 2020-02-24 23:37:07 +0200 2553 2554 Update m4/.gitignore. 2555 2556 m4/.gitignore | 1 + 2557 1 file changed, 1 insertion(+) 2558 2559commit 901eb4a8c992354c3ea482f5bad60a1f8ad6fcc8 2560Author: Lasse Collin <lasse.collin@tukaani.org> 2561Date: 2020-02-24 23:01:00 +0200 2562 2563 liblzma: Remove unneeded <sys/types.h> from fastpos_tablegen.c. 2564 2565 This file only generates fastpos_table.c. 2566 It isn't built as a part of liblzma. 2567 2568 src/liblzma/lzma/fastpos_tablegen.c | 1 - 2569 1 file changed, 1 deletion(-) 2570 2571commit ac35c9585fb734b7a19785d490c152e0b8cd4663 2572Author: Lasse Collin <lasse.collin@tukaani.org> 2573Date: 2020-02-22 14:15:07 +0200 2574 2575 Use defined(__GNUC__) before __GNUC__ in preprocessor lines. 2576 2577 This should silence the equivalent of -Wundef in compilers that 2578 don't define __GNUC__. 2579 2580 src/common/sysdefs.h | 3 ++- 2581 src/liblzma/api/lzma.h | 5 +++-- 2582 2 files changed, 5 insertions(+), 3 deletions(-) 2583 2584commit fb9cada7cfade1156d6277717280e05b5cd342d6 2585Author: Lasse Collin <lasse.collin@tukaani.org> 2586Date: 2020-02-21 17:40:02 +0200 2587 2588 liblzma: Add more uses of lzma_memcmplen() to the normal mode of LZMA. 2589 2590 This gives a tiny encoder speed improvement. This could have been done 2591 in 2014 after the commit 544aaa3d13554e8640f9caf7db717a96360ec0f6 but 2592 it was forgotten. 2593 2594 src/liblzma/lzma/lzma_encoder_optimum_normal.c | 16 ++++++++++------ 2595 1 file changed, 10 insertions(+), 6 deletions(-) 2596 2597commit 6117955af0b9cef5acde7859e86f773692b5f43c 2598Author: Lasse Collin <lasse.collin@tukaani.org> 2599Date: 2020-02-21 17:01:15 +0200 2600 2601 Build: Add visibility.m4 from gnulib. 2602 2603 Appears that this file used to get included as a side effect of 2604 gettext. After the change to gettext version requirements this file 2605 no longer got copied to the package and so the build was broken. 2606 2607 m4/.gitignore | 1 - 2608 m4/visibility.m4 | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2609 2 files changed, 77 insertions(+), 1 deletion(-) 2610 2611commit c2cc64d78c098834231f9cfd7d852c9cd8950d74 2612Author: Lasse Collin <lasse.collin@tukaani.org> 2613Date: 2020-02-21 16:10:44 +0200 2614 2615 xz: Silence a warning when sig_atomic_t is long int. 2616 2617 It can be true at least on z/OS. 2618 2619 src/xz/signals.c | 2 +- 2620 1 file changed, 1 insertion(+), 1 deletion(-) 2621 2622commit b6314aa275b35c714e0a191d0b2e9b6106129ea9 2623Author: Lasse Collin <lasse.collin@tukaani.org> 2624Date: 2020-02-21 15:59:26 +0200 2625 2626 xz: Avoid unneeded access of a volatile variable. 2627 2628 src/xz/signals.c | 2 +- 2629 1 file changed, 1 insertion(+), 1 deletion(-) 2630 2631commit f772a1572f723e5dc7d2d32e1d4287ac7a0da55e 2632Author: Lasse Collin <lasse.collin@tukaani.org> 2633Date: 2020-02-21 01:24:18 +0200 2634 2635 tuklib_integer.m4: Optimize the check order. 2636 2637 The __builtin byteswapping is the preferred one so check for it first. 2638 2639 m4/tuklib_integer.m4 | 56 +++++++++++++++++++++++++++------------------------- 2640 1 file changed, 29 insertions(+), 27 deletions(-) 2641 2642commit 641042e63f665f3231c2fd1241fd3dddda3fb313 2643Author: Lasse Collin <lasse.collin@tukaani.org> 2644Date: 2020-02-20 18:54:04 +0200 2645 2646 tuklib_exit: Add missing header. 2647 2648 strerror() needs <string.h> which happened to be included via 2649 tuklib_common.h -> tuklib_config.h -> sysdefs.h if HAVE_CONFIG_H 2650 was defined. This wasn't tested without config.h before so it 2651 had worked fine. 2652 2653 src/common/tuklib_exit.c | 1 + 2654 1 file changed, 1 insertion(+) 2655 2656commit dbd55a69e530fec9ae866aaf6c3ccc0b4daf1f1f 2657Author: Lasse Collin <lasse.collin@tukaani.org> 2658Date: 2020-02-16 11:18:28 +0200 2659 2660 sysdefs.h: Omit the conditionals around string.h and limits.h. 2661 2662 string.h is used unconditionally elsewhere in the project and 2663 configure has always stopped if limits.h is missing, so these 2664 headers must have been always available even on the weirdest 2665 systems. 2666 2667 src/common/sysdefs.h | 8 ++------ 2668 1 file changed, 2 insertions(+), 6 deletions(-) 2669 2670commit 9294909861e6d22b32418467e0e988f953a82264 2671Author: Lasse Collin <lasse.collin@tukaani.org> 2672Date: 2020-02-15 15:07:11 +0200 2673 2674 Build: Bump Autoconf and Libtool version requirements. 2675 2676 There is no specific reason for this other than blocking 2677 the most ancient versions. These are still old: 2678 2679 Autoconf 2.69 (2012) 2680 Automake 1.12 (2012) 2681 gettext 0.19.6 (2015) 2682 Libtool 2.4 (2010) 2683 2684 configure.ac | 4 ++-- 2685 1 file changed, 2 insertions(+), 2 deletions(-) 2686 2687commit bd09081bbdf552f730030d2fd0e5e39ccb3936af 2688Author: Lasse Collin <lasse.collin@tukaani.org> 2689Date: 2020-02-15 03:08:32 +0200 2690 2691 Build: Use AM_GNU_GETTEXT_REQUIRE_VERSION and require 0.19.6. 2692 2693 This bumps the version requirement from 0.19 (from 2014) to 2694 0.19.6 (2015). 2695 2696 Using only the old AM_GNU_GETTEXT_VERSION results in old 2697 gettext infrastructure being placed in the package. By using 2698 both macros we get the latest gettext files while the other 2699 programs in the Autotools family can still see the old macro. 2700 2701 configure.ac | 6 +++++- 2702 1 file changed, 5 insertions(+), 1 deletion(-) 2703 2704commit 1e5e08d86534aec7ca957982c7f6e90203c19e9f 2705Author: Lasse Collin <lasse.collin@tukaani.org> 2706Date: 2020-02-14 20:42:06 +0200 2707 2708 Translations: Add German translation of the man pages. 2709 2710 Thanks to Mario Blättermann. 2711 2712 po4a/de.po | 5532 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2713 po4a/po4a.conf | 2 +- 2714 2 files changed, 5533 insertions(+), 1 deletion(-) 2715 2716commit 4b1447809ffbc0d77c0ad456bd6b3afcf0b8623e 2717Author: Lasse Collin <lasse.collin@tukaani.org> 2718Date: 2020-02-07 15:32:21 +0200 2719 2720 Build: Add support for translated man pages using po4a. 2721 2722 The dependency on po4a is optional. It's never required to install 2723 the translated man pages when xz is built from a release tarball. 2724 If po4a is missing when building from xz.git, the translated man 2725 pages won't be generated but otherwise the build will work normally. 2726 2727 The translations are only updated automatically by autogen.sh and 2728 by "make mydist". This makes it easy to keep po4a as an optional 2729 dependency and ensures that I won't forget to put updated 2730 translations to a release tarball. 2731 2732 The translated man pages aren't installed if --disable-nls is used. 2733 2734 The installation of translated man pages abuses Automake internals 2735 by calling "install-man" with redefined dist_man_MANS and man_MANS. 2736 This makes the hairy script code slightly less hairy. If it breaks 2737 some day, this code needs to be fixed; don't blame Automake developers. 2738 2739 Also, this adds more quotes to the existing shell script code in 2740 the Makefile.am "-hook"s. 2741 2742 Makefile.am | 4 ++++ 2743 autogen.sh | 8 ++++--- 2744 po4a/.gitignore | 2 ++ 2745 po4a/po4a.conf | 14 +++++++++++ 2746 po4a/update-po | 45 ++++++++++++++++++++++++++++++++++ 2747 src/scripts/Makefile.am | 64 +++++++++++++++++++++++++++++++++++++------------ 2748 src/xz/Makefile.am | 50 +++++++++++++++++++++++++++----------- 2749 src/xzdec/Makefile.am | 55 ++++++++++++++++++++++++++++++++---------- 2750 8 files changed, 197 insertions(+), 45 deletions(-) 2751 2752commit 882fcfdcd86525cc5c6f6d0bf0230d0089206d13 2753Author: Lasse Collin <lasse.collin@tukaani.org> 2754Date: 2020-02-06 00:04:42 +0200 2755 2756 Update THANKS (sync with the master branch). 2757 2758 THANKS | 3 +++ 2759 1 file changed, 3 insertions(+) 2760 2761commit 134bb7765815d5f265eb0bc9e6ebacd9ae4a52bc 2762Author: Lasse Collin <lasse.collin@tukaani.org> 2763Date: 2020-02-05 22:35:06 +0200 2764 2765 Update tests/.gitignore. 2766 2767 .gitignore | 4 ++++ 2768 1 file changed, 4 insertions(+) 2769 2770commit 6912472fafb656be8f4c5b4ac9ea28fea3065de4 2771Author: Lasse Collin <lasse.collin@tukaani.org> 2772Date: 2020-02-05 22:28:51 +0200 2773 2774 Update m4/.gitignore. 2775 2776 m4/.gitignore | 1 + 2777 1 file changed, 1 insertion(+) 2778 2779commit 68c60735bbb6e51d4205ba8a9fde307bcfb22f8c 2780Author: Lasse Collin <lasse.collin@tukaani.org> 2781Date: 2020-02-05 20:47:38 +0200 2782 2783 Update THANKS. 2784 2785 THANKS | 1 + 2786 1 file changed, 1 insertion(+) 2787 2788commit e1beaa74bc7cb5a409d59b55870e01ae7784ce3a 2789Author: Lasse Collin <lasse.collin@tukaani.org> 2790Date: 2020-02-05 20:33:50 +0200 2791 2792 xz: Comment out annoying sandboxing messages. 2793 2794 src/xz/file_io.c | 10 +++++++--- 2795 1 file changed, 7 insertions(+), 3 deletions(-) 2796 2797commit 8238192652290df78bd728b20e3f6542d1a2819e 2798Author: Lasse Collin <lasse.collin@tukaani.org> 2799Date: 2020-02-05 19:33:37 +0200 2800 2801 Build: Workaround a POSIX shell detection problem on Solaris. 2802 2803 I don't know if the problem is in gnulib's gl_POSIX_SHELL macro 2804 or if xzgrep does something that isn't in POSIX. The workaround 2805 adds a special case for Solaris: if /usr/xpg4/bin/sh exists and 2806 gl_cv_posix_shell wasn't overriden on the configure command line, 2807 use that shell for xzgrep and other scripts. That shell is known 2808 to work and exists on most Solaris systems. 2809 2810 configure.ac | 10 ++++++++++ 2811 1 file changed, 10 insertions(+) 2812 2813commit 93a1f61e892e145607dd938e3b30098af19a1672 2814Author: Lasse Collin <lasse.collin@tukaani.org> 2815Date: 2020-02-03 22:03:50 +0200 2816 2817 Build: Update m4/ax_pthread.m4 from Autoconf Archive. 2818 2819 m4/ax_pthread.m4 | 398 ++++++++++++++++++++++++++++++++++++++----------------- 2820 1 file changed, 279 insertions(+), 119 deletions(-) 2821 2822commit d0daa21792ff861e5423bbd82aaa6c8ba9fa0462 2823Author: Lasse Collin <lasse.collin@tukaani.org> 2824Date: 2020-02-01 19:56:18 +0200 2825 2826 xz: Limit --memlimit-compress to at most 4020 MiB for 32-bit xz. 2827 2828 See the code comment for reasoning. It's far from perfect but 2829 hopefully good enough for certain cases while hopefully doing 2830 nothing bad in other situations. 2831 2832 At presets -5 ... -9, 4020 MiB vs. 4096 MiB makes no difference 2833 on how xz scales down the number of threads. 2834 2835 The limit has to be a few MiB below 4096 MiB because otherwise 2836 things like "xz --lzma2=dict=500MiB" won't scale down the dict 2837 size enough and xz cannot allocate enough memory. With 2838 "ulimit -v $((4096 * 1024))" on x86-64, the limit in xz had 2839 to be no more than 4085 MiB. Some safety margin is good though. 2840 2841 This is hack but it should be useful when running 32-bit xz on 2842 a 64-bit kernel that gives full 4 GiB address space to xz. 2843 Hopefully this is enough to solve this: 2844 2845 https://bugzilla.redhat.com/show_bug.cgi?id=1196786 2846 2847 FreeBSD has a patch that limits the result in tuklib_physmem() 2848 to SIZE_MAX on 32-bit systems. While I think it's not the way 2849 to do it, the results on --memlimit-compress have been good. This 2850 commit should achieve practically identical results for compression 2851 while leaving decompression and tuklib_physmem() and thus 2852 lzma_physmem() unaffected. 2853 2854 src/xz/hardware.c | 32 +++++++++++++++++++++++++++++++- 2855 src/xz/xz.1 | 21 ++++++++++++++++++++- 2856 2 files changed, 51 insertions(+), 2 deletions(-) 2857 2858commit 4433c2dc5727ee6aef570e001a5a024e0d94e609 2859Author: Lasse Collin <lasse.collin@tukaani.org> 2860Date: 2020-01-26 20:53:25 +0200 2861 2862 xz: Set the --flush-timeout deadline when the first input byte arrives. 2863 2864 xz --flush-timeout=2000, old version: 2865 2866 1. xz is started. The next flush will happen after two seconds. 2867 2. No input for one second. 2868 3. A burst of a few kilobytes of input. 2869 4. No input for one second. 2870 5. Two seconds have passed and flushing starts. 2871 2872 The first second counted towards the flush-timeout even though 2873 there was no pending data. This can cause flushing to occur more 2874 often than needed. 2875 2876 xz --flush-timeout=2000, after this commit: 2877 2878 1. xz is started. 2879 2. No input for one second. 2880 3. A burst of a few kilobytes of input. The next flush will 2881 happen after two seconds counted from the time when the 2882 first bytes of the burst were read. 2883 4. No input for one second. 2884 5. No input for another second. 2885 6. Two seconds have passed and flushing starts. 2886 2887 src/xz/coder.c | 6 +----- 2888 src/xz/file_io.c | 6 +++++- 2889 src/xz/mytime.c | 1 - 2890 3 files changed, 6 insertions(+), 7 deletions(-) 2891 2892commit acc0ef3ac80f18e349c6d0252177707105c0a29c 2893Author: Lasse Collin <lasse.collin@tukaani.org> 2894Date: 2020-01-26 20:19:19 +0200 2895 2896 xz: Move flush_needed from mytime.h to file_pair struct in file_io.h. 2897 2898 src/xz/coder.c | 3 ++- 2899 src/xz/file_io.c | 3 ++- 2900 src/xz/file_io.h | 3 +++ 2901 src/xz/mytime.c | 3 --- 2902 src/xz/mytime.h | 4 ---- 2903 5 files changed, 7 insertions(+), 9 deletions(-) 2904 2905commit 4afe69d30b66812682a2016ee18441958019cbb2 2906Author: Lasse Collin <lasse.collin@tukaani.org> 2907Date: 2020-01-26 14:49:22 +0200 2908 2909 xz: coder.c: Make writing output a separate function. 2910 2911 The same code sequence repeats so it's nicer as a separate function. 2912 Note that in one case there was no test for opt_mode != MODE_TEST, 2913 but that was only because that condition would always be true, so 2914 this commit doesn't change the behavior there. 2915 2916 src/xz/coder.c | 30 +++++++++++++++++------------- 2917 1 file changed, 17 insertions(+), 13 deletions(-) 2918 2919commit ec26f3ace5f9b260ca91508030f07465ae2f9f78 2920Author: Lasse Collin <lasse.collin@tukaani.org> 2921Date: 2020-01-26 14:13:42 +0200 2922 2923 xz: Fix semi-busy-waiting in xz --flush-timeout. 2924 2925 When input blocked, xz --flush-timeout=1 would wake up every 2926 millisecond and initiate flushing which would have nothing to 2927 flush and thus would just waste CPU time. The fix disables the 2928 timeout when no input has been seen since the previous flush. 2929 2930 src/xz/coder.c | 4 ++++ 2931 src/xz/file_io.c | 15 +++++++++++---- 2932 src/xz/file_io.h | 4 ++++ 2933 3 files changed, 19 insertions(+), 4 deletions(-) 2934 2935commit 38915703241e69a64f133ff9a02ec9100c6019c6 2936Author: Lasse Collin <lasse.collin@tukaani.org> 2937Date: 2020-01-26 13:47:31 +0200 2938 2939 xz: Refactor io_read() a bit. 2940 2941 src/xz/file_io.c | 17 ++++++++--------- 2942 1 file changed, 8 insertions(+), 9 deletions(-) 2943 2944commit f6d24245349cecfae6ec0d2366fa80716c9f6d37 2945Author: Lasse Collin <lasse.collin@tukaani.org> 2946Date: 2020-01-26 13:37:08 +0200 2947 2948 xz: Update a comment in file_io.h. 2949 2950 src/xz/file_io.h | 5 ++++- 2951 1 file changed, 4 insertions(+), 1 deletion(-) 2952 2953commit 15b55d5c63d27f81776edb1abc05872a751fc674 2954Author: Lasse Collin <lasse.collin@tukaani.org> 2955Date: 2020-01-26 13:27:51 +0200 2956 2957 xz: Move the setting of flush_needed in file_io.c to a nicer location. 2958 2959 src/xz/file_io.c | 6 ++---- 2960 1 file changed, 2 insertions(+), 4 deletions(-) 2961 2962commit 609c7067859146ffc62ac655f6ba53599c891801 2963Author: Lasse Collin <lasse.collin@tukaani.org> 2964Date: 2020-02-05 19:56:09 +0200 2965 2966 xz: Enable Capsicum sandboxing by default if available. 2967 2968 It has been enabled in FreeBSD for a while and reported to work fine. 2969 2970 Thanks to Xin Li. 2971 2972 INSTALL | 6 ------ 2973 configure.ac | 8 ++++---- 2974 2 files changed, 4 insertions(+), 10 deletions(-) 2975 2976commit 00517d125cc26ecece0eebb84c1c3975cd19bee0 2977Author: Lasse Collin <lasse.collin@tukaani.org> 2978Date: 2019-12-31 22:41:45 +0200 2979 2980 Rename unaligned_read32ne to read32ne, and similarly for the others. 2981 2982 src/common/tuklib_integer.h | 64 +++++++++++++++---------------- 2983 src/liblzma/common/alone_encoder.c | 2 +- 2984 src/liblzma/common/block_header_decoder.c | 2 +- 2985 src/liblzma/common/block_header_encoder.c | 2 +- 2986 src/liblzma/common/memcmplen.h | 9 ++--- 2987 src/liblzma/common/stream_flags_decoder.c | 6 +-- 2988 src/liblzma/common/stream_flags_encoder.c | 8 ++-- 2989 src/liblzma/lz/lz_encoder_hash.h | 2 +- 2990 src/liblzma/lzma/lzma_decoder.c | 2 +- 2991 src/liblzma/lzma/lzma_encoder.c | 2 +- 2992 src/liblzma/lzma/lzma_encoder_private.h | 3 +- 2993 src/liblzma/simple/simple_decoder.c | 2 +- 2994 src/liblzma/simple/simple_encoder.c | 2 +- 2995 tests/test_block_header.c | 4 +- 2996 tests/test_stream_flags.c | 6 +-- 2997 15 files changed, 54 insertions(+), 62 deletions(-) 2998 2999commit 52d89d8443c4a31a69c0701062f2c7711d82bbed 3000Author: Lasse Collin <lasse.collin@tukaani.org> 3001Date: 2019-12-31 00:29:48 +0200 3002 3003 Rename read32ne to aligned_read32ne, and similarly for the others. 3004 3005 Using the aligned methods requires more care to ensure that 3006 the address really is aligned, so it's nicer if the aligned 3007 methods are prefixed. The next commit will remove the unaligned_ 3008 prefix from the unaligned methods which in liblzma are used in 3009 more places than the aligned ones. 3010 3011 src/common/tuklib_integer.h | 56 +++++++++++++++++++++--------------------- 3012 src/liblzma/check/crc32_fast.c | 4 +-- 3013 src/liblzma/check/crc64_fast.c | 4 +-- 3014 3 files changed, 32 insertions(+), 32 deletions(-) 3015 3016commit 850620468b57d49f16093e5870d1050886fcb37a 3017Author: Lasse Collin <lasse.collin@tukaani.org> 3018Date: 2019-12-31 00:18:24 +0200 3019 3020 Revise tuklib_integer.h and .m4. 3021 3022 Add a configure option --enable-unsafe-type-punning to get the 3023 old non-conforming memory access methods. It can be useful with 3024 old compilers or in some other less typical situations but 3025 shouldn't normally be used. 3026 3027 Omit the packed struct trick for unaligned access. While it's 3028 best in some cases, this is simpler. If the memcpy trick doesn't 3029 work, one can request unsafe type punning from configure. 3030 3031 Because CRC32/CRC64 code needs fast aligned reads, if no very 3032 safe way to do it is found, type punning is used as a fallback. 3033 This sucks but since it currently works in practice, it seems to 3034 be the least bad option. It's never needed with GCC >= 4.7 or 3035 Clang >= 3.6 since these support __builtin_assume_aligned and 3036 thus fast aligned access can be done with the memcpy trick. 3037 3038 Other things: 3039 - Support GCC/Clang __builtin_bswapXX 3040 - Cleaner bswap fallback macros 3041 - Minor cleanups 3042 3043 m4/tuklib_integer.m4 | 43 ++++ 3044 src/common/tuklib_integer.h | 488 ++++++++++++++++++++++++-------------------- 3045 2 files changed, 314 insertions(+), 217 deletions(-) 3046 3047commit a45badf0342666462cc6a7107a071418570ab773 3048Author: Lasse Collin <lasse.collin@tukaani.org> 3049Date: 2019-12-29 22:51:58 +0200 3050 3051 Tests: Hopefully fix test_check.c to work on EBCDIC systems. 3052 3053 Thanks to Daniel Richard G. 3054 3055 tests/test_check.c | 9 +++++++-- 3056 1 file changed, 7 insertions(+), 2 deletions(-) 3057 3058commit c9a8071e6690a8db8a485c075920df254e7c70ea 3059Author: Lasse Collin <lasse.collin@tukaani.org> 3060Date: 2019-09-24 23:02:40 +0300 3061 3062 Scripts: Put /usr/xpg4/bin to the beginning of PATH on Solaris. 3063 3064 This adds a configure option --enable-path-for-scripts=PREFIX 3065 which defaults to empty except on Solaris it is /usr/xpg4/bin 3066 to make POSIX grep and others available. The Solaris case had 3067 been documented in INSTALL with a manual fix but it's better 3068 to do this automatically since it is needed on most Solaris 3069 systems anyway. 3070 3071 Thanks to Daniel Richard G. 3072 3073 INSTALL | 43 +++++++++++++++++++++++++++++++++++-------- 3074 configure.ac | 26 ++++++++++++++++++++++++++ 3075 src/scripts/xzdiff.in | 1 + 3076 src/scripts/xzgrep.in | 1 + 3077 src/scripts/xzless.in | 1 + 3078 src/scripts/xzmore.in | 1 + 3079 6 files changed, 65 insertions(+), 8 deletions(-) 3080 3081commit aba140e2df3ff63ad124ae997de16d517b98ca50 3082Author: Lasse Collin <lasse.collin@tukaani.org> 3083Date: 2019-07-12 18:57:43 +0300 3084 3085 Fix comment typos in tuklib_mbstr* files. 3086 3087 src/common/tuklib_mbstr.h | 2 +- 3088 src/common/tuklib_mbstr_fw.c | 2 +- 3089 src/common/tuklib_mbstr_width.c | 2 +- 3090 3 files changed, 3 insertions(+), 3 deletions(-) 3091 3092commit 710f5bd769a5d2bd8684256c2727d15350ee2ab8 3093Author: Lasse Collin <lasse.collin@tukaani.org> 3094Date: 2019-07-12 18:30:46 +0300 3095 3096 Add missing include to tuklib_mbstr_width.c. 3097 3098 It didn't matter in XZ Utils because sysdefs.h 3099 includes string.h anyway. 3100 3101 src/common/tuklib_mbstr_width.c | 1 + 3102 1 file changed, 1 insertion(+) 3103 3104commit 0e491aa8cd72e0100cd15c1b9469cd57fae500b0 3105Author: Lasse Collin <lasse.collin@tukaani.org> 3106Date: 2019-06-25 23:15:21 +0300 3107 3108 liblzma: Fix a buggy comment. 3109 3110 src/liblzma/lz/lz_encoder_mf.c | 2 +- 3111 1 file changed, 1 insertion(+), 1 deletion(-) 3112 3113commit bfc245569f340a75bd71ad32a6beba786712683b 3114Author: Lasse Collin <lasse.collin@tukaani.org> 3115Date: 2019-06-25 00:16:06 +0300 3116 3117 configure.ac: Fix a typo in a comment. 3118 3119 configure.ac | 2 +- 3120 1 file changed, 1 insertion(+), 1 deletion(-) 3121 3122commit f18eee9d15a22c8449ef395a05f0eb637c4ad253 3123Author: Lasse Collin <lasse.collin@tukaani.org> 3124Date: 2019-06-25 00:08:13 +0300 3125 3126 Tests: Silence warnings from clang -Wassign-enum. 3127 3128 Also changed 999 to 99 so it fits even if lzma_check happened 3129 to be 8 bits wide. 3130 3131 tests/test_block_header.c | 3 ++- 3132 tests/test_stream_flags.c | 2 +- 3133 2 files changed, 3 insertions(+), 2 deletions(-) 3134 3135commit 25f74554723e8deabc66fed1abf0ec27a4ed19d5 3136Author: Lasse Collin <lasse.collin@tukaani.org> 3137Date: 2019-06-24 23:52:17 +0300 3138 3139 liblzma: Add a comment. 3140 3141 src/liblzma/common/stream_encoder_mt.c | 2 +- 3142 1 file changed, 1 insertion(+), 1 deletion(-) 3143 3144commit 44eb961f2a51d02420d017bc5ff470360663650c 3145Author: Lasse Collin <lasse.collin@tukaani.org> 3146Date: 2019-06-24 23:45:21 +0300 3147 3148 liblzma: Silence clang -Wmissing-variable-declarations. 3149 3150 src/liblzma/check/crc32_table.c | 3 +++ 3151 src/liblzma/check/crc64_table.c | 3 +++ 3152 2 files changed, 6 insertions(+) 3153 3154commit 267afcd9955e668c1532b069230c21c348eb4f82 3155Author: Lasse Collin <lasse.collin@tukaani.org> 3156Date: 2019-06-24 22:57:43 +0300 3157 3158 xz: Silence a warning from clang -Wsign-conversion in main.c. 3159 3160 src/xz/main.c | 2 +- 3161 1 file changed, 1 insertion(+), 1 deletion(-) 3162 3163commit 0e3c4002f809311ecef239b05e556d9c462b5703 3164Author: Lasse Collin <lasse.collin@tukaani.org> 3165Date: 2019-06-24 22:47:39 +0300 3166 3167 liblzma: Remove incorrect uses of lzma_attribute((__unused__)). 3168 3169 Caught by clang -Wused-but-marked-unused. 3170 3171 src/liblzma/common/alone_decoder.c | 3 +-- 3172 src/liblzma/common/alone_encoder.c | 3 +-- 3173 src/liblzma/lz/lz_decoder.c | 3 +-- 3174 3 files changed, 3 insertions(+), 6 deletions(-) 3175 3176commit cb708e8fa3405ec13a0ebfebbbf2793f927deab1 3177Author: Lasse Collin <lasse.collin@tukaani.org> 3178Date: 2019-06-24 20:53:55 +0300 3179 3180 Tests: Silence a warning from -Wsign-conversion. 3181 3182 tests/create_compress_files.c | 8 ++++---- 3183 1 file changed, 4 insertions(+), 4 deletions(-) 3184 3185commit c8cace3d6e965c0fb537591372bf71b9357dd76c 3186Author: Lasse Collin <lasse.collin@tukaani.org> 3187Date: 2019-06-24 20:45:49 +0300 3188 3189 xz: Fix an integer overflow with 32-bit off_t. 3190 3191 Or any off_t which isn't very big (like signed 64 bit integer 3192 that most system have). A small off_t could overflow if the 3193 file being decompressed had long enough run of zero bytes, 3194 which would result in corrupt output. 3195 3196 src/xz/file_io.c | 11 +++++++++-- 3197 1 file changed, 9 insertions(+), 2 deletions(-) 3198 3199commit 65a42741e290fbcd85dfc5db8a62c4bce5f7712c 3200Author: Lasse Collin <lasse.collin@tukaani.org> 3201Date: 2019-06-24 00:57:23 +0300 3202 3203 Tests: Remove a duplicate branch from tests/tests.h. 3204 3205 The duplication was introduced about eleven years ago and 3206 should have been cleaned up back then already. 3207 3208 This was caught by -Wduplicated-branches. 3209 3210 tests/tests.h | 9 ++------- 3211 1 file changed, 2 insertions(+), 7 deletions(-) 3212 3213commit 5c4fb60e8df026e933afab0cfe0a8b55be20036c 3214Author: Lasse Collin <lasse.collin@tukaani.org> 3215Date: 2019-06-23 23:22:45 +0300 3216 3217 tuklib_mbstr_width: Fix a warning from -Wsign-conversion. 3218 3219 src/common/tuklib_mbstr_width.c | 2 +- 3220 1 file changed, 1 insertion(+), 1 deletion(-) 3221 3222commit 37df03ce52ce53710e1513387648763f8a744154 3223Author: Lasse Collin <lasse.collin@tukaani.org> 3224Date: 2019-06-23 23:19:34 +0300 3225 3226 xz: Fix some of the warnings from -Wsign-conversion. 3227 3228 src/xz/args.c | 4 ++-- 3229 src/xz/coder.c | 4 ++-- 3230 src/xz/file_io.c | 5 +++-- 3231 src/xz/message.c | 4 ++-- 3232 src/xz/mytime.c | 4 ++-- 3233 src/xz/options.c | 2 +- 3234 src/xz/util.c | 4 ++-- 3235 7 files changed, 14 insertions(+), 13 deletions(-) 3236 3237commit 7c65ae0f5f2e2431f88621e8fe6d1dc7907e30c1 3238Author: Lasse Collin <lasse.collin@tukaani.org> 3239Date: 2019-06-23 22:27:45 +0300 3240 3241 tuklib_cpucores: Silence warnings from -Wsign-conversion. 3242 3243 src/common/tuklib_cpucores.c | 10 +++++----- 3244 1 file changed, 5 insertions(+), 5 deletions(-) 3245 3246commit a502dd1d000b598406637d452f535f4bbd43e2a4 3247Author: Lasse Collin <lasse.collin@tukaani.org> 3248Date: 2019-06-23 21:40:47 +0300 3249 3250 xzdec: Fix warnings from -Wsign-conversion. 3251 3252 src/xzdec/xzdec.c | 2 +- 3253 1 file changed, 1 insertion(+), 1 deletion(-) 3254 3255commit a45d1a5374ceb22e23255b0b595b9e641e9860af 3256Author: Lasse Collin <lasse.collin@tukaani.org> 3257Date: 2019-06-23 21:38:56 +0300 3258 3259 liblzma: Fix warnings from -Wsign-conversion. 3260 3261 Also, more parentheses were added to the literal_subcoder 3262 macro in lzma_comon.h (better style but no functional change 3263 in the current usage). 3264 3265 src/liblzma/common/block_header_decoder.c | 2 +- 3266 src/liblzma/delta/delta_decoder.c | 2 +- 3267 src/liblzma/lzma/fastpos.h | 2 +- 3268 src/liblzma/lzma/lzma2_decoder.c | 8 ++++---- 3269 src/liblzma/lzma/lzma_common.h | 3 ++- 3270 src/liblzma/lzma/lzma_decoder.c | 16 ++++++++-------- 3271 src/liblzma/simple/arm.c | 6 +++--- 3272 src/liblzma/simple/armthumb.c | 8 ++++---- 3273 src/liblzma/simple/ia64.c | 2 +- 3274 src/liblzma/simple/powerpc.c | 9 +++++---- 3275 src/liblzma/simple/x86.c | 2 +- 3276 11 files changed, 31 insertions(+), 29 deletions(-) 3277 3278commit 4ff87ddf80ed7cb233444cddd86ab1940b5b55ec 3279Author: Lasse Collin <lasse.collin@tukaani.org> 3280Date: 2019-06-23 19:33:55 +0300 3281 3282 tuklib_integer: Silence warnings from -Wsign-conversion. 3283 3284 src/common/tuklib_integer.h | 6 +++--- 3285 1 file changed, 3 insertions(+), 3 deletions(-) 3286 3287commit ed1a9d33984a3a37ae9a775a46859850d98ea4d0 3288Author: Lasse Collin <lasse.collin@tukaani.org> 3289Date: 2019-06-20 19:40:30 +0300 3290 3291 tuklib_integer: Fix usage of conv macros. 3292 3293 Use a temporary variable instead of e.g. 3294 conv32le(unaligned_read32ne(buf)) because the macro can 3295 evaluate its argument multiple times. 3296 3297 src/common/tuklib_integer.h | 12 ++++++++---- 3298 1 file changed, 8 insertions(+), 4 deletions(-) 3299 3300commit 612c88dfc08e2c572623954ecfde541d21c84882 3301Author: Lasse Collin <lasse.collin@tukaani.org> 3302Date: 2019-06-03 20:44:19 +0300 3303 3304 Update THANKS. 3305 3306 THANKS | 1 + 3307 1 file changed, 1 insertion(+) 3308 3309commit 85da31d8b882b8b9671ab3e3d74d88bd945cd0bb 3310Author: Lasse Collin <lasse.collin@tukaani.org> 3311Date: 2019-06-03 20:41:54 +0300 3312 3313 liblzma: Fix comments. 3314 3315 Thanks to Bruce Stark. 3316 3317 src/liblzma/common/alone_encoder.c | 4 ++-- 3318 src/liblzma/common/block_util.c | 2 +- 3319 src/liblzma/common/common.c | 2 +- 3320 src/liblzma/common/filter_common.h | 2 +- 3321 src/liblzma/common/filter_decoder.h | 2 +- 3322 src/liblzma/common/filter_flags_encoder.c | 2 +- 3323 6 files changed, 7 insertions(+), 7 deletions(-) 3324 3325commit 6a73a7889587aa394e236c7e9e4f870b44851036 3326Author: Lasse Collin <lasse.collin@tukaani.org> 3327Date: 2019-06-02 00:50:59 +0300 3328 3329 liblzma: Fix one more unaligned read to use unaligned_read16ne(). 3330 3331 src/liblzma/lz/lz_encoder_hash.h | 2 +- 3332 1 file changed, 1 insertion(+), 1 deletion(-) 3333 3334commit ce59b34ec9ac344d62a57cad5f94f695f42cdaee 3335Author: Lasse Collin <lasse.collin@tukaani.org> 3336Date: 2019-06-01 21:41:55 +0300 3337 3338 Update THANKS. 3339 3340 THANKS | 1 + 3341 1 file changed, 1 insertion(+) 3342 3343commit 94aa3fb568fe41dd4925a961966ed5cf8213bd1f 3344Author: Lasse Collin <lasse.collin@tukaani.org> 3345Date: 2019-06-01 21:36:13 +0300 3346 3347 liblzma: memcmplen: Use ctz32() from tuklib_integer.h. 3348 3349 The same compiler-specific #ifdefs are already in tuklib_integer.h 3350 3351 src/liblzma/common/memcmplen.h | 10 +--------- 3352 1 file changed, 1 insertion(+), 9 deletions(-) 3353 3354commit 412791486dfb430219d8e30bcbebbfc57a99484a 3355Author: Lasse Collin <lasse.collin@tukaani.org> 3356Date: 2019-06-01 21:30:03 +0300 3357 3358 tuklib_integer: Cleanup MSVC-specific code. 3359 3360 src/common/tuklib_integer.h | 20 +++++++++----------- 3361 1 file changed, 9 insertions(+), 11 deletions(-) 3362 3363commit efbf6e5f0932e6c1a4250f91ee99059f449f2470 3364Author: Lasse Collin <lasse.collin@tukaani.org> 3365Date: 2019-06-01 19:01:21 +0300 3366 3367 liblzma: Use unaligned_readXXne functions instead of type punning. 3368 3369 Now gcc -fsanitize=undefined should be clean. 3370 3371 Thanks to Jeffrey Walton. 3372 3373 src/liblzma/common/memcmplen.h | 12 ++++++------ 3374 src/liblzma/lzma/lzma_encoder_private.h | 2 +- 3375 2 files changed, 7 insertions(+), 7 deletions(-) 3376 3377commit 29afef03486d461c23f57150ac5436684bff7811 3378Author: Lasse Collin <lasse.collin@tukaani.org> 3379Date: 2019-06-01 18:41:16 +0300 3380 3381 tuklib_integer: Improve unaligned memory access. 3382 3383 Now memcpy() or GNU C packed structs for unaligned access instead 3384 of type punning. See the comment in this commit for details. 3385 3386 Avoiding type punning with unaligned access is needed to 3387 silence gcc -fsanitize=undefined. 3388 3389 New functions: unaliged_readXXne and unaligned_writeXXne where 3390 XX is 16, 32, or 64. 3391 3392 src/common/tuklib_integer.h | 180 +++++++++++++++++++++++++++++++++++++++++--- 3393 1 file changed, 168 insertions(+), 12 deletions(-) 3394 3395commit 596ed3de4485a4b1d83b5fe506ae9d0a172139b4 3396Author: Lasse Collin <lasse.collin@tukaani.org> 3397Date: 2019-05-13 20:05:17 +0300 3398 3399 liblzma: Avoid memcpy(NULL, foo, 0) because it is undefined behavior. 3400 3401 I should have always known this but I didn't. Here is an example 3402 as a reminder to myself: 3403 3404 int mycopy(void *dest, void *src, size_t n) 3405 { 3406 memcpy(dest, src, n); 3407 return dest == NULL; 3408 } 3409 3410 In the example, a compiler may assume that dest != NULL because 3411 passing NULL to memcpy() would be undefined behavior. Testing 3412 with GCC 8.2.1, mycopy(NULL, NULL, 0) returns 1 with -O0 and -O1. 3413 With -O2 the return value is 0 because the compiler infers that 3414 dest cannot be NULL because it was already used with memcpy() 3415 and thus the test for NULL gets optimized out. 3416 3417 In liblzma, if a null-pointer was passed to memcpy(), there were 3418 no checks for NULL *after* the memcpy() call, so I cautiously 3419 suspect that it shouldn't have caused bad behavior in practice, 3420 but it's hard to be sure, and the problematic cases had to be 3421 fixed anyway. 3422 3423 Thanks to Jeffrey Walton. 3424 3425 src/liblzma/common/common.c | 6 +++++- 3426 src/liblzma/lz/lz_decoder.c | 12 +++++++++--- 3427 src/liblzma/simple/simple_coder.c | 10 +++++++++- 3428 3 files changed, 23 insertions(+), 5 deletions(-) 3429 3430commit b4b83555c576e1d845a2b98a193b23c021437804 3431Author: Lasse Collin <lasse.collin@tukaani.org> 3432Date: 2019-05-11 20:56:08 +0300 3433 3434 Update THANKS. 3435 3436 THANKS | 1 + 3437 1 file changed, 1 insertion(+) 3438 3439commit 8d4906262b45557ed164cd74adb270e6ef7f6f03 3440Author: Lasse Collin <lasse.collin@tukaani.org> 3441Date: 2019-05-11 20:54:12 +0300 3442 3443 xz: Update xz man page date. 3444 3445 src/xz/xz.1 | 2 +- 3446 1 file changed, 1 insertion(+), 1 deletion(-) 3447 3448commit 0d318402f8a022f707622c72f8f1894ea476cf89 3449Author: Antoine Cœur <antoine.coeur@ef.com> 3450Date: 2019-05-08 13:30:57 +0800 3451 3452 spelling 3453 3454 Doxyfile.in | 2 +- 3455 NEWS | 2 +- 3456 src/liblzma/api/lzma/block.h | 2 +- 3457 src/liblzma/api/lzma/hardware.h | 2 +- 3458 src/liblzma/api/lzma/lzma12.h | 2 +- 3459 src/liblzma/api/lzma/vli.h | 2 +- 3460 src/liblzma/common/hardware_physmem.c | 2 +- 3461 src/liblzma/common/index.c | 4 ++-- 3462 src/liblzma/common/stream_encoder_mt.c | 2 +- 3463 src/liblzma/common/vli_decoder.c | 2 +- 3464 src/liblzma/lz/lz_decoder.c | 2 +- 3465 src/scripts/xzgrep.in | 2 +- 3466 src/xz/args.c | 2 +- 3467 src/xz/coder.c | 4 ++-- 3468 src/xz/main.c | 2 +- 3469 src/xz/mytime.h | 2 +- 3470 src/xz/private.h | 2 +- 3471 src/xz/xz.1 | 2 +- 3472 windows/build.bash | 2 +- 3473 19 files changed, 21 insertions(+), 21 deletions(-) 3474 3475commit aeb3be8ac4c4b06a745c3799b80b38159fb78b1a 3476Author: Lasse Collin <lasse.collin@tukaani.org> 3477Date: 2019-03-04 22:49:04 +0200 3478 3479 README: Update translation instructions. 3480 3481 XZ Utils is now part of the Translation Project 3482 <https://translationproject.org/>. 3483 3484 README | 32 +++++++++++++------------------- 3485 1 file changed, 13 insertions(+), 19 deletions(-) 3486 3487commit 0c238dc3feb0a3eea1e713feb8d338c8dfba9f74 3488Author: Lasse Collin <lasse.collin@tukaani.org> 3489Date: 2018-12-20 20:42:29 +0200 3490 3491 Update THANKS. 3492 3493 THANKS | 1 + 3494 1 file changed, 1 insertion(+) 3495 3496commit 3ca432d9cce4bf7e793de173dd22025b68611c42 3497Author: Lasse Collin <lasse.collin@tukaani.org> 3498Date: 2018-12-14 20:34:30 +0200 3499 3500 xz: Fix a crash in progress indicator when in passthru mode. 3501 3502 "xz -dcfv not_an_xz_file" crashed (all four options are 3503 required to trigger it). It caused xz to call 3504 lzma_get_progress(&strm, ...) when no coder was initialized 3505 in strm. In this situation strm.internal is NULL which leads 3506 to a crash in lzma_get_progress(). 3507 3508 The bug was introduced when xz started using lzma_get_progress() 3509 to get progress info for multi-threaded compression, so the 3510 bug is present in versions 5.1.3alpha and higher. 3511 3512 Thanks to Filip Palian <Filip.Palian@pjwstk.edu.pl> for 3513 the bug report. 3514 3515 src/xz/coder.c | 11 +++++++---- 3516 src/xz/message.c | 18 ++++++++++++++++-- 3517 src/xz/message.h | 3 ++- 3518 3 files changed, 25 insertions(+), 7 deletions(-) 3519 3520commit fcc419e3c3f77a8b6fc5056a86b1b8abbe266e62 3521Author: Lasse Collin <lasse.collin@tukaani.org> 3522Date: 2018-11-22 17:20:31 +0200 3523 3524 xz: Update man page timestamp. 3525 3526 src/xz/xz.1 | 2 +- 3527 1 file changed, 1 insertion(+), 1 deletion(-) 3528 3529commit 5a2fc3cd0194e55df329dd29f805299aaca5f32f 3530Author: Pavel Raiskup <praiskup@redhat.com> 3531Date: 2018-11-22 15:14:34 +0100 3532 3533 'have have' typos 3534 3535 src/xz/signals.c | 2 +- 3536 src/xz/xz.1 | 2 +- 3537 2 files changed, 2 insertions(+), 2 deletions(-) 3538 3539commit 7143b04fe49390807f355b1dad686a3d8c4dbdcf 3540Author: Lasse Collin <lasse.collin@tukaani.org> 3541Date: 2018-07-27 18:10:44 +0300 3542 3543 xzless: Rename unused variables to silence static analysers. 3544 3545 In this particular case I don't see this affecting readability 3546 of the code. 3547 3548 Thanks to Pavel Raiskup. 3549 3550 src/scripts/xzless.in | 2 +- 3551 1 file changed, 1 insertion(+), 1 deletion(-) 3552 3553commit 273c33297bb69621045ed19665eaf8338bcf4a50 3554Author: Lasse Collin <lasse.collin@tukaani.org> 3555Date: 2018-07-27 16:02:58 +0300 3556 3557 liblzma: Remove an always-true condition from lzma_index_cat(). 3558 3559 This should help static analysis tools to see that newg 3560 isn't leaked. 3561 3562 Thanks to Pavel Raiskup. 3563 3564 src/liblzma/common/index.c | 4 ++-- 3565 1 file changed, 2 insertions(+), 2 deletions(-) 3566 3567commit 65b4aba6d06d2cd24ba9ad01fa389c238ad8f352 3568Author: Lasse Collin <lasse.collin@tukaani.org> 3569Date: 2018-05-19 21:23:25 +0300 3570 3571 liblzma: Improve lzma_properties_decode() API documentation. 3572 3573 src/liblzma/api/lzma/filter.h | 7 ++++--- 3574 1 file changed, 4 insertions(+), 3 deletions(-) 3575 3576commit 531e78e5a253a3e2c4d4dd1505acaccee48f4083 3577Author: Lasse Collin <lasse.collin@tukaani.org> 3578Date: 2019-05-01 16:52:36 +0300 3579 3580 Update THANKS. 3581 3582 THANKS | 1 + 3583 1 file changed, 1 insertion(+) 3584 3585commit 905de7e93528ca5a47039e7e1e5270163f9fc67e 3586Author: Lasse Collin <lasse.collin@tukaani.org> 3587Date: 2019-05-01 16:43:16 +0300 3588 3589 Windows: Update VS version in windows/vs2019/config.h. 3590 3591 windows/vs2019/config.h | 2 +- 3592 1 file changed, 1 insertion(+), 1 deletion(-) 3593 3594commit 0ffd30e172fd18cc619823b2a86448bf56a67e22 3595Author: Julien Marrec <julien.marrec@gmail.com> 3596Date: 2019-04-25 17:44:06 +0200 3597 3598 Windows: Upgrade solution itself 3599 3600 windows/vs2019/xz_win.sln | 7 +++++-- 3601 1 file changed, 5 insertions(+), 2 deletions(-) 3602 3603commit c2ef96685fc7ca36311649eeb2284b9808292040 3604Author: Julien Marrec <julien.marrec@gmail.com> 3605Date: 2019-04-25 17:40:24 +0200 3606 3607 Windows: Upgrade solution with VS2019 3608 3609 windows/vs2019/liblzma.vcxproj | 15 ++++++++------- 3610 windows/vs2019/liblzma_dll.vcxproj | 15 ++++++++------- 3611 2 files changed, 16 insertions(+), 14 deletions(-) 3612 3613commit 25fccaf00bea399d8aa026e5b8fa254ce196e6e0 3614Author: Julien Marrec <julien.marrec@gmail.com> 3615Date: 2019-04-25 17:39:32 +0200 3616 3617 Windows: Duplicate windows/vs2017 before upgrading 3618 3619 windows/vs2019/config.h | 148 ++++++++++++++ 3620 windows/vs2019/liblzma.vcxproj | 354 ++++++++++++++++++++++++++++++++++ 3621 windows/vs2019/liblzma_dll.vcxproj | 383 +++++++++++++++++++++++++++++++++++++ 3622 windows/vs2019/xz_win.sln | 48 +++++ 3623 4 files changed, 933 insertions(+) 3624 3625commit 1424078d6328291c7c524b64328ce9660617cb24 3626Author: Lasse Collin <lasse.collin@tukaani.org> 3627Date: 2019-01-13 17:29:23 +0200 3628 3629 Windows/VS2017: Omit WindowsTargetPlatformVersion from project files. 3630 3631 I understood that if a WTPV is specified, it's often wrong 3632 because different VS installations have different SDK version 3633 installed. Omitting the WTPV tag makes VS2017 default to 3634 Windows SDK 8.1 which often is also missing, so in any case 3635 people may need to specify the WTPV before building. But some 3636 day in the future a missing WTPV tag will start to default to 3637 the latest installed SDK which sounds reasonable: 3638 3639 https://developercommunity.visualstudio.com/content/problem/140294/windowstargetplatformversion-makes-it-impossible-t.html 3640 3641 Thanks to "dom". 3642 3643 windows/INSTALL-MSVC.txt | 4 ++++ 3644 windows/vs2017/liblzma.vcxproj | 1 - 3645 windows/vs2017/liblzma_dll.vcxproj | 1 - 3646 3 files changed, 4 insertions(+), 2 deletions(-) 3647 3648commit b5be61cc06088bb07f488f9baf7d447ff47b37c1 3649Author: Lasse Collin <lasse.collin@tukaani.org> 3650Date: 2018-04-29 19:00:06 +0300 3651 3652 Bump version and soname for 5.2.4. 3653 3654 src/liblzma/Makefile.am | 2 +- 3655 src/liblzma/api/lzma/version.h | 2 +- 3656 2 files changed, 2 insertions(+), 2 deletions(-) 3657 3658commit c47fa6d06745bb2e99866e76b81ac7a9c5a8bfec 3659Author: Lasse Collin <lasse.collin@tukaani.org> 3660Date: 2018-04-29 18:48:00 +0300 3661 3662 extra/scanlzma: Fix compiler warnings. 3663 3664 extra/scanlzma/scanlzma.c | 6 +++++- 3665 1 file changed, 5 insertions(+), 1 deletion(-) 3666 3667commit 7b350fe21aa4fd6495a3b6188a40e3f1ae7c0edf 3668Author: Lasse Collin <lasse.collin@tukaani.org> 3669Date: 2018-04-29 18:15:37 +0300 3670 3671 Add NEWS for 5.2.4. 3672 3673 NEWS | 27 +++++++++++++++++++++++++++ 3674 1 file changed, 27 insertions(+) 3675 3676commit 5801591162a280aa52d156dfde42c531ec7fd8b6 3677Author: Lasse Collin <lasse.collin@tukaani.org> 3678Date: 2018-02-06 19:36:30 +0200 3679 3680 Update THANKS. 3681 3682 THANKS | 2 ++ 3683 1 file changed, 2 insertions(+) 3684 3685commit c4a616f4536146f8906e1b4412eefeec07b28fae 3686Author: Ben Boeckel <mathstuf@gmail.com> 3687Date: 2018-01-29 13:58:18 -0500 3688 3689 nothrow: use noexcept for C++11 and newer 3690 3691 In C++11, the `throw()` specifier is deprecated and `noexcept` is 3692 preffered instead. 3693 3694 src/liblzma/api/lzma.h | 6 +++++- 3695 1 file changed, 5 insertions(+), 1 deletion(-) 3696 3697commit 0b8947782ff3c5ef830a7f85412e44dcf3cdeb77 3698Author: Lasse Collin <lasse.collin@tukaani.org> 3699Date: 2018-02-06 18:02:48 +0200 3700 3701 liblzma: Remove incorrect #ifdef from range_common.h. 3702 3703 In most cases it was harmless but it could affect some 3704 custom build systems. 3705 3706 Thanks to Pippijn van Steenhoven. 3707 3708 src/liblzma/rangecoder/range_common.h | 4 +--- 3709 1 file changed, 1 insertion(+), 3 deletions(-) 3710 3711commit 48f3b9f73ffea7f55d5678997aba0e79d2e82168 3712Author: Lasse Collin <lasse.collin@tukaani.org> 3713Date: 2018-01-10 22:10:39 +0200 3714 3715 Update THANKS. 3716 3717 THANKS | 1 + 3718 1 file changed, 1 insertion(+) 3719 3720commit a3ce3e902342be37c626a561ce3d9ffcf27d0f94 3721Author: Lasse Collin <lasse.collin@tukaani.org> 3722Date: 2018-01-10 21:54:27 +0200 3723 3724 tuklib_integer: New Intel C compiler needs immintrin.h. 3725 3726 Thanks to Melanie Blower (Intel) for the patch. 3727 3728 src/common/tuklib_integer.h | 11 +++++++++++ 3729 1 file changed, 11 insertions(+) 3730 3731commit 4505ca483985f88c6923c05a43b4327feaab83b1 3732Author: Lasse Collin <lasse.collin@tukaani.org> 3733Date: 2017-09-24 20:04:24 +0300 3734 3735 Update THANKS. 3736 3737 THANKS | 1 + 3738 1 file changed, 1 insertion(+) 3739 3740commit 1ef3cc226e3ce173575c218238b71a4eecabc470 3741Author: Lasse Collin <lasse.collin@tukaani.org> 3742Date: 2017-09-16 20:36:20 +0300 3743 3744 Windows: Fix paths in VS project files. 3745 3746 Some paths use slashes instead of backslashes as directory 3747 separators... now it should work (I tested VS2013 version). 3748 3749 windows/vs2013/liblzma.vcxproj | 12 ++++++------ 3750 windows/vs2013/liblzma_dll.vcxproj | 24 ++++++++++++------------ 3751 windows/vs2017/liblzma.vcxproj | 12 ++++++------ 3752 windows/vs2017/liblzma_dll.vcxproj | 24 ++++++++++++------------ 3753 4 files changed, 36 insertions(+), 36 deletions(-) 3754 3755commit e775d2a8189d24f60470e6e49d8af881df3a1680 3756Author: Lasse Collin <lasse.collin@tukaani.org> 3757Date: 2017-09-16 12:54:23 +0300 3758 3759 Windows: Add project files for VS2017. 3760 3761 These files match the v5.2 branch (no file info decoder). 3762 3763 windows/vs2017/config.h | 148 ++++++++++++++ 3764 windows/vs2017/liblzma.vcxproj | 355 ++++++++++++++++++++++++++++++++++ 3765 windows/vs2017/liblzma_dll.vcxproj | 384 +++++++++++++++++++++++++++++++++++++ 3766 windows/vs2017/xz_win.sln | 48 +++++ 3767 4 files changed, 935 insertions(+) 3768 3769commit 10e02e0fbb6e2173f8b41f6e39b7b570f47dd74d 3770Author: Lasse Collin <lasse.collin@tukaani.org> 3771Date: 2017-09-16 12:39:43 +0300 3772 3773 Windows: Move VS2013 files into windows/vs2013 directory. 3774 3775 windows/{ => vs2013}/config.h | 0 3776 windows/{ => vs2013}/liblzma.vcxproj | 278 +++++++++++++++--------------- 3777 windows/{ => vs2013}/liblzma_dll.vcxproj | 280 +++++++++++++++---------------- 3778 windows/{ => vs2013}/xz_win.sln | 0 3779 4 files changed, 279 insertions(+), 279 deletions(-) 3780 3781commit 06eebd4543196ded36fa9b8b9544195b38b24ef2 3782Author: Lasse Collin <lasse.collin@tukaani.org> 3783Date: 2017-08-14 20:08:33 +0300 3784 3785 Fix or hide warnings from GCC 7's -Wimplicit-fallthrough. 3786 3787 src/liblzma/lzma/lzma_decoder.c | 6 ++++++ 3788 src/xz/list.c | 2 ++ 3789 2 files changed, 8 insertions(+) 3790 3791commit ea4ea1dffafebaa8b2770bf3eca46900e4dd22dc 3792Author: Alexey Tourbin <alexey.tourbin@gmail.com> 3793Date: 2017-05-16 23:56:35 +0300 3794 3795 Docs: Fix a typo in a comment in doc/examples/02_decompress.c. 3796 3797 doc/examples/02_decompress.c | 2 +- 3798 1 file changed, 1 insertion(+), 1 deletion(-) 3799 3800commit eb2ef4c79bf405ea0d215f3b1df3d0eaf5e1d27b 3801Author: Lasse Collin <lasse.collin@tukaani.org> 3802Date: 2017-05-23 18:34:43 +0300 3803 3804 xz: Fix "xz --list --robot missing_or_bad_file.xz". 3805 3806 It ended up printing an uninitialized char-array when trying to 3807 print the check names (column 7) on the "totals" line. 3808 3809 This also changes the column 12 (minimum xz version) to 3810 50000002 (xz 5.0.0) instead of 0 when there are no valid 3811 input files. 3812 3813 Thanks to kidmin for the bug report. 3814 3815 src/xz/list.c | 8 ++++++-- 3816 1 file changed, 6 insertions(+), 2 deletions(-) 3817 3818commit 3ea5dbd9b0d79048e336e40cef3b6d814fb74e13 3819Author: Lasse Collin <lasse.collin@tukaani.org> 3820Date: 2017-04-24 19:48:47 +0300 3821 3822 Build: Omit pre-5.0.0 entries from the generated ChangeLog. 3823 3824 It makes ChangeLog significantly smaller. 3825 3826 Makefile.am | 3 ++- 3827 1 file changed, 2 insertions(+), 1 deletion(-) 3828 3829commit bae24675936df99064de1502593c006bd902594b 3830Author: Lasse Collin <lasse.collin@tukaani.org> 3831Date: 2017-04-24 19:30:22 +0300 3832 3833 Update the Git repository URL to HTTPS in ChangeLog. 3834 3835 ChangeLog | 2 +- 3836 1 file changed, 1 insertion(+), 1 deletion(-) 3837 3838commit 70f479211973b5361f4d7cb08ba5be69b4266e7a 3839Author: Lasse Collin <lasse.collin@tukaani.org> 3840Date: 2017-04-19 22:17:35 +0300 3841 3842 Update the home page URLs to HTTPS. 3843 3844 COPYING | 2 +- 3845 README | 2 +- 3846 configure.ac | 2 +- 3847 doc/faq.txt | 4 ++-- 3848 dos/config.h | 2 +- 3849 src/common/common_w32res.rc | 2 +- 3850 src/xz/xz.1 | 6 +++--- 3851 src/xzdec/xzdec.1 | 4 ++-- 3852 windows/README-Windows.txt | 2 +- 3853 windows/config.h | 2 +- 3854 10 files changed, 14 insertions(+), 14 deletions(-) 3855 3856commit 2a4b2fa75d06a097261a02ecd3cf2b6d449bf754 3857Author: Lasse Collin <lasse.collin@tukaani.org> 3858Date: 2017-03-30 22:01:54 +0300 3859 3860 xz: Use POSIX_FADV_RANDOM for in "xz --list" mode. 3861 3862 xz --list is random access so POSIX_FADV_SEQUENTIAL was clearly 3863 wrong. 3864 3865 src/xz/file_io.c | 10 ++++++++-- 3866 1 file changed, 8 insertions(+), 2 deletions(-) 3867 3868commit eb25743ade39170cffd9566a1aae272098cce216 3869Author: Lasse Collin <lasse.collin@tukaani.org> 3870Date: 2017-03-30 19:47:45 +0300 3871 3872 liblzma: Fix lzma_memlimit_set(strm, 0). 3873 3874 The 0 got treated specially in a buggy way and as a result 3875 the function did nothing. The API doc said that 0 was supposed 3876 to return LZMA_PROG_ERROR but it didn't. 3877 3878 Now 0 is treated as if 1 had been specified. This is done because 3879 0 is already used to indicate an error from lzma_memlimit_get() 3880 and lzma_memusage(). 3881 3882 In addition, lzma_memlimit_set() no longer checks that the new 3883 limit is at least LZMA_MEMUSAGE_BASE. It's counter-productive 3884 for the Index decoder and was actually needed only by the 3885 auto decoder. Auto decoder has now been modified to check for 3886 LZMA_MEMUSAGE_BASE. 3887 3888 src/liblzma/api/lzma/base.h | 7 ++++++- 3889 src/liblzma/common/auto_decoder.c | 3 +++ 3890 src/liblzma/common/common.c | 6 ++++-- 3891 3 files changed, 13 insertions(+), 3 deletions(-) 3892 3893commit ef36c6362f3f3853f21b8a6359bcd06576ebf207 3894Author: Lasse Collin <lasse.collin@tukaani.org> 3895Date: 2017-03-30 19:16:55 +0300 3896 3897 liblzma: Similar memlimit fix for stream_, alone_, and auto_decoder. 3898 3899 src/liblzma/api/lzma/container.h | 21 +++++++++++++++++---- 3900 src/liblzma/common/alone_decoder.c | 5 +---- 3901 src/liblzma/common/auto_decoder.c | 5 +---- 3902 src/liblzma/common/stream_decoder.c | 5 +---- 3903 4 files changed, 20 insertions(+), 16 deletions(-) 3904 3905commit 57616032650f03840480b696d7878acdd2065521 3906Author: Lasse Collin <lasse.collin@tukaani.org> 3907Date: 2017-03-30 18:58:18 +0300 3908 3909 liblzma: Fix handling of memlimit == 0 in lzma_index_decoder(). 3910 3911 It returned LZMA_PROG_ERROR, which was done to avoid zero as 3912 the limit (because it's a special value elsewhere), but using 3913 LZMA_PROG_ERROR is simply inconvenient and can cause bugs. 3914 3915 The fix/workaround is to treat 0 as if it were 1 byte. It's 3916 effectively the same thing. The only weird consequence is 3917 that then lzma_memlimit_get() will return 1 even when 0 was 3918 specified as the limit. 3919 3920 This fixes a very rare corner case in xz --list where a specific 3921 memory usage limit and a multi-stream file could print the 3922 error message "Internal error (bug)" instead of saying that 3923 the memory usage limit is too low. 3924 3925 src/liblzma/api/lzma/index.h | 18 +++++++++++------- 3926 src/liblzma/common/index_decoder.c | 4 ++-- 3927 2 files changed, 13 insertions(+), 9 deletions(-) 3928 3929commit 3d566cd519017eee1a400e7961ff14058dfaf33c 3930Author: Lasse Collin <lasse.collin@tukaani.org> 3931Date: 2016-12-30 13:26:36 +0200 3932 3933 Bump version and soname for 5.2.3. 3934 3935 src/liblzma/Makefile.am | 2 +- 3936 src/liblzma/api/lzma/version.h | 2 +- 3937 2 files changed, 2 insertions(+), 2 deletions(-) 3938 3939commit 053e624fe33795e779ff736f16ce44a129c829b5 3940Author: Lasse Collin <lasse.collin@tukaani.org> 3941Date: 2016-12-30 13:25:10 +0200 3942 3943 Update NEWS for 5.2.3. 3944 3945 NEWS | 39 +++++++++++++++++++++++++++++++++++++++ 3946 1 file changed, 39 insertions(+) 3947 3948commit cae412b2b77d7fd88d187ed7659331709311f80d 3949Author: Lasse Collin <lasse.collin@tukaani.org> 3950Date: 2015-04-01 14:45:25 +0300 3951 3952 xz: Fix the Capsicum rights on user_abort_pipe. 3953 3954 src/xz/file_io.c | 6 +++++- 3955 1 file changed, 5 insertions(+), 1 deletion(-) 3956 3957commit 9ccbae41000572193b9a09e7102f9e84dc6d96de 3958Author: Lasse Collin <lasse.collin@tukaani.org> 3959Date: 2016-12-28 21:05:22 +0200 3960 3961 Mention potential sandboxing bugs in INSTALL. 3962 3963 INSTALL | 5 ++++- 3964 1 file changed, 4 insertions(+), 1 deletion(-) 3965 3966commit e013a337d3de77cce24360dffe956ea2339489b6 3967Author: Lasse Collin <lasse.collin@tukaani.org> 3968Date: 2016-11-21 20:24:50 +0200 3969 3970 liblzma: Avoid multiple definitions of lzma_coder structures. 3971 3972 Only one definition was visible in a translation unit. 3973 It avoided a few casts and temp variables but seems that 3974 this hack doesn't work with link-time optimizations in compilers 3975 as it's not C99/C11 compliant. 3976 3977 Fixes: 3978 http://www.mail-archive.com/xz-devel@tukaani.org/msg00279.html 3979 3980 src/liblzma/common/alone_decoder.c | 44 +++++---- 3981 src/liblzma/common/alone_encoder.c | 34 ++++--- 3982 src/liblzma/common/auto_decoder.c | 35 ++++--- 3983 src/liblzma/common/block_decoder.c | 41 ++++---- 3984 src/liblzma/common/block_encoder.c | 40 ++++---- 3985 src/liblzma/common/common.h | 18 ++-- 3986 src/liblzma/common/index_decoder.c | 33 ++++--- 3987 src/liblzma/common/index_encoder.c | 16 ++-- 3988 src/liblzma/common/stream_decoder.c | 50 +++++----- 3989 src/liblzma/common/stream_encoder.c | 56 ++++++----- 3990 src/liblzma/common/stream_encoder_mt.c | 124 ++++++++++++++----------- 3991 src/liblzma/delta/delta_common.c | 25 ++--- 3992 src/liblzma/delta/delta_decoder.c | 6 +- 3993 src/liblzma/delta/delta_encoder.c | 12 ++- 3994 src/liblzma/delta/delta_private.h | 4 +- 3995 src/liblzma/lz/lz_decoder.c | 60 ++++++------ 3996 src/liblzma/lz/lz_decoder.h | 13 ++- 3997 src/liblzma/lz/lz_encoder.c | 57 +++++++----- 3998 src/liblzma/lz/lz_encoder.h | 9 +- 3999 src/liblzma/lzma/lzma2_decoder.c | 32 ++++--- 4000 src/liblzma/lzma/lzma2_encoder.c | 51 +++++----- 4001 src/liblzma/lzma/lzma_decoder.c | 27 +++--- 4002 src/liblzma/lzma/lzma_encoder.c | 29 +++--- 4003 src/liblzma/lzma/lzma_encoder.h | 9 +- 4004 src/liblzma/lzma/lzma_encoder_optimum_fast.c | 3 +- 4005 src/liblzma/lzma/lzma_encoder_optimum_normal.c | 23 ++--- 4006 src/liblzma/lzma/lzma_encoder_private.h | 6 +- 4007 src/liblzma/simple/arm.c | 2 +- 4008 src/liblzma/simple/armthumb.c | 2 +- 4009 src/liblzma/simple/ia64.c | 2 +- 4010 src/liblzma/simple/powerpc.c | 2 +- 4011 src/liblzma/simple/simple_coder.c | 61 ++++++------ 4012 src/liblzma/simple/simple_private.h | 12 +-- 4013 src/liblzma/simple/sparc.c | 2 +- 4014 src/liblzma/simple/x86.c | 15 +-- 4015 35 files changed, 532 insertions(+), 423 deletions(-) 4016 4017commit 8e0f1af3dcaec00a3879cce8ad7441edc6359d1c 4018Author: Lasse Collin <lasse.collin@tukaani.org> 4019Date: 2016-12-26 20:50:25 +0200 4020 4021 Document --enable-sandbox configure option in INSTALL. 4022 4023 INSTALL | 25 +++++++++++++++++++++++++ 4024 1 file changed, 25 insertions(+) 4025 4026commit ce2542d220de06acd618fd9f5c0a6683029fb4eb 4027Author: Lasse Collin <lasse.collin@tukaani.org> 4028Date: 2015-03-31 22:19:34 +0300 4029 4030 xz: Add support for sandboxing with Capsicum (disabled by default). 4031 4032 In the v5.2 branch this feature is considered experimental 4033 and thus disabled by default. 4034 4035 The sandboxing is used conditionally as described in main.c. 4036 This isn't optimal but it was much easier to implement than 4037 a full sandboxing solution and it still covers the most common 4038 use cases where xz is writing to standard output. This should 4039 have practically no effect on performance even with small files 4040 as fork() isn't needed. 4041 4042 C and locale libraries can open files as needed. This has been 4043 fine in the past, but it's a problem with things like Capsicum. 4044 io_sandbox_enter() tries to ensure that various locale-related 4045 files have been loaded before cap_enter() is called, but it's 4046 possible that there are other similar problems which haven't 4047 been seen yet. 4048 4049 Currently Capsicum is available on FreeBSD 10 and later 4050 and there is a port to Linux too. 4051 4052 Thanks to Loganaden Velvindron for help. 4053 4054 configure.ac | 41 +++++++++++++++++++++++++++ 4055 src/xz/Makefile.am | 2 +- 4056 src/xz/file_io.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4057 src/xz/file_io.h | 6 ++++ 4058 src/xz/main.c | 18 ++++++++++++ 4059 src/xz/private.h | 4 +++ 4060 6 files changed, 151 insertions(+), 1 deletion(-) 4061 4062commit 3ca1d5e6320111043e19434da881065fadafa0e4 4063Author: Lasse Collin <lasse.collin@tukaani.org> 4064Date: 2015-03-31 21:12:30 +0300 4065 4066 Fix bugs and otherwise improve ax_check_capsicum.m4. 4067 4068 AU_ALIAS was removed because the new version is incompatible 4069 with the old version. 4070 4071 It no longer checks for <sys/capability.h> separately. 4072 It's enough to test for it as part of AC_CHECK_DECL. 4073 The defines HAVE_CAPSICUM_SYS_CAPSICUM_H and 4074 HAVE_CAPSICUM_SYS_CAPABILITY_H were removed as unneeded. 4075 HAVE_SYS_CAPSICUM_H from AC_CHECK_HEADERS is enough. 4076 4077 It no longer does a useless search for the Capsicum library 4078 if the header wasn't found. 4079 4080 Fixed a bug in ACTION-IF-FOUND (the first argument). Specifying 4081 the argument omitted the default action but the given action 4082 wasn't used instead. 4083 4084 AC_DEFINE([HAVE_CAPSICUM]) is now always called when Capsicum 4085 support is found. Previously it was part of the default 4086 ACTION-IF-FOUND which a custom action would override. Now 4087 the default action only prepends ${CAPSICUM_LIB} to LIBS. 4088 4089 The documentation was updated. 4090 4091 Since there as no serial number, "#serial 2" was added. 4092 4093 m4/ax_check_capsicum.m4 | 103 ++++++++++++++++++++++++------------------------ 4094 1 file changed, 51 insertions(+), 52 deletions(-) 4095 4096commit 5f3a742b64197fe8bedb6f05fc6ce5d177d11145 4097Author: Lasse Collin <lasse.collin@tukaani.org> 4098Date: 2015-03-31 19:20:24 +0300 4099 4100 Add m4/ax_check_capsicum.m4 for detecting Capsicum support. 4101 4102 The file was loaded from this web page: 4103 https://github.com/google/capsicum-test/blob/dev/autoconf/m4/ax_check_capsicum.m4 4104 4105 Thanks to Loganaden Velvindron for pointing it out for me. 4106 4107 m4/ax_check_capsicum.m4 | 86 +++++++++++++++++++++++++++++++++++++++++++++++++ 4108 1 file changed, 86 insertions(+) 4109 4110commit d74377e62b4c649e40294dd441de72c0f092e67c 4111Author: Lasse Collin <lasse.collin@tukaani.org> 4112Date: 2015-10-12 20:29:09 +0300 4113 4114 liblzma: Fix a memory leak in error path of lzma_index_dup(). 4115 4116 lzma_index_dup() calls index_dup_stream() which, in case of 4117 an error, calls index_stream_end() to free memory allocated 4118 by index_stream_init(). However, it illogically didn't 4119 actually free the memory. To make it logical, the tree 4120 handling code was modified a bit in addition to changing 4121 index_stream_end(). 4122 4123 Thanks to Evan Nemerson for the bug report. 4124 4125 src/liblzma/common/index.c | 18 +++++++++--------- 4126 1 file changed, 9 insertions(+), 9 deletions(-) 4127 4128commit f580732216dcf971f3f006fe8e01cd4979e1d964 4129Author: Lasse Collin <lasse.collin@tukaani.org> 4130Date: 2016-10-24 18:53:25 +0300 4131 4132 Update THANKS. 4133 4134 THANKS | 1 + 4135 1 file changed, 1 insertion(+) 4136 4137commit 88d7a7fd153bf1355cdf798ffdac7443d0169afc 4138Author: Lasse Collin <lasse.collin@tukaani.org> 4139Date: 2016-10-24 18:51:36 +0300 4140 4141 tuklib_cpucores: Add support for sched_getaffinity(). 4142 4143 It's available in glibc (GNU/Linux, GNU/kFreeBSD). It's better 4144 than sysconf(_SC_NPROCESSORS_ONLN) because sched_getaffinity() 4145 gives the number of cores available to the process instead of 4146 the total number of cores online. 4147 4148 As a side effect, this commit fixes a bug on GNU/kFreeBSD where 4149 configure would detect the FreeBSD-specific cpuset_getaffinity() 4150 but it wouldn't actually work because on GNU/kFreeBSD it requires 4151 using -lfreebsd-glue when linking. Now the glibc-specific function 4152 will be used instead. 4153 4154 Thanks to Sebastian Andrzej Siewior for the original patch 4155 and testing. 4156 4157 m4/tuklib_cpucores.m4 | 30 +++++++++++++++++++++++++++++- 4158 src/common/tuklib_cpucores.c | 9 +++++++++ 4159 2 files changed, 38 insertions(+), 1 deletion(-) 4160 4161commit 51baf684376903dbeddd840582bfdf9fa91b311b 4162Author: Lasse Collin <lasse.collin@tukaani.org> 4163Date: 2016-06-30 20:27:36 +0300 4164 4165 xz: Fix copying of timestamps on Windows. 4166 4167 xz used to call utime() on Windows, but its result gets lost 4168 on close(). Using _futime() seems to work. 4169 4170 Thanks to Martok for reporting the bug: 4171 http://www.mail-archive.com/xz-devel@tukaani.org/msg00261.html 4172 4173 configure.ac | 2 +- 4174 src/xz/file_io.c | 18 ++++++++++++++++++ 4175 2 files changed, 19 insertions(+), 1 deletion(-) 4176 4177commit 1ddc479851139d6e8202e5835421bfe6578d9e07 4178Author: Lasse Collin <lasse.collin@tukaani.org> 4179Date: 2016-06-16 22:46:02 +0300 4180 4181 xz: Silence warnings from -Wlogical-op. 4182 4183 Thanks to Evan Nemerson. 4184 4185 src/xz/file_io.c | 12 ++++++++++-- 4186 1 file changed, 10 insertions(+), 2 deletions(-) 4187 4188commit be647ff5ed5a1c244a65722af6ce250259f3b14a 4189Author: Lasse Collin <lasse.collin@tukaani.org> 4190Date: 2016-04-10 20:55:49 +0300 4191 4192 Build: Fix = to += for xz_SOURCES in src/xz/Makefile.am. 4193 4194 Thanks to Christian Kujau. 4195 4196 src/xz/Makefile.am | 2 +- 4197 1 file changed, 1 insertion(+), 1 deletion(-) 4198 4199commit fb6d50c15343831f35305982cefa82053099191d 4200Author: Lasse Collin <lasse.collin@tukaani.org> 4201Date: 2016-04-10 20:54:17 +0300 4202 4203 Build: Bump GNU Gettext version requirement to 0.19. 4204 4205 It silences a few warnings and most people probably have 4206 0.19 even on stable distributions. 4207 4208 Thanks to Christian Kujau. 4209 4210 configure.ac | 2 +- 4211 1 file changed, 1 insertion(+), 1 deletion(-) 4212 4213commit 74f8dad9f912a2993768d93d108ea2b0b2c196e0 4214Author: Lasse Collin <lasse.collin@tukaani.org> 4215Date: 2016-03-13 20:21:49 +0200 4216 4217 liblzma: Disable external SHA-256 by default. 4218 4219 This is the sane thing to do. The conflict with OpenSSL 4220 on some OSes and especially that the OS-provided versions 4221 can be significantly slower makes it clear that it was 4222 a mistake to have the external SHA-256 support enabled by 4223 default. 4224 4225 Those who want it can now pass --enable-external-sha256 to 4226 configure. INSTALL was updated with notes about OSes where 4227 this can be a bad idea. 4228 4229 The SHA-256 detection code in configure.ac had some bugs that 4230 could lead to a build failure in some situations. These were 4231 fixed, although it doesn't matter that much now that the 4232 external SHA-256 is disabled by default. 4233 4234 MINIX >= 3.2.0 uses NetBSD's libc and thus has SHA256_Init 4235 in libc instead of libutil. Support for the libutil version 4236 was removed. 4237 4238 INSTALL | 36 ++++++++++++++++++++++ 4239 configure.ac | 76 +++++++++++++++++++++++------------------------ 4240 src/liblzma/check/check.h | 16 ++++------ 4241 3 files changed, 79 insertions(+), 49 deletions(-) 4242 4243commit ea7f6ff04cb5bb1498088eb09960a4c3f13dfe39 4244Author: Lasse Collin <lasse.collin@tukaani.org> 4245Date: 2016-03-10 20:27:05 +0200 4246 4247 Update THANKS. 4248 4249 THANKS | 1 + 4250 1 file changed, 1 insertion(+) 4251 4252commit d0e018016b311232e82d9a98dc68f1e3dabce794 4253Author: Lasse Collin <lasse.collin@tukaani.org> 4254Date: 2016-03-10 20:26:49 +0200 4255 4256 Build: Avoid SHA256_Init on FreeBSD and MINIX 3. 4257 4258 On FreeBSD 10 and older, SHA256_Init from libmd conflicts 4259 with libcrypto from OpenSSL. The OpenSSL version has 4260 different sizeof(SHA256_CTX) and it can cause weird 4261 problems if wrong SHA256_Init gets used. 4262 4263 Looking at the source, MINIX 3 seems to have a similar issue but 4264 I'm not sure. To be safe, I disabled SHA256_Init on MINIX 3 too. 4265 4266 NetBSD has SHA256_Init in libc and they had a similar problem, 4267 but they already fixed it in 2009. 4268 4269 Thanks to Jim Wilcoxson for the bug report that helped 4270 in finding the problem. 4271 4272 configure.ac | 27 +++++++++++++++++++++------ 4273 1 file changed, 21 insertions(+), 6 deletions(-) 4274 4275commit 5daae123915f32a4ed6dc948b831533c2d1beec3 4276Author: Lasse Collin <lasse.collin@tukaani.org> 4277Date: 2015-11-08 20:16:10 +0200 4278 4279 tuklib_physmem: Hopefully silence a warning on Windows. 4280 4281 src/common/tuklib_physmem.c | 3 ++- 4282 1 file changed, 2 insertions(+), 1 deletion(-) 4283 4284commit 491acc406e098167ccb7fce0728b94c2f32cff9f 4285Author: Lasse Collin <lasse.collin@tukaani.org> 4286Date: 2015-11-04 23:17:43 +0200 4287 4288 Update THANKS. 4289 4290 THANKS | 1 + 4291 1 file changed, 1 insertion(+) 4292 4293commit 8173ff8790ad3502d04e1c07d014cb84a3b8187b 4294Author: Lasse Collin <lasse.collin@tukaani.org> 4295Date: 2015-11-04 23:14:00 +0200 4296 4297 liblzma: Make Valgrind happier with optimized (gcc -O2) liblzma. 4298 4299 When optimizing, GCC can reorder code so that an uninitialized 4300 value gets used in a comparison, which makes Valgrind unhappy. 4301 It doesn't happen when compiled with -O0, which I tend to use 4302 when running Valgrind. 4303 4304 Thanks to Rich Prohaska. I remember this being mentioned long 4305 ago by someone else but nothing was done back then. 4306 4307 src/liblzma/lz/lz_encoder.c | 4 ++++ 4308 1 file changed, 4 insertions(+) 4309 4310commit 013de2b5ab8094d2c82a2771f3d143eeb656eda9 4311Author: Lasse Collin <lasse.collin@tukaani.org> 4312Date: 2015-11-03 20:55:45 +0200 4313 4314 liblzma: Rename lzma_presets.c back to lzma_encoder_presets.c. 4315 4316 It would be too annoying to update other build systems 4317 just because of this. 4318 4319 src/liblzma/lzma/Makefile.inc | 2 +- 4320 src/liblzma/lzma/{lzma_presets.c => lzma_encoder_presets.c} | 2 +- 4321 2 files changed, 2 insertions(+), 2 deletions(-) 4322 4323commit a322f70ad96de88968c2c36e6a36bc08ae30bd20 4324Author: Lasse Collin <lasse.collin@tukaani.org> 4325Date: 2015-11-03 20:47:07 +0200 4326 4327 Build: Disable xzdec, lzmadec, and lzmainfo when they cannot be built. 4328 4329 They all need decoder support and if that isn't available, 4330 there's no point trying to build them. 4331 4332 configure.ac | 3 +++ 4333 1 file changed, 3 insertions(+) 4334 4335commit 8ea49606cf6427e32319de7693eca9e43f1c8ad6 4336Author: Lasse Collin <lasse.collin@tukaani.org> 4337Date: 2015-11-03 20:35:19 +0200 4338 4339 Build: Simplify $enable_{encoders,decoders} usage a bit. 4340 4341 configure.ac | 6 ++++-- 4342 1 file changed, 4 insertions(+), 2 deletions(-) 4343 4344commit 42131a25e52bfe400acfa7df93469a96bb78bb78 4345Author: Lasse Collin <lasse.collin@tukaani.org> 4346Date: 2015-11-03 20:31:31 +0200 4347 4348 Windows/MSVC: Update config.h. 4349 4350 windows/config.h | 6 ++++++ 4351 1 file changed, 6 insertions(+) 4352 4353commit e9184e87cc989d14c7413e6adb3eca98f6ae0290 4354Author: Lasse Collin <lasse.collin@tukaani.org> 4355Date: 2015-11-03 20:29:58 +0200 4356 4357 DOS: Update config.h. 4358 4359 dos/config.h | 6 ++++++ 4360 1 file changed, 6 insertions(+) 4361 4362commit 2296778f3c9a1e3a8699973b09dd3610b8baa402 4363Author: Lasse Collin <lasse.collin@tukaani.org> 4364Date: 2015-11-03 20:29:33 +0200 4365 4366 xz: Make xz buildable even when encoders or decoders are disabled. 4367 4368 The patch is quite long but it's mostly about adding new #ifdefs 4369 to omit code when encoders or decoders have been disabled. 4370 4371 This adds two new #defines to config.h: HAVE_ENCODERS and 4372 HAVE_DECODERS. 4373 4374 configure.ac | 4 ++++ 4375 src/xz/Makefile.am | 8 ++++++-- 4376 src/xz/args.c | 16 ++++++++++++++++ 4377 src/xz/coder.c | 33 +++++++++++++++++++++++++-------- 4378 src/xz/main.c | 9 +++++++-- 4379 src/xz/private.h | 5 ++++- 4380 6 files changed, 62 insertions(+), 13 deletions(-) 4381 4382commit 97a3109281e475d9cf1b5095237d672fa0ad25e5 4383Author: Lasse Collin <lasse.collin@tukaani.org> 4384Date: 2015-11-03 18:06:40 +0200 4385 4386 Build: Build LZMA1/2 presets also when only decoder is wanted. 4387 4388 People shouldn't rely on the presets when decoding raw streams, 4389 but xz uses the presets as the starting point for raw decoder 4390 options anyway. 4391 4392 lzma_encocder_presets.c was renamed to lzma_presets.c to 4393 make it clear it's not used solely by the encoder code. 4394 4395 src/liblzma/lzma/Makefile.inc | 6 +++++- 4396 src/liblzma/lzma/{lzma_encoder_presets.c => lzma_presets.c} | 3 ++- 4397 2 files changed, 7 insertions(+), 2 deletions(-) 4398 4399commit dc6b78d7f0f6fe43e9d4215146e8581feb8090e7 4400Author: Lasse Collin <lasse.collin@tukaani.org> 4401Date: 2015-11-03 17:54:48 +0200 4402 4403 Build: Fix configure to handle LZMA1 dependency with LZMA2. 4404 4405 Now it gives an error if LZMA1 encoder/decoder is missing 4406 when LZMA2 encoder/decoder was requested. Even better would 4407 be LZMA2 implicitly enabling LZMA1 but it would need more code. 4408 4409 configure.ac | 5 ----- 4410 1 file changed, 5 deletions(-) 4411 4412commit 46d76c9cd3cb26a31f5ae6c3a8bbcf38e6da1add 4413Author: Lasse Collin <lasse.collin@tukaani.org> 4414Date: 2015-11-03 17:41:54 +0200 4415 4416 Build: Don't omit lzma_cputhreads() unless using --disable-threads. 4417 4418 Previously it was omitted if encoders were disabled 4419 with --disable-encoders. It didn't make sense and 4420 it also broke the build. 4421 4422 src/liblzma/common/Makefile.inc | 5 ++++- 4423 1 file changed, 4 insertions(+), 1 deletion(-) 4424 4425commit 16d68f874d89f1e4a1919786a35bbaef7d71a077 4426Author: Lasse Collin <lasse.collin@tukaani.org> 4427Date: 2015-11-02 18:16:51 +0200 4428 4429 liblzma: Fix a build failure related to external SHA-256 support. 4430 4431 If an appropriate header and structure were found by configure, 4432 but a library with a usable SHA-256 functions wasn't, the build 4433 failed. 4434 4435 src/liblzma/check/check.h | 32 +++++++++++++++++++++++--------- 4436 1 file changed, 23 insertions(+), 9 deletions(-) 4437 4438commit d9311647fc1ab512a3394596221ab8039c00af6b 4439Author: Lasse Collin <lasse.collin@tukaani.org> 4440Date: 2015-11-02 15:19:10 +0200 4441 4442 xz: Always close the file before trying to delete it. 4443 4444 unlink() can return EBUSY in errno for open files on some 4445 operating systems and file systems. 4446 4447 src/xz/file_io.c | 25 ++++++++++++------------- 4448 1 file changed, 12 insertions(+), 13 deletions(-) 4449 4450commit f59c4183f3c9066626ce45dc3db4642fa603fa21 4451Author: Lasse Collin <lasse.collin@tukaani.org> 4452Date: 2015-10-12 21:08:42 +0300 4453 4454 Update THANKS. 4455 4456 THANKS | 1 + 4457 1 file changed, 1 insertion(+) 4458 4459commit 35f189673e280c12e4c5129f9f97e54eef3bbc04 4460Author: Lasse Collin <lasse.collin@tukaani.org> 4461Date: 2015-10-12 21:07:41 +0300 4462 4463 Tests: Add tests for the two bugs fixed in index.c. 4464 4465 tests/test_index.c | 30 ++++++++++++++++++++++++++++++ 4466 1 file changed, 30 insertions(+) 4467 4468commit e10bfdb0fcaff12f3a6dadee51e0a022aadccb51 4469Author: Lasse Collin <lasse.collin@tukaani.org> 4470Date: 2015-10-12 20:45:15 +0300 4471 4472 liblzma: Fix lzma_index_dup() for empty Streams. 4473 4474 Stream Flags and Stream Padding weren't copied from 4475 empty Streams. 4476 4477 src/liblzma/common/index.c | 11 ++++++----- 4478 1 file changed, 6 insertions(+), 5 deletions(-) 4479 4480commit 06f434bd8980f25ca23232eb7bb7df7e37dc8448 4481Author: Lasse Collin <lasse.collin@tukaani.org> 4482Date: 2015-10-12 20:31:44 +0300 4483 4484 liblzma: Add a note to index.c for those using static analyzers. 4485 4486 src/liblzma/common/index.c | 3 +++ 4487 1 file changed, 3 insertions(+) 4488 4489commit 9815cdf6987ef91a85493bfcfd1ce2aaf3b47a0a 4490Author: Lasse Collin <lasse.collin@tukaani.org> 4491Date: 2015-09-29 13:59:35 +0300 4492 4493 Bump version and soname for 5.2.2. 4494 4495 src/liblzma/Makefile.am | 2 +- 4496 src/liblzma/api/lzma/version.h | 2 +- 4497 2 files changed, 2 insertions(+), 2 deletions(-) 4498 4499commit cbe0cec8476bdd0416c7ca9bc83895c9bea1cf78 4500Author: Lasse Collin <lasse.collin@tukaani.org> 4501Date: 2015-09-29 13:57:28 +0300 4502 4503 Update NEWS for 5.2.2. 4504 4505 NEWS | 18 ++++++++++++++++++ 4506 1 file changed, 18 insertions(+) 4507 4508commit 49427ce7eececdd18bbd35dab23c81910d083e1c 4509Author: Andre Noll <maan@tuebingen.mpg.de> 4510Date: 2015-05-28 15:50:00 +0200 4511 4512 Fix typo in German translation. 4513 4514 As pointed out by Robert Pollak, there's a typo in the German 4515 translation of the compression preset option (-0 ... -9) help text. 4516 "The compressor" translates to "der Komprimierer", and the genitive 4517 form is "des Komprimierers". The old word makes no sense at all. 4518 4519 po/de.po | 2 +- 4520 1 file changed, 1 insertion(+), 1 deletion(-) 4521 4522commit 608d6f06c940e7f28c25de005e8b99bdff42d27c 4523Author: Hauke Henningsen <sqrt@entless.org> 4524Date: 2015-08-17 04:59:54 +0200 4525 4526 Update German translation, mostly wrt orthography 4527 4528 Provide an update of the German translation. 4529 * A lot of compound words were previously written with spaces, while 4530 German orthography is relatively clear in that the components 4531 should not be separated. 4532 * When referring to the actual process of (de)compression rather than the 4533 concept, replace “(De-)Kompression” with “(De-)Komprimierung”. 4534 Previously, both forms were used in this context and are now used in a 4535 manner consistent with “Komprimierung” being more likely to refer to 4536 a process. 4537 * Consistently translate “standard input”/“output” 4538 * Use “Zeichen” instead of false friend “Charakter” for “character” 4539 * Insert commas around relative clauses (as required in German) 4540 * Some other minor corrections 4541 * Capitalize “ß” as “ẞ” 4542 * Consistently start option descriptions in --help with capital letters 4543 4544 Acked-By: Andre Noll <maan@tuebingen.mpg.de> 4545 4546 * Update after msgmerge 4547 4548 po/de.po | 383 ++++++++++++++++++++++++++++++++------------------------------- 4549 1 file changed, 196 insertions(+), 187 deletions(-) 4550 4551commit c8988414e5b67b8ef2fe0ba7b1ccdd0ec73c60d3 4552Author: Lasse Collin <lasse.collin@tukaani.org> 4553Date: 2015-08-11 13:23:04 +0300 4554 4555 Build: Minor Cygwin cleanup. 4556 4557 Some tests used "cygwin*" and some used "cygwin". I changed 4558 them all to use "cygwin". Shouldn't affect anything in practice. 4559 4560 configure.ac | 6 +++--- 4561 1 file changed, 3 insertions(+), 3 deletions(-) 4562 4563commit 85a6dfed53477906bfe9a7c0123dd412e391cb48 4564Author: Lasse Collin <lasse.collin@tukaani.org> 4565Date: 2015-08-11 13:21:52 +0300 4566 4567 Build: Support building of MSYS2 binaries. 4568 4569 configure.ac | 16 +++++++++++----- 4570 1 file changed, 11 insertions(+), 5 deletions(-) 4571 4572commit 77f270be8432df2e4516a0c48814b6976d6618c5 4573Author: Lasse Collin <lasse.collin@tukaani.org> 4574Date: 2015-08-09 21:06:26 +0300 4575 4576 Windows: Define DLL_EXPORT when building liblzma.dll with MSVC. 4577 4578 src/liblzma/common/common.h uses it to set __declspec(dllexport) 4579 for the API symbols. 4580 4581 Thanks to Adam Walling. 4582 4583 windows/liblzma_dll.vcxproj | 12 ++++++------ 4584 1 file changed, 6 insertions(+), 6 deletions(-) 4585 4586commit 8c975446c5903090a5a8493b5b96b71003056a88 4587Author: Lasse Collin <lasse.collin@tukaani.org> 4588Date: 2015-08-09 21:02:20 +0300 4589 4590 Windows: Omit unneeded header files from MSVC project files. 4591 4592 windows/liblzma.vcxproj | 5 ----- 4593 windows/liblzma_dll.vcxproj | 5 ----- 4594 2 files changed, 10 deletions(-) 4595 4596commit 119a00434954726ca58e4a578e6469f530fca30e 4597Author: Lasse Collin <lasse.collin@tukaani.org> 4598Date: 2015-07-12 20:48:19 +0300 4599 4600 liblzma: A MSVC-specific hack isn't needed with MSVC 2013 and newer. 4601 4602 src/liblzma/api/lzma.h | 18 +++++++++++++----- 4603 1 file changed, 13 insertions(+), 5 deletions(-) 4604 4605commit d4e7c557fcab353539c9481a8d95cb04bcb15c7c 4606Author: Lasse Collin <lasse.collin@tukaani.org> 4607Date: 2015-06-19 20:38:55 +0300 4608 4609 Update THANKS. 4610 4611 THANKS | 2 ++ 4612 1 file changed, 2 insertions(+) 4613 4614commit 98001740ca56c894a7bd32eb47e9857a8a7d878d 4615Author: Lasse Collin <lasse.collin@tukaani.org> 4616Date: 2015-06-19 20:21:30 +0300 4617 4618 Windows: Update the docs. 4619 4620 INSTALL | 29 ++++++++----- 4621 windows/INSTALL-MSVC.txt | 47 ++++++++++++++++++++++ 4622 windows/{INSTALL-Windows.txt => INSTALL-MinGW.txt} | 2 +- 4623 3 files changed, 67 insertions(+), 11 deletions(-) 4624 4625commit 28195e4c877007cc760ecea1d17f740693d66873 4626Author: Lasse Collin <lasse.collin@tukaani.org> 4627Date: 2015-06-19 17:25:31 +0300 4628 4629 Windows: Add MSVC project files for building liblzma. 4630 4631 Thanks to Adam Walling for creating these files. 4632 4633 windows/liblzma.vcxproj | 359 ++++++++++++++++++++++++++++++++++++++++ 4634 windows/liblzma_dll.vcxproj | 388 ++++++++++++++++++++++++++++++++++++++++++++ 4635 windows/xz_win.sln | 48 ++++++ 4636 3 files changed, 795 insertions(+) 4637 4638commit 960440f3230dc628f6966d9f7614fc1b28baf44e 4639Author: Lasse Collin <lasse.collin@tukaani.org> 4640Date: 2015-05-13 20:57:55 +0300 4641 4642 Tests: Fix a memory leak in test_bcj_exact_size. 4643 4644 Thanks to Cristian Rodríguez. 4645 4646 tests/test_bcj_exact_size.c | 1 + 4647 1 file changed, 1 insertion(+) 4648 4649commit 68cd35acafbdcdf4e8ea8b5bb843c736939d6f8b 4650Author: Lasse Collin <lasse.collin@tukaani.org> 4651Date: 2015-05-12 18:08:24 +0300 4652 4653 Fix NEWS about threading in 5.2.0. 4654 4655 Thanks to Andy Hochhaus. 4656 4657 NEWS | 3 ++- 4658 1 file changed, 2 insertions(+), 1 deletion(-) 4659 4660commit ff96ed6d25786728356017a13baf8c14731b4f1e 4661Author: Lasse Collin <lasse.collin@tukaani.org> 4662Date: 2015-05-11 21:26:16 +0300 4663 4664 xz: Document that threaded decompression hasn't been implemented yet. 4665 4666 src/xz/xz.1 | 10 +++++++++- 4667 1 file changed, 9 insertions(+), 1 deletion(-) 4668 4669commit 00d37b64a64ea8597fd2422d5187afd761ab9531 4670Author: Lasse Collin <lasse.collin@tukaani.org> 4671Date: 2015-04-20 20:20:29 +0300 4672 4673 Update THANKS. 4674 4675 THANKS | 1 + 4676 1 file changed, 1 insertion(+) 4677 4678commit db190a832c49ca3aed6d69cc992fa5583cae7b11 4679Author: Lasse Collin <lasse.collin@tukaani.org> 4680Date: 2015-04-20 19:59:18 +0300 4681 4682 Revert "xz: Use pipe2() if available." 4683 4684 This reverts commit 7a11c4a8e5e15f13d5fa59233b3172e65428efdd. 4685 It is a problem when libc has pipe2() but the kernel is too 4686 old to have pipe2() and thus pipe2() fails. In xz it's pointless 4687 to have a fallback for non-functioning pipe2(); it's better to 4688 avoid pipe2() completely. 4689 4690 Thanks to Michael Fox for the bug report. 4691 4692 configure.ac | 4 ++-- 4693 src/xz/file_io.c | 9 +-------- 4694 2 files changed, 3 insertions(+), 10 deletions(-) 4695 4696commit eccd8155e107c5ada03d13e7730675cdf1a44ddc 4697Author: Lasse Collin <lasse.collin@tukaani.org> 4698Date: 2015-03-29 22:14:47 +0300 4699 4700 Update THANKS. 4701 4702 THANKS | 1 + 4703 1 file changed, 1 insertion(+) 4704 4705commit 25263fd9e7a8a913395cb93d7c104cd48c2b4a00 4706Author: Lasse Collin <lasse.collin@tukaani.org> 4707Date: 2015-03-29 22:13:48 +0300 4708 4709 Fix the detection of installed RAM on QNX. 4710 4711 The earlier version compiled but didn't actually work 4712 since sysconf(_SC_PHYS_PAGES) always fails (or so I was told). 4713 4714 Thanks to Ole André Vadla Ravnås for the patch and testing. 4715 4716 m4/tuklib_physmem.m4 | 6 +++--- 4717 src/common/tuklib_physmem.c | 14 +++++++++++++- 4718 2 files changed, 16 insertions(+), 4 deletions(-) 4719 4720commit 4c544d2410903d38402221cb783ed85585b6a007 4721Author: Lasse Collin <lasse.collin@tukaani.org> 4722Date: 2015-03-27 22:39:07 +0200 4723 4724 Fix CPU core count detection on QNX. 4725 4726 It tried to use sysctl() on QNX but 4727 - it broke the build because sysctl() needs -lsocket on QNX; 4728 - sysctl() doesn't work for detecting the core count on QNX 4729 even if it compiled. 4730 4731 sysconf() works. An alternative would have been to use 4732 QNX-specific SYSPAGE_ENTRY(num_cpu) from <sys/syspage.h>. 4733 4734 Thanks to Ole André Vadla Ravnås. 4735 4736 m4/tuklib_cpucores.m4 | 15 +++++++++++---- 4737 1 file changed, 11 insertions(+), 4 deletions(-) 4738 4739commit e0ea6737b03e83ccaff4514d00e31bb926f8f0f3 4740Author: Lasse Collin <lasse.collin@tukaani.org> 4741Date: 2015-03-07 22:05:57 +0200 4742 4743 xz: size_t/uint32_t cleanup in options.c. 4744 4745 src/xz/options.c | 12 ++++++------ 4746 1 file changed, 6 insertions(+), 6 deletions(-) 4747 4748commit 8bcca29a65335fd679c13814b70b35b68fa5daed 4749Author: Lasse Collin <lasse.collin@tukaani.org> 4750Date: 2015-03-07 22:04:23 +0200 4751 4752 xz: Fix a comment and silence a warning in message.c. 4753 4754 src/xz/message.c | 5 +++-- 4755 1 file changed, 3 insertions(+), 2 deletions(-) 4756 4757commit f243f5f44c6b19a7c289a0ec73a03ee08364cb5b 4758Author: Lasse Collin <lasse.collin@tukaani.org> 4759Date: 2015-03-07 22:01:00 +0200 4760 4761 liblzma: Silence more uint32_t vs. size_t warnings. 4762 4763 src/liblzma/lz/lz_encoder.c | 2 +- 4764 src/liblzma/lzma/lzma_encoder.c | 2 +- 4765 2 files changed, 2 insertions(+), 2 deletions(-) 4766 4767commit 7f0a4c50f4a374c40acf4b86848f301ad1e82d34 4768Author: Lasse Collin <lasse.collin@tukaani.org> 4769Date: 2015-03-07 19:54:00 +0200 4770 4771 xz: Make arg_count an unsigned int to silence a warning. 4772 4773 Actually the value of arg_count cannot exceed INT_MAX 4774 but it's nicer as an unsigned int. 4775 4776 src/xz/args.h | 2 +- 4777 src/xz/main.c | 2 +- 4778 2 files changed, 2 insertions(+), 2 deletions(-) 4779 4780commit f6ec46801588b1be29c07c9db98558b521304002 4781Author: Lasse Collin <lasse.collin@tukaani.org> 4782Date: 2015-03-07 19:33:17 +0200 4783 4784 liblzma: Fix a warning in index.c. 4785 4786 src/liblzma/common/index.c | 4 +++- 4787 1 file changed, 3 insertions(+), 1 deletion(-) 4788 4789commit a24518971cc621315af142dd3bb7614fab04ad27 4790Author: Lasse Collin <lasse.collin@tukaani.org> 4791Date: 2015-02-26 20:46:14 +0200 4792 4793 Build: Fix a CR+LF problem when running autoreconf -fi on OS/2. 4794 4795 build-aux/version.sh | 2 +- 4796 1 file changed, 1 insertion(+), 1 deletion(-) 4797 4798commit dec11497a71518423b5ff0e759100cf8aadf6c7b 4799Author: Lasse Collin <lasse.collin@tukaani.org> 4800Date: 2015-02-26 16:53:44 +0200 4801 4802 Bump version and soname for 5.2.1. 4803 4804 src/liblzma/Makefile.am | 2 +- 4805 src/liblzma/api/lzma/version.h | 2 +- 4806 2 files changed, 2 insertions(+), 2 deletions(-) 4807 4808commit 29e39c79975ab89ee5dd671e97064534a9f3a649 4809Author: Lasse Collin <lasse.collin@tukaani.org> 4810Date: 2015-02-26 13:01:09 +0200 4811 4812 Update NEWS for 5.2.1. 4813 4814 NEWS | 14 ++++++++++++++ 4815 1 file changed, 14 insertions(+) 4816 4817commit 7a11c4a8e5e15f13d5fa59233b3172e65428efdd 4818Author: Lasse Collin <lasse.collin@tukaani.org> 4819Date: 2015-02-22 19:38:48 +0200 4820 4821 xz: Use pipe2() if available. 4822 4823 configure.ac | 4 ++-- 4824 src/xz/file_io.c | 9 ++++++++- 4825 2 files changed, 10 insertions(+), 3 deletions(-) 4826 4827commit 117d962685c72682c63edc9bb765367189800202 4828Author: Lasse Collin <lasse.collin@tukaani.org> 4829Date: 2015-02-21 23:40:26 +0200 4830 4831 liblzma: Fix a compression-ratio regression in LZMA1/2 in fast mode. 4832 4833 The bug was added in the commit 4834 f48fce093b07aeda95c18850f5e086d9f2383380 and thus 4835 affected 5.1.4beta and 5.2.0. Luckily the bug cannot 4836 cause data corruption or other nasty things. 4837 4838 src/liblzma/lzma/lzma_encoder_optimum_fast.c | 2 +- 4839 1 file changed, 1 insertion(+), 1 deletion(-) 4840 4841commit ae984e31c167d3bc52972ec422dd1ebd5f5d5719 4842Author: Lasse Collin <lasse.collin@tukaani.org> 4843Date: 2015-02-21 23:00:19 +0200 4844 4845 xz: Fix the fcntl() usage when creating a pipe for the self-pipe trick. 4846 4847 Now it reads the old flags instead of blindly setting O_NONBLOCK. 4848 The old code may have worked correctly, but this is better. 4849 4850 src/xz/file_io.c | 16 +++++++++++----- 4851 1 file changed, 11 insertions(+), 5 deletions(-) 4852 4853commit 2205bb5853098aea36a56df6f5747037175f66b4 4854Author: Lasse Collin <lasse.collin@tukaani.org> 4855Date: 2015-02-10 15:29:34 +0200 4856 4857 Update THANKS. 4858 4859 THANKS | 1 + 4860 1 file changed, 1 insertion(+) 4861 4862commit d935b0cdf3db440269b9d952b2b281b18f8c7b08 4863Author: Lasse Collin <lasse.collin@tukaani.org> 4864Date: 2015-02-10 15:28:30 +0200 4865 4866 tuklib_cpucores: Use cpuset_getaffinity() on FreeBSD if available. 4867 4868 In FreeBSD, cpuset_getaffinity() is the preferred way to get 4869 the number of available cores. 4870 4871 Thanks to Rui Paulo for the patch. I edited it slightly, but 4872 hopefully I didn't break anything. 4873 4874 m4/tuklib_cpucores.m4 | 23 ++++++++++++++++++++++- 4875 src/common/tuklib_cpucores.c | 18 ++++++++++++++++++ 4876 2 files changed, 40 insertions(+), 1 deletion(-) 4877 4878commit eb61bc58c20769cac4d05f363b9c0e8c9c71a560 4879Author: Lasse Collin <lasse.collin@tukaani.org> 4880Date: 2015-02-09 22:08:37 +0200 4881 4882 xzdiff: Make the mktemp usage compatible with FreeBSD's mktemp. 4883 4884 Thanks to Rui Paulo for the fix. 4885 4886 src/scripts/xzdiff.in | 7 ++++++- 4887 1 file changed, 6 insertions(+), 1 deletion(-) 4888 4889commit b9a5b6b7a29029680af733082b6a46e0fc01623a 4890Author: Lasse Collin <lasse.collin@tukaani.org> 4891Date: 2015-02-03 21:45:53 +0200 4892 4893 Add a few casts to tuklib_integer.h to silence possible warnings. 4894 4895 I heard that Visual Studio 2013 gave warnings without the casts. 4896 4897 Thanks to Gabi Davar. 4898 4899 src/common/tuklib_integer.h | 24 ++++++++++++------------ 4900 1 file changed, 12 insertions(+), 12 deletions(-) 4901 4902commit c45757135f40e4a0de730ba5fff0100219493982 4903Author: Lasse Collin <lasse.collin@tukaani.org> 4904Date: 2015-01-26 21:24:39 +0200 4905 4906 liblzma: Set LZMA_MEMCMPLEN_EXTRA depending on the compare method. 4907 4908 src/liblzma/common/memcmplen.h | 15 ++++++++++----- 4909 1 file changed, 10 insertions(+), 5 deletions(-) 4910 4911commit 3c500174ed5485f550972a2a6109c361e875f069 4912Author: Lasse Collin <lasse.collin@tukaani.org> 4913Date: 2015-01-26 20:40:16 +0200 4914 4915 Update THANKS. 4916 4917 THANKS | 1 + 4918 1 file changed, 1 insertion(+) 4919 4920commit fec88d41e672d9e197c9442aecf02bd0dfa6d516 4921Author: Lasse Collin <lasse.collin@tukaani.org> 4922Date: 2015-01-26 20:39:28 +0200 4923 4924 liblzma: Silence harmless Valgrind errors. 4925 4926 Thanks to Torsten Rupp for reporting this. I had 4927 forgotten to run Valgrind before the 5.2.0 release. 4928 4929 src/liblzma/lz/lz_encoder.c | 6 ++++++ 4930 1 file changed, 6 insertions(+) 4931 4932commit a9b45badfec0928d20a27c7176c005fa637f7d1e 4933Author: Lasse Collin <lasse.collin@tukaani.org> 4934Date: 2015-01-09 21:50:19 +0200 4935 4936 xz: Fix comments. 4937 4938 src/xz/file_io.c | 12 ++++++++---- 4939 1 file changed, 8 insertions(+), 4 deletions(-) 4940 4941commit 541aee6dd4aa97a809aba281475a21b641bb89e2 4942Author: Lasse Collin <lasse.collin@tukaani.org> 4943Date: 2015-01-09 21:35:06 +0200 4944 4945 Update THANKS. 4946 4947 THANKS | 1 + 4948 1 file changed, 1 insertion(+) 4949 4950commit 4170edc914655310d2363baccf5e615e09b04911 4951Author: Lasse Collin <lasse.collin@tukaani.org> 4952Date: 2015-01-09 21:34:06 +0200 4953 4954 xz: Don't fail if stdout doesn't support O_NONBLOCK. 4955 4956 This is similar to the case with stdin. 4957 4958 Thanks to Brad Smith for the bug report and testing 4959 on OpenBSD. 4960 4961 src/xz/file_io.c | 36 +++++++++++++++--------------------- 4962 1 file changed, 15 insertions(+), 21 deletions(-) 4963 4964commit 04bbc0c2843c50c8ad1cba42b937118e38b0508d 4965Author: Lasse Collin <lasse.collin@tukaani.org> 4966Date: 2015-01-07 19:18:20 +0200 4967 4968 xz: Fix a memory leak in DOS-specific code. 4969 4970 src/xz/file_io.c | 2 ++ 4971 1 file changed, 2 insertions(+) 4972 4973commit f0f1f6c7235ffa901cf76fe18e33749e200b3eea 4974Author: Lasse Collin <lasse.collin@tukaani.org> 4975Date: 2015-01-07 19:08:06 +0200 4976 4977 xz: Don't fail if stdin doesn't support O_NONBLOCK. 4978 4979 It's a problem at least on OpenBSD which doesn't support 4980 O_NONBLOCK on e.g. /dev/null. I'm not surprised if it's 4981 a problem on other OSes too since this behavior is allowed 4982 in POSIX-1.2008. 4983 4984 The code relying on this behavior was committed in June 2013 4985 and included in 5.1.3alpha released on 2013-10-26. Clearly 4986 the development releases only get limited testing. 4987 4988 src/xz/file_io.c | 18 +++++++----------- 4989 1 file changed, 7 insertions(+), 11 deletions(-) 4990 4991commit d2d484647d9d9d679f03c75abb0404f67069271c 4992Author: Lasse Collin <lasse.collin@tukaani.org> 4993Date: 2015-01-06 20:30:15 +0200 4994 4995 Tests: Don't hide unexpected error messages in test_files.sh. 4996 4997 Hiding them makes no sense since normally there's no error 4998 when testing the "good" files. With "bad" files errors are 4999 expected and then it makes sense to keep the messages hidden. 5000 5001 tests/test_files.sh | 4 ++-- 5002 1 file changed, 2 insertions(+), 2 deletions(-) 5003 5004commit aae6a6aeda51cf94a47e39ad624728f9bee75e30 5005Author: Lasse Collin <lasse.collin@tukaani.org> 5006Date: 2014-12-30 11:17:16 +0200 5007 5008 Update Solaris notes in INSTALL. 5009 5010 Mention the possible "make check" failure on Solaris in the 5011 Solaris-specific section of INSTALL. It was already in 5012 section 4.5 but it is better mention it in the OS-specific 5013 section too. 5014 5015 INSTALL | 4 ++++ 5016 1 file changed, 4 insertions(+) 5017 5018commit 7815112153178800a3521b9f31960e7cdc26cfba 5019Author: Lasse Collin <lasse.collin@tukaani.org> 5020Date: 2014-12-26 12:00:05 +0200 5021 5022 Build: POSIX shell isn't required if scripts are disabled. 5023 5024 INSTALL | 3 ++- 5025 configure.ac | 2 +- 5026 2 files changed, 3 insertions(+), 2 deletions(-) 5027 5028commit a0cd05ee71d330b79ead6eb9222e1b24e1559d3a 5029Author: Lasse Collin <lasse.collin@tukaani.org> 5030Date: 2014-12-21 20:48:37 +0200 5031 5032 DOS: Update Makefile. 5033 5034 dos/Makefile | 1 + 5035 1 file changed, 1 insertion(+) 5036 5037commit b85ee0905ec4ab7656d22e63519fdd3bedb21f2e 5038Author: Lasse Collin <lasse.collin@tukaani.org> 5039Date: 2014-12-21 19:50:38 +0200 5040 5041 Windows: Fix bin_i486 to bin_i686 in build.bash. 5042 5043 windows/build.bash | 2 +- 5044 1 file changed, 1 insertion(+), 1 deletion(-) 5045 5046commit cbafa710918195dbba3db02c3fab4f0538235206 5047Author: Lasse Collin <lasse.collin@tukaani.org> 5048Date: 2014-12-21 18:58:44 +0200 5049 5050 Docs: Use lzma_cputhreads() in 04_compress_easy_mt.c. 5051 5052 doc/examples/04_compress_easy_mt.c | 30 ++++++++++++++++++++++++++---- 5053 1 file changed, 26 insertions(+), 4 deletions(-) 5054 5055commit 8dbb57238d372c7263cfeb3e7f7fd9a73173156a 5056Author: Lasse Collin <lasse.collin@tukaani.org> 5057Date: 2014-12-21 18:56:44 +0200 5058 5059 Docs: Update docs/examples/00_README.txt. 5060 5061 doc/examples/00_README.txt | 4 ++++ 5062 1 file changed, 4 insertions(+) 5063 5064commit 6060f7dc76fd6c2a8a1f8e85d0e4d86bb78273e6 5065Author: Lasse Collin <lasse.collin@tukaani.org> 5066Date: 2014-12-21 18:11:17 +0200 5067 5068 Bump version and soname for 5.2.0. 5069 5070 I know that soname != app version, but I skip AGE=1 5071 in -version-info to make the soname match the liblzma 5072 version anyway. It doesn't hurt anything as long as 5073 it doesn't conflict with library versioning rules. 5074 5075 src/liblzma/Makefile.am | 2 +- 5076 src/liblzma/api/lzma/version.h | 6 +++--- 5077 src/liblzma/liblzma.map | 2 +- 5078 3 files changed, 5 insertions(+), 5 deletions(-) 5079 5080commit 3e8bd1d15e417f2d588e9be50ce027ee3d48b2da 5081Author: Lasse Collin <lasse.collin@tukaani.org> 5082Date: 2014-12-21 18:05:03 +0200 5083 5084 Avoid variable-length arrays in the debug programs. 5085 5086 debug/full_flush.c | 3 ++- 5087 debug/sync_flush.c | 3 ++- 5088 2 files changed, 4 insertions(+), 2 deletions(-) 5089 5090commit 72f7307cfdceb941aeb2bf30d424cc0d13621786 5091Author: Lasse Collin <lasse.collin@tukaani.org> 5092Date: 2014-12-21 18:01:45 +0200 5093 5094 Build: Include 04_compress_easy_mt.c in the tarball. 5095 5096 Makefile.am | 1 + 5097 1 file changed, 1 insertion(+) 5098 5099commit 2cb82ff21c62def11f3683a8bb0aaf363102aaa0 5100Author: Lasse Collin <lasse.collin@tukaani.org> 5101Date: 2014-12-21 18:00:38 +0200 5102 5103 Fix build when --disable-threads is used. 5104 5105 src/common/mythread.h | 2 ++ 5106 1 file changed, 2 insertions(+) 5107 5108commit 9b9e3536e458ef958f66b0e8982efc9d36de4d17 5109Author: Adrien Nader <adrien@notk.org> 5110Date: 2014-12-21 15:56:15 +0100 5111 5112 po/fr: improve wording for help for --lzma1/--lzma2. 5113 5114 po/fr.po | 2 +- 5115 1 file changed, 1 insertion(+), 1 deletion(-) 5116 5117commit a8b6b569e7fadbf5b5b9139d53bc764015c15027 5118Author: Adrien Nader <adrien@notk.org> 5119Date: 2014-12-21 15:55:48 +0100 5120 5121 po/fr: missing line in translation of --extreme. 5122 5123 po/fr.po | 1 + 5124 1 file changed, 1 insertion(+) 5125 5126commit f168a6fd1a888cf4f0caaddcafcb21dadc6ab6e9 5127Author: Lasse Collin <lasse.collin@tukaani.org> 5128Date: 2014-12-21 14:32:33 +0200 5129 5130 Update NEWS for 5.2.0. 5131 5132 NEWS | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5133 1 file changed, 65 insertions(+) 5134 5135commit cec2ee863b3a88f4bf039cb00f73c4a4fc93a429 5136Author: Lasse Collin <lasse.collin@tukaani.org> 5137Date: 2014-12-21 14:32:22 +0200 5138 5139 Update NEWS for 5.0.8. 5140 5141 NEWS | 12 ++++++++++++ 5142 1 file changed, 12 insertions(+) 5143 5144commit 42e97a32649bf53ce43be2258b902a417c6e7fa1 5145Author: Lasse Collin <lasse.collin@tukaani.org> 5146Date: 2014-12-21 14:07:54 +0200 5147 5148 xz: Fix a comment. 5149 5150 src/xz/options.c | 4 ++-- 5151 1 file changed, 2 insertions(+), 2 deletions(-) 5152 5153commit 29b95d5d6665cedffa6a9d6d3d914f981e852182 5154Author: Lasse Collin <lasse.collin@tukaani.org> 5155Date: 2014-12-20 20:43:14 +0200 5156 5157 Update INSTALL about the dependencies of the scripts. 5158 5159 INSTALL | 15 ++++++++++----- 5160 1 file changed, 10 insertions(+), 5 deletions(-) 5161 5162commit 3af91040bb42c21afbb81f5568c3313125e61192 5163Author: Lasse Collin <lasse.collin@tukaani.org> 5164Date: 2014-12-20 20:42:33 +0200 5165 5166 Windows: Update build instructions. 5167 5168 INSTALL | 15 +++++++++------ 5169 windows/INSTALL-Windows.txt | 44 +++++++++++++++++++++----------------------- 5170 2 files changed, 30 insertions(+), 29 deletions(-) 5171 5172commit 0152f72bf6289d744823dc6c849538f3a139ad70 5173Author: Lasse Collin <lasse.collin@tukaani.org> 5174Date: 2014-12-20 20:41:48 +0200 5175 5176 Windows: Update the build script and README-Windows.txt. 5177 5178 The 32-bit build is now for i686 or newer because the 5179 prebuilt MinGW-w64 toolchains include i686 code in the 5180 executables even if one uses -march=i486. 5181 5182 The build script builds 32-bit SSE2 enabled version too. 5183 Run-time detection of SSE2 support would be nice (on any OS) 5184 but it's not implemented in XZ Utils yet. 5185 5186 windows/README-Windows.txt | 30 ++++++++++++++++-------------- 5187 windows/build.bash | 23 ++++++++++++++--------- 5188 2 files changed, 30 insertions(+), 23 deletions(-) 5189 5190commit 4a1f6133ee5533cee8d91e06fcc22443e5f1881a 5191Author: Lasse Collin <lasse.collin@tukaani.org> 5192Date: 2014-12-19 15:51:50 +0200 5193 5194 Windows: Define TUKLIB_SYMBOL_PREFIX in config.h. 5195 5196 It is to keep all symbols in the lzma_ namespace. 5197 5198 windows/config.h | 3 +++ 5199 1 file changed, 3 insertions(+) 5200 5201commit 7f7d093de79eee0c7dbfd7433647e46302f19f82 5202Author: Lasse Collin <lasse.collin@tukaani.org> 5203Date: 2014-12-16 21:00:09 +0200 5204 5205 xz: Update the man page about --threads. 5206 5207 src/xz/xz.1 | 5 ----- 5208 1 file changed, 5 deletions(-) 5209 5210commit 009823448b82aa5f465668878a544c5842885407 5211Author: Lasse Collin <lasse.collin@tukaani.org> 5212Date: 2014-12-16 20:57:43 +0200 5213 5214 xz: Update the man page about --block-size. 5215 5216 src/xz/xz.1 | 41 +++++++++++++++++++++++++++++++++-------- 5217 1 file changed, 33 insertions(+), 8 deletions(-) 5218 5219commit 7dddfbeb499e528940bc12047355c184644aafe9 5220Author: Adrien Nader <adrien@notk.org> 5221Date: 2014-12-10 22:26:57 +0100 5222 5223 po/fr: several more translation updates: reword and handle --ignore-check. 5224 5225 po/fr.po | 50 ++++++++++++++++++++++++++------------------------ 5226 1 file changed, 26 insertions(+), 24 deletions(-) 5227 5228commit 6eca5be40e04ddc4b738d493e4e56835956d8b69 5229Author: Adrien Nader <adrien@notk.org> 5230Date: 2014-12-10 22:23:01 +0100 5231 5232 po/fr: yet another place where my email address had to be updated. 5233 5234 po/fr.po | 2 +- 5235 1 file changed, 1 insertion(+), 1 deletion(-) 5236 5237commit d1003673e92ba47edd6aeeb3dbea05c18269d0e7 5238Author: Adrien Nader <adrien@notk.org> 5239Date: 2014-12-10 22:22:20 +0100 5240 5241 po/fr: fix several typos that have been around since the beginning. 5242 5243 po/fr.po | 22 +++++++++++----------- 5244 1 file changed, 11 insertions(+), 11 deletions(-) 5245 5246commit 4c5aa911a0df027e46171e368debc543d2fa72b2 5247Author: Adrien Nader <adrien@notk.org> 5248Date: 2014-12-03 20:02:31 +0100 5249 5250 po/fr: last batch of new translations for now. 5251 5252 Four new error messages. 5253 5254 po/fr.po | 16 ++++++++-------- 5255 1 file changed, 8 insertions(+), 8 deletions(-) 5256 5257commit 3e3099e36d27059499e7996fb38a62e8ab01d356 5258Author: Adrien Nader <adrien@notk.org> 5259Date: 2014-12-03 20:01:32 +0100 5260 5261 po/fr: translations for --threads, --block-size and --block-list. 5262 5263 po/fr.po | 12 ++++++++---- 5264 1 file changed, 8 insertions(+), 4 deletions(-) 5265 5266commit e7d96a5933eec4e9d4a62569ee88df0ebb0f1d53 5267Author: Adrien Nader <adrien@notk.org> 5268Date: 2014-12-03 20:00:53 +0100 5269 5270 po/fr: remove fuzzy marker for error messages that will be kept in English. 5271 5272 The following is a copy of a comment inside fr.po: 5273 5274 Note from translator on "file status flags". 5275 The following entry is kept un-translated on purpose. It is difficult to 5276 translate and should only happen in exceptional circumstances which means 5277 that translating would: 5278 - lose some of the meaning 5279 - make it more difficult to look up in search engines; it might happen one 5280 in 5281 a million times, if we dilute the error message in 20 languages, it will be 5282 almost impossible to find an explanation and support for the error. 5283 5284 po/fr.po | 22 ++++++++++++++++------ 5285 1 file changed, 16 insertions(+), 6 deletions(-) 5286 5287commit 46cbb9033af8a21fafe543302d6919746e0d72af 5288Author: Adrien Nader <adrien@notk.org> 5289Date: 2014-12-03 19:58:25 +0100 5290 5291 po/fr: several minor updates and better wording. 5292 5293 Meaning doesn't change at all: it's only for better wording and/or 5294 formatting of a few strings. 5295 5296 po/fr.po | 14 +++++++------- 5297 1 file changed, 7 insertions(+), 7 deletions(-) 5298 5299commit 7ce49d444f04e73145f79c832eb4d510594b074a 5300Author: Adrien Nader <adrien@notk.org> 5301Date: 2014-12-03 19:56:12 +0100 5302 5303 po/fr: update my email address and copyright years. 5304 5305 po/fr.po | 4 ++-- 5306 1 file changed, 2 insertions(+), 2 deletions(-) 5307 5308commit 214c553ebc3047cd720da1ce5c80cf7c38118d3c 5309Author: Adrien Nader <adrien@notk.org> 5310Date: 2014-11-26 10:08:26 +0100 5311 5312 fr.po: commit file after only "update-po" so actual is readable. 5313 5314 po/fr.po | 311 ++++++++++++++++++++++++++++++++++++++++----------------------- 5315 1 file changed, 199 insertions(+), 112 deletions(-) 5316 5317commit 1190c641af09cde85f8bd0fbe5c4906f4a29431b 5318Author: Lasse Collin <lasse.collin@tukaani.org> 5319Date: 2014-12-02 20:04:07 +0200 5320 5321 liblzma: Document how lzma_mt.block_size affects memory usage. 5322 5323 src/liblzma/api/lzma/container.h | 4 ++++ 5324 1 file changed, 4 insertions(+) 5325 5326commit e4fc1d2f9571fba79ce383595be2ea2a9257def0 5327Author: Lasse Collin <lasse.collin@tukaani.org> 5328Date: 2014-11-28 20:07:18 +0200 5329 5330 Update INSTALL about a "make check" failure in test_scripts.sh. 5331 5332 INSTALL | 24 +++++++++++++++++------- 5333 1 file changed, 17 insertions(+), 7 deletions(-) 5334 5335commit 34f9e40a0a0c3bd2c2730cdb9cd550bbb8a3f2fe 5336Author: Lasse Collin <lasse.collin@tukaani.org> 5337Date: 2014-11-26 20:12:27 +0200 5338 5339 Remove LZMA_UNSTABLE macro. 5340 5341 src/liblzma/api/lzma/container.h | 4 ---- 5342 src/liblzma/common/common.h | 2 -- 5343 src/xz/private.h | 1 - 5344 3 files changed, 7 deletions(-) 5345 5346commit 6d9c0ce9f2677b159e32b224aba5b535b304a705 5347Author: Lasse Collin <lasse.collin@tukaani.org> 5348Date: 2014-11-26 20:10:33 +0200 5349 5350 liblzma: Update lzma_stream_encoder_mt() API docs. 5351 5352 src/liblzma/api/lzma/container.h | 5 +++-- 5353 1 file changed, 3 insertions(+), 2 deletions(-) 5354 5355commit 2301f3f05dd9742f42cda8f0f318864f5dc39ab3 5356Author: Lasse Collin <lasse.collin@tukaani.org> 5357Date: 2014-11-25 12:32:05 +0200 5358 5359 liblzma: Verify the filter chain in threaded encoder initialization. 5360 5361 This way an invalid filter chain is detected at the Stream 5362 encoder initialization instead of delaying it to the first 5363 call to lzma_code() which triggers the initialization of 5364 the actual filter encoder(s). 5365 5366 src/liblzma/common/stream_encoder_mt.c | 9 ++++++--- 5367 1 file changed, 6 insertions(+), 3 deletions(-) 5368 5369commit 107a263d5bb63cd3593fd6a5c938706539f84523 5370Author: Lasse Collin <lasse.collin@tukaani.org> 5371Date: 2014-11-17 19:11:49 +0200 5372 5373 Build: Update m4/ax_pthread.m4 from Autoconf Archive. 5374 5375 m4/ax_pthread.m4 | 71 +++++++++++++++++++++++++++++++++++++------------------- 5376 1 file changed, 47 insertions(+), 24 deletions(-) 5377 5378commit b13a781833399ff5726cfc997f3cb2f0acbdbf31 5379Author: Lasse Collin <lasse.collin@tukaani.org> 5380Date: 2014-11-17 18:52:21 +0200 5381 5382 Build: Replace obsolete AC_HELP_STRING with AS_HELP_STRING. 5383 5384 configure.ac | 36 ++++++++++++++++++------------------ 5385 m4/tuklib_integer.m4 | 2 +- 5386 2 files changed, 19 insertions(+), 19 deletions(-) 5387 5388commit 542cac122ed3550148a2af0033af22b757491378 5389Author: Lasse Collin <lasse.collin@tukaani.org> 5390Date: 2014-11-17 18:43:19 +0200 5391 5392 Build: Fix Autoconf warnings about escaped backquotes. 5393 5394 Thanks to Daniel Richard G. for pointing out that it's 5395 good to sometimes run autoreconf -fi with -Wall. 5396 5397 configure.ac | 7 +++---- 5398 1 file changed, 3 insertions(+), 4 deletions(-) 5399 5400commit 7b03a15cea8cd4f19ed680b51c4bcbae3ce4142f 5401Author: Lasse Collin <lasse.collin@tukaani.org> 5402Date: 2014-11-10 18:54:40 +0200 5403 5404 xzdiff: Use mkdir if mktemp isn't available. 5405 5406 src/scripts/xzdiff.in | 17 ++++++++++++++++- 5407 1 file changed, 16 insertions(+), 1 deletion(-) 5408 5409commit f8c13e5e3609581d5dd9f8777985ca07f2390ad7 5410Author: Lasse Collin <lasse.collin@tukaani.org> 5411Date: 2014-11-10 18:45:01 +0200 5412 5413 xzdiff: Create a temporary directory to hold a temporary file. 5414 5415 This avoids the possibility of "File name too long" when 5416 creating a temp file when the input file name is very long. 5417 5418 This also means that other users on the system can no longer 5419 see the input file names in /tmp (or whatever $TMPDIR is) 5420 since the temporary directory will have a generic name. This 5421 usually doesn't matter since on many systems one can see 5422 the arguments given to all processes anyway. 5423 5424 The number X chars to mktemp where increased from 6 to 10. 5425 5426 Note that with some shells temp files or dirs won't be used at all. 5427 5428 src/scripts/xzdiff.in | 10 +++++----- 5429 1 file changed, 5 insertions(+), 5 deletions(-) 5430 5431commit 7716dcf9df7f457500cb657314e7a9aea5fedb06 5432Author: Lasse Collin <lasse.collin@tukaani.org> 5433Date: 2014-11-10 15:38:47 +0200 5434 5435 liblzma: Fix lzma_mt.preset in lzma_stream_encoder_mt_memusage(). 5436 5437 It read the filter chain from a wrong variable. This is a similar 5438 bug that was fixed in 9494fb6d0ff41c585326f00aa8f7fe58f8106a5e. 5439 5440 src/liblzma/common/stream_encoder_mt.c | 3 +-- 5441 1 file changed, 1 insertion(+), 2 deletions(-) 5442 5443commit 230fa4a605542c84b4178a57381695a0af4e779b 5444Author: Lasse Collin <lasse.collin@tukaani.org> 5445Date: 2014-11-10 14:49:55 +0200 5446 5447 Update THANKS. 5448 5449 THANKS | 1 + 5450 1 file changed, 1 insertion(+) 5451 5452commit 4e4ae08bc7c1711e399c9f2d26eb375d39d08101 5453Author: Lasse Collin <lasse.collin@tukaani.org> 5454Date: 2014-10-29 21:28:25 +0200 5455 5456 Update .gitignore files. 5457 5458 .gitignore | 2 ++ 5459 m4/.gitignore | 3 +++ 5460 2 files changed, 5 insertions(+) 5461 5462commit c923b140b27d1a055db6284e10fd546ad1a7fcdb 5463Author: Lasse Collin <lasse.collin@tukaani.org> 5464Date: 2014-10-29 21:15:35 +0200 5465 5466 Build: Prepare to support Automake's subdir-objects. 5467 5468 Due to a bug in Automake, subdir-objects won't be enabled 5469 for now. 5470 5471 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17354 5472 5473 Thanks to Daniel Richard G. for the original patches. 5474 5475 configure.ac | 7 ++++++- 5476 src/Makefile.am | 22 +++++++++++++++++++++- 5477 src/liblzma/Makefile.am | 4 ++-- 5478 src/lzmainfo/Makefile.am | 4 ++-- 5479 src/xz/Makefile.am | 10 +++++----- 5480 src/xzdec/Makefile.am | 8 ++++---- 5481 6 files changed, 40 insertions(+), 15 deletions(-) 5482 5483commit 08c2aa16bea0df82828f665d51fba2e0a5e8997f 5484Author: Lasse Collin <lasse.collin@tukaani.org> 5485Date: 2014-10-24 20:09:29 +0300 5486 5487 Translations: Update the Italian translation. 5488 5489 Thanks to Milo Casagrande. 5490 5491 po/it.po | 452 ++++++++++++++++++++++++++++++++++++++------------------------- 5492 1 file changed, 275 insertions(+), 177 deletions(-) 5493 5494commit 2f9f61aa83539c54ff6c118a2693890f0519b3dd 5495Author: Lasse Collin <lasse.collin@tukaani.org> 5496Date: 2014-10-18 18:51:45 +0300 5497 5498 Translations: Update the Polish translation. 5499 5500 Thanks to Jakub Bogusz. 5501 5502 po/pl.po | 332 ++++++++++++++++++++++++++++++++++++++++----------------------- 5503 1 file changed, 214 insertions(+), 118 deletions(-) 5504 5505commit 4f9d233f67aea25e532824d11b7642cf7dee7a76 5506Author: Andre Noll <maan@tuebingen.mpg.de> 5507Date: 2014-10-14 17:30:30 +0200 5508 5509 l10n: de.po: Change translator email address. 5510 5511 Although the old address is still working, the new one should 5512 be preferred. So this commit changes all three places in de.po 5513 accordingly. 5514 5515 Signed-off-by: Andre Noll <maan@tuebingen.mpg.de> 5516 5517 po/de.po | 6 +++--- 5518 1 file changed, 3 insertions(+), 3 deletions(-) 5519 5520commit 00502b2bedad43f0cc167ac17ae0608837ee196b 5521Author: Andre Noll <maan@tuebingen.mpg.de> 5522Date: 2014-10-14 17:30:29 +0200 5523 5524 l10n: de.po: Update German translation 5525 5526 Signed-off-by: Andre Noll <maan@systemlinux.org> 5527 5528 po/de.po | 531 +++++++++++++++++++++++++++++++++------------------------------ 5529 1 file changed, 281 insertions(+), 250 deletions(-) 5530 5531commit 706b0496753fb609e69f1570ec603f11162189d1 5532Author: Andre Noll <maan@tuebingen.mpg.de> 5533Date: 2014-10-14 17:30:28 +0200 5534 5535 l10n: de.po: Fix typo: Schießen -> Schließen. 5536 5537 That's a funny one since "schießen" means to shoot :) 5538 5539 Signed-off-by: Andre Noll <maan@systemlinux.org> 5540 5541 po/de.po | 2 +- 5542 1 file changed, 1 insertion(+), 1 deletion(-) 5543 5544commit 7c32e6a935c3d7ee366abad1679bd5f322f0c7d4 5545Author: Lasse Collin <lasse.collin@tukaani.org> 5546Date: 2014-10-09 19:42:26 +0300 5547 5548 Update THANKS. 5549 5550 THANKS | 1 + 5551 1 file changed, 1 insertion(+) 5552 5553commit 076258cc458f1e705041ac7a729b15ffe8c5214a 5554Author: Lasse Collin <lasse.collin@tukaani.org> 5555Date: 2014-10-09 19:41:51 +0300 5556 5557 Add support for AmigaOS/AROS to tuklib_physmem(). 5558 5559 Thanks to Fredrik Wikstrom. 5560 5561 m4/tuklib_physmem.m4 | 3 ++- 5562 src/common/tuklib_physmem.c | 7 +++++++ 5563 2 files changed, 9 insertions(+), 1 deletion(-) 5564 5565commit efa7b0a210e1baa8e128fc98c5443a944c39ad24 5566Author: Lasse Collin <lasse.collin@tukaani.org> 5567Date: 2014-10-09 18:42:14 +0300 5568 5569 xzgrep: Avoid passing both -q and -l to grep. 5570 5571 The behavior of grep -ql varies: 5572 - GNU grep behaves like grep -q. 5573 - OpenBSD grep behaves like grep -l. 5574 5575 POSIX doesn't make it 100 % clear what behavior is expected. 5576 Anyway, using both -q and -l at the same time makes no sense 5577 so both options simply should never be used at the same time. 5578 5579 Thanks to Christian Weisgerber. 5580 5581 src/scripts/xzgrep.in | 6 ++++-- 5582 1 file changed, 4 insertions(+), 2 deletions(-) 5583 5584commit 9c5f76098c9986b48d2fc574a0b764f4cde0c538 5585Author: Trần Ngọc Quân <vnwildman@gmail.com> 5586Date: 2014-09-25 09:22:45 +0700 5587 5588 l10n: vi.po: Update Vietnamese translation 5589 5590 Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com> 5591 5592 po/vi.po | 136 +++++++++++++++++++++++++++++++++++++++------------------------ 5593 1 file changed, 84 insertions(+), 52 deletions(-) 5594 5595commit c4911f2db36d811896c73c008b4218d8fa9a4730 5596Author: Lasse Collin <lasse.collin@tukaani.org> 5597Date: 2014-09-25 18:38:48 +0300 5598 5599 Build: Detect supported compiler warning flags better. 5600 5601 Clang and nowadays also GCC accept any -Wfoobar option 5602 but then may give a warning that an unknown warning option 5603 was specified. To avoid adding unsupported warning options, 5604 the options are now tested with -Werror. 5605 5606 Thanks to Charles Diza. 5607 5608 configure.ac | 5 +++-- 5609 1 file changed, 3 insertions(+), 2 deletions(-) 5610 5611commit 76e75522ed6f5c228d55587dee5a997893f6e474 5612Author: Lasse Collin <lasse.collin@tukaani.org> 5613Date: 2014-09-20 21:01:21 +0300 5614 5615 Update NEWS for 5.0.7. 5616 5617 NEWS | 11 +++++++++++ 5618 1 file changed, 11 insertions(+) 5619 5620commit d62028b4c1174fc67b6929f126f5eb24c018c700 5621Author: Lasse Collin <lasse.collin@tukaani.org> 5622Date: 2014-09-20 19:42:56 +0300 5623 5624 liblzma: Fix a portability problem in Makefile.am. 5625 5626 POSIX supports $< only in inference rules (suffix rules). 5627 Using it elsewhere is a GNU make extension and doesn't 5628 work e.g. with OpenBSD make. 5629 5630 Thanks to Christian Weisgerber for the patch. 5631 5632 src/liblzma/Makefile.am | 2 +- 5633 1 file changed, 1 insertion(+), 1 deletion(-) 5634 5635commit c35de31d4283edad3e57d37ffe939406542cb7bb 5636Author: Lasse Collin <lasse.collin@tukaani.org> 5637Date: 2014-09-14 21:54:09 +0300 5638 5639 Bump the version number to 5.1.4beta. 5640 5641 src/liblzma/api/lzma/version.h | 4 ++-- 5642 src/liblzma/liblzma.map | 2 +- 5643 2 files changed, 3 insertions(+), 3 deletions(-) 5644 5645commit e9e097e22cacdaa23e5414fea7913535449cb340 5646Author: Lasse Collin <lasse.collin@tukaani.org> 5647Date: 2014-09-14 21:50:13 +0300 5648 5649 Update NEWS for 5.0.6 and 5.1.4beta. 5650 5651 NEWS | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 5652 1 file changed, 50 insertions(+) 5653 5654commit 642f856bb8562ab66704b1e01ac7bc08b6d0a663 5655Author: Lasse Collin <lasse.collin@tukaani.org> 5656Date: 2014-09-14 21:02:41 +0300 5657 5658 Update TODO. 5659 5660 TODO | 38 ++++++++++++++++++++++++++++++++++---- 5661 1 file changed, 34 insertions(+), 4 deletions(-) 5662 5663commit 6b5e3b9eff5b8cedb2aac5f524d4d60fc8a48124 5664Author: Lasse Collin <lasse.collin@tukaani.org> 5665Date: 2014-08-05 22:32:36 +0300 5666 5667 xz: Add --ignore-check. 5668 5669 src/xz/args.c | 7 +++++++ 5670 src/xz/args.h | 1 + 5671 src/xz/coder.c | 10 +++++++++- 5672 src/xz/message.c | 2 ++ 5673 src/xz/xz.1 | 19 +++++++++++++++++++ 5674 5 files changed, 38 insertions(+), 1 deletion(-) 5675 5676commit 9adbc2ff373f979c917cdfd3679ce0ebd59f1040 5677Author: Lasse Collin <lasse.collin@tukaani.org> 5678Date: 2014-08-05 22:15:07 +0300 5679 5680 liblzma: Add support for LZMA_IGNORE_CHECK. 5681 5682 src/liblzma/api/lzma/container.h | 24 ++++++++++++++++++++++++ 5683 src/liblzma/common/common.h | 1 + 5684 src/liblzma/common/stream_decoder.c | 14 ++++++++++++-- 5685 3 files changed, 37 insertions(+), 2 deletions(-) 5686 5687commit 0e0f34b8e4f1c60ecaec15c2105982381cc9c3e6 5688Author: Lasse Collin <lasse.collin@tukaani.org> 5689Date: 2014-08-05 22:03:30 +0300 5690 5691 liblzma: Add support for lzma_block.ignore_check. 5692 5693 Note that this slightly changes how lzma_block_header_decode() 5694 has been documented. Earlier it said that the .version is set 5695 to the lowest required value, but now it says that the .version 5696 field is kept unchanged if possible. In practice this doesn't 5697 affect any old code, because before this commit the only 5698 possible .version was 0. 5699 5700 src/liblzma/api/lzma/block.h | 50 ++++++++++++++++++++++++------- 5701 src/liblzma/common/block_buffer_encoder.c | 2 +- 5702 src/liblzma/common/block_decoder.c | 18 ++++++++--- 5703 src/liblzma/common/block_encoder.c | 2 +- 5704 src/liblzma/common/block_header_decoder.c | 12 ++++++-- 5705 src/liblzma/common/block_header_encoder.c | 2 +- 5706 src/liblzma/common/block_util.c | 2 +- 5707 7 files changed, 68 insertions(+), 20 deletions(-) 5708 5709commit 71e1437ab585b46f7a25f5a131557d3d1c0cbaa2 5710Author: Lasse Collin <lasse.collin@tukaani.org> 5711Date: 2014-08-04 19:25:58 +0300 5712 5713 liblzma: Use lzma_memcmplen() in the BT3 match finder. 5714 5715 I had missed this when writing the commit 5716 5db75054e900fa06ef5ade5f2c21dffdd5d16141. 5717 5718 Thanks to Jun I Jin. 5719 5720 src/liblzma/lz/lz_encoder_mf.c | 5 ++--- 5721 1 file changed, 2 insertions(+), 3 deletions(-) 5722 5723commit 41dc9ea06e1414ebe8ef52afc8fc15b6e3282b04 5724Author: Lasse Collin <lasse.collin@tukaani.org> 5725Date: 2014-08-04 00:25:44 +0300 5726 5727 Update THANKS. 5728 5729 THANKS | 1 + 5730 1 file changed, 1 insertion(+) 5731 5732commit 5dcffdbcc23a68abc3ac3539b30be71bc9b5af84 5733Author: Lasse Collin <lasse.collin@tukaani.org> 5734Date: 2014-08-03 21:32:25 +0300 5735 5736 liblzma: SHA-256: Optimize the Maj macro slightly. 5737 5738 The Maj macro is used where multiple things are added 5739 together, so making Maj a sum of two expressions allows 5740 some extra freedom for the compiler to schedule the 5741 instructions. 5742 5743 I learned this trick from 5744 <http://www.hackersdelight.org/corres.txt>. 5745 5746 src/liblzma/check/sha256.c | 2 +- 5747 1 file changed, 1 insertion(+), 1 deletion(-) 5748 5749commit a9477d1e0c6fd0e47e637d051e7b9e2a5d9af517 5750Author: Lasse Collin <lasse.collin@tukaani.org> 5751Date: 2014-08-03 21:08:12 +0300 5752 5753 liblzma: SHA-256: Optimize the way rotations are done. 5754 5755 This looks weird because the rotations become sequential, 5756 but it helps quite a bit on both 32-bit and 64-bit x86: 5757 5758 - It requires fewer instructions on two-operand 5759 instruction sets like x86. 5760 5761 - It requires one register less which matters especially 5762 on 32-bit x86. 5763 5764 I hope this doesn't hurt other archs. 5765 5766 I didn't invent this idea myself, but I don't remember where 5767 I saw it first. 5768 5769 src/liblzma/check/sha256.c | 17 +++++++++++------ 5770 1 file changed, 11 insertions(+), 6 deletions(-) 5771 5772commit 5a76c7c8ee9a0afbeedb1c211db9224260404347 5773Author: Lasse Collin <lasse.collin@tukaani.org> 5774Date: 2014-08-03 20:38:13 +0300 5775 5776 liblzma: SHA-256: Remove the GCC #pragma that became unneeded. 5777 5778 The unrolling in the previous commit should avoid the 5779 situation where a compiler may think that an uninitialized 5780 variable might be accessed. 5781 5782 src/liblzma/check/sha256.c | 5 ----- 5783 1 file changed, 5 deletions(-) 5784 5785commit 9a096f8e57509775c331950b8351bbca77bdcfa8 5786Author: Lasse Collin <lasse.collin@tukaani.org> 5787Date: 2014-08-03 20:33:38 +0300 5788 5789 liblzma: SHA-256: Unroll a little more. 5790 5791 This way a branch isn't needed for each operation 5792 to choose between blk0 and blk2, and still the code 5793 doesn't grow as much as it would with full unrolling. 5794 5795 src/liblzma/check/sha256.c | 25 ++++++++++++++++--------- 5796 1 file changed, 16 insertions(+), 9 deletions(-) 5797 5798commit bc7650d87bf27f85f1a2a806dc2db1780e09e6a5 5799Author: Lasse Collin <lasse.collin@tukaani.org> 5800Date: 2014-08-03 19:56:43 +0300 5801 5802 liblzma: SHA-256: Do the byteswapping without a temporary buffer. 5803 5804 src/liblzma/check/sha256.c | 13 +------------ 5805 1 file changed, 1 insertion(+), 12 deletions(-) 5806 5807commit 544aaa3d13554e8640f9caf7db717a96360ec0f6 5808Author: Lasse Collin <lasse.collin@tukaani.org> 5809Date: 2014-07-25 22:38:28 +0300 5810 5811 liblzma: Use lzma_memcmplen() in normal mode of LZMA. 5812 5813 Two locations were not changed yet because the simplest change 5814 assumes that the initial "len" may be greater than "limit". 5815 5816 src/liblzma/lzma/lzma_encoder_optimum_normal.c | 20 +++++--------------- 5817 1 file changed, 5 insertions(+), 15 deletions(-) 5818 5819commit f48fce093b07aeda95c18850f5e086d9f2383380 5820Author: Lasse Collin <lasse.collin@tukaani.org> 5821Date: 2014-07-25 22:30:38 +0300 5822 5823 liblzma: Simplify LZMA fast mode code by using memcmp(). 5824 5825 src/liblzma/lzma/lzma_encoder_optimum_fast.c | 11 +---------- 5826 1 file changed, 1 insertion(+), 10 deletions(-) 5827 5828commit 6bf5308e34e23dede5b301b1b9b4f131dacd9218 5829Author: Lasse Collin <lasse.collin@tukaani.org> 5830Date: 2014-07-25 22:29:49 +0300 5831 5832 liblzma: Use lzma_memcmplen() in fast mode of LZMA. 5833 5834 src/liblzma/lzma/lzma_encoder_optimum_fast.c | 6 +++--- 5835 1 file changed, 3 insertions(+), 3 deletions(-) 5836 5837commit 353212137e51e45b105a3a3fc2e6879f1cf0d492 5838Author: Lasse Collin <lasse.collin@tukaani.org> 5839Date: 2014-07-25 21:16:23 +0300 5840 5841 Update THANKS. 5842 5843 THANKS | 1 + 5844 1 file changed, 1 insertion(+) 5845 5846commit 5db75054e900fa06ef5ade5f2c21dffdd5d16141 5847Author: Lasse Collin <lasse.collin@tukaani.org> 5848Date: 2014-07-25 21:15:07 +0300 5849 5850 liblzma: Use lzma_memcmplen() in the match finders. 5851 5852 This doesn't change the match finder output. 5853 5854 src/liblzma/lz/lz_encoder.c | 13 ++++++++++++- 5855 src/liblzma/lz/lz_encoder_mf.c | 33 +++++++++++---------------------- 5856 2 files changed, 23 insertions(+), 23 deletions(-) 5857 5858commit e1c8f1d01f4a4e2136173edab2dc63c71ef038f4 5859Author: Lasse Collin <lasse.collin@tukaani.org> 5860Date: 2014-07-25 20:57:20 +0300 5861 5862 liblzma: Add lzma_memcmplen() for fast memory comparison. 5863 5864 This commit just adds the function. Its uses will be in 5865 separate commits. 5866 5867 This hasn't been tested much yet and it's perhaps a bit early 5868 to commit it but if there are bugs they should get found quite 5869 quickly. 5870 5871 Thanks to Jun I Jin from Intel for help and for pointing out 5872 that string comparison needs to be optimized in liblzma. 5873 5874 configure.ac | 13 +++ 5875 src/liblzma/common/Makefile.inc | 1 + 5876 src/liblzma/common/memcmplen.h | 170 ++++++++++++++++++++++++++++++++++++++++ 5877 3 files changed, 184 insertions(+) 5878 5879commit 765735cf52e5123586e74a51b9c073b5257f631f 5880Author: Lasse Collin <lasse.collin@tukaani.org> 5881Date: 2014-07-12 21:10:09 +0300 5882 5883 Update THANKS. 5884 5885 THANKS | 1 + 5886 1 file changed, 1 insertion(+) 5887 5888commit 59da01785ef66c7e62f36e70ca808fd2824bb995 5889Author: Lasse Collin <lasse.collin@tukaani.org> 5890Date: 2014-07-12 20:06:08 +0300 5891 5892 Translations: Add Vietnamese translation. 5893 5894 Thanks to Trần Ngọc Quân. 5895 5896 po/LINGUAS | 1 + 5897 po/vi.po | 1007 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5898 2 files changed, 1008 insertions(+) 5899 5900commit 17215f751c354852700e7f8592ccf319570a0721 5901Author: Lasse Collin <lasse.collin@tukaani.org> 5902Date: 2014-06-29 20:54:14 +0300 5903 5904 xz: Update the help message of a few options. 5905 5906 Updated: --threads, --block-size, and --block-list 5907 Added: --flush-timeout 5908 5909 src/xz/message.c | 18 +++++++++++------- 5910 1 file changed, 11 insertions(+), 7 deletions(-) 5911 5912commit 96864a6ddf91ad693d102ea165f3d7918744d582 5913Author: Lasse Collin <lasse.collin@tukaani.org> 5914Date: 2014-06-18 22:07:06 +0300 5915 5916 xz: Use lzma_cputhreads() instead of own copy of tuklib_cpucores(). 5917 5918 src/xz/Makefile.am | 1 - 5919 src/xz/hardware.c | 12 +++++++++--- 5920 2 files changed, 9 insertions(+), 4 deletions(-) 5921 5922commit a115cc3748482e277f42a968baa3cd266f031dba 5923Author: Lasse Collin <lasse.collin@tukaani.org> 5924Date: 2014-06-18 22:04:24 +0300 5925 5926 liblzma: Add lzma_cputhreads(). 5927 5928 src/liblzma/Makefile.am | 8 +++++++- 5929 src/liblzma/api/lzma/hardware.h | 14 ++++++++++++++ 5930 src/liblzma/common/Makefile.inc | 1 + 5931 src/liblzma/common/hardware_cputhreads.c | 22 ++++++++++++++++++++++ 5932 src/liblzma/liblzma.map | 1 + 5933 5 files changed, 45 insertions(+), 1 deletion(-) 5934 5935commit 3ce3e7976904fbab4e6482bafa442856f77a51fa 5936Author: Lasse Collin <lasse.collin@tukaani.org> 5937Date: 2014-06-18 19:11:52 +0300 5938 5939 xz: Check for filter chain compatibility for --flush-timeout. 5940 5941 This avoids LZMA_PROG_ERROR from lzma_code() with filter chains 5942 that don't support LZMA_SYNC_FLUSH. 5943 5944 src/xz/coder.c | 30 +++++++++++++++++++++--------- 5945 1 file changed, 21 insertions(+), 9 deletions(-) 5946 5947commit 381ac14ed79e5d38809f251705be8b3193bba417 5948Author: Lasse Collin <lasse.collin@tukaani.org> 5949Date: 2014-06-13 19:21:54 +0300 5950 5951 xzgrep: List xzgrep_expected_output in tests/Makefile.am. 5952 5953 tests/Makefile.am | 3 ++- 5954 1 file changed, 2 insertions(+), 1 deletion(-) 5955 5956commit 4244b65b06d5ecaf6f9dd0387ac7e3166bd2364e 5957Author: Lasse Collin <lasse.collin@tukaani.org> 5958Date: 2014-06-13 18:58:22 +0300 5959 5960 xzgrep: Improve the test script. 5961 5962 Now it should be close to the functionality of the original 5963 version by Pavel Raiskup. 5964 5965 tests/Makefile.am | 3 ++- 5966 tests/test_scripts.sh | 24 ++++++++++++++---------- 5967 tests/xzgrep_expected_output | 39 +++++++++++++++++++++++++++++++++++++++ 5968 3 files changed, 55 insertions(+), 11 deletions(-) 5969 5970commit 1e60f2c0a0ee6c18b02943ce56214799a70aac26 5971Author: Lasse Collin <lasse.collin@tukaani.org> 5972Date: 2014-06-11 21:03:25 +0300 5973 5974 xzgrep: Add a test for the previous fix. 5975 5976 This is a simplified version of Pavel Raiskup's 5977 original patch. 5978 5979 tests/test_scripts.sh | 26 ++++++++++++++++++++++---- 5980 1 file changed, 22 insertions(+), 4 deletions(-) 5981 5982commit ceca37901783988204caaf40dff4623d535cc789 5983Author: Lasse Collin <lasse.collin@tukaani.org> 5984Date: 2014-06-11 20:43:28 +0300 5985 5986 xzgrep: exit 0 when at least one file matches. 5987 5988 Mimic the original grep behavior and return exit_success when 5989 at least one xz compressed file matches given pattern. 5990 5991 Original bugreport: 5992 https://bugzilla.redhat.com/show_bug.cgi?id=1108085 5993 5994 Thanks to Pavel Raiskup for the patch. 5995 5996 src/scripts/xzgrep.in | 15 +++++++++++++-- 5997 1 file changed, 13 insertions(+), 2 deletions(-) 5998 5999commit 8c19216baccb92d011694590df8a1262da2e980c 6000Author: Lasse Collin <lasse.collin@tukaani.org> 6001Date: 2014-06-09 21:21:24 +0300 6002 6003 xz: Force single-threaded mode when --flush-timeout is used. 6004 6005 src/xz/coder.c | 11 +++++++++++ 6006 1 file changed, 11 insertions(+) 6007 6008commit 87f1a24810805187d7bbc8ac5512e7eec307ddf5 6009Author: Lasse Collin <lasse.collin@tukaani.org> 6010Date: 2014-05-25 22:05:39 +0300 6011 6012 Update THANKS. 6013 6014 THANKS | 1 + 6015 1 file changed, 1 insertion(+) 6016 6017commit da1718f266fcfc091e7bf08aae1bc986d0e6cc6b 6018Author: Lasse Collin <lasse.collin@tukaani.org> 6019Date: 2014-05-25 21:45:56 +0300 6020 6021 liblzma: Use lzma_alloc_zero() in LZ encoder initialization. 6022 6023 This avoids a memzero() call for a newly-allocated memory, 6024 which can be expensive when encoding small streams with 6025 an over-sized dictionary. 6026 6027 To avoid using lzma_alloc_zero() for memory that doesn't 6028 need to be zeroed, lzma_mf.son is now allocated separately, 6029 which requires handling it separately in normalize() too. 6030 6031 Thanks to Vincenzo Innocente for reporting the problem. 6032 6033 src/liblzma/lz/lz_encoder.c | 84 ++++++++++++++++++++++-------------------- 6034 src/liblzma/lz/lz_encoder.h | 2 +- 6035 src/liblzma/lz/lz_encoder_mf.c | 31 +++++++++------- 6036 3 files changed, 62 insertions(+), 55 deletions(-) 6037 6038commit 28af24e9cf2eb259997c85dce13d4c97b3daa47a 6039Author: Lasse Collin <lasse.collin@tukaani.org> 6040Date: 2014-05-25 19:25:57 +0300 6041 6042 liblzma: Add the internal function lzma_alloc_zero(). 6043 6044 src/liblzma/common/common.c | 21 +++++++++++++++++++++ 6045 src/liblzma/common/common.h | 6 ++++++ 6046 2 files changed, 27 insertions(+) 6047 6048commit ed9ac85822c490e34b68c259afa0b385d21d1c40 6049Author: Lasse Collin <lasse.collin@tukaani.org> 6050Date: 2014-05-08 18:03:09 +0300 6051 6052 xz: Fix uint64_t vs. size_t which broke 32-bit build. 6053 6054 Thanks to Christian Hesse. 6055 6056 src/xz/coder.c | 2 +- 6057 1 file changed, 1 insertion(+), 1 deletion(-) 6058 6059commit d716acdae3fa7996f9e68a7bac012e6d8d13dd02 6060Author: Lasse Collin <lasse.collin@tukaani.org> 6061Date: 2014-05-04 11:09:11 +0300 6062 6063 Docs: Update comments to refer to lzma/lzma12.h in example programs. 6064 6065 doc/examples/03_compress_custom.c | 6 +++--- 6066 1 file changed, 3 insertions(+), 3 deletions(-) 6067 6068commit 4d5b7b3fda31241ca86ed35e08e73f776ee916e0 6069Author: Lasse Collin <lasse.collin@tukaani.org> 6070Date: 2014-05-04 11:07:17 +0300 6071 6072 liblzma: Rename the private API header lzma/lzma.h to lzma/lzma12.h. 6073 6074 It can be confusing that two header files have the same name. 6075 The public API file is still lzma.h. 6076 6077 src/liblzma/api/Makefile.am | 2 +- 6078 src/liblzma/api/lzma.h | 2 +- 6079 src/liblzma/api/lzma/{lzma.h => lzma12.h} | 2 +- 6080 3 files changed, 3 insertions(+), 3 deletions(-) 6081 6082commit 1555a9c5664afc7893a2b75e9970105437f01ef1 6083Author: Lasse Collin <lasse.collin@tukaani.org> 6084Date: 2014-04-25 17:53:42 +0300 6085 6086 Build: Fix the combination of --disable-xzdec --enable-lzmadec. 6087 6088 In this case "make install" could fail if the man page directory 6089 didn't already exist at the destination. If it did exist, a 6090 dangling symlink was created there. Now the link is omitted 6091 instead. This isn't the best fix but it's better than the old 6092 behavior. 6093 6094 src/xzdec/Makefile.am | 10 +++++++++- 6095 1 file changed, 9 insertions(+), 1 deletion(-) 6096 6097commit 56056571df3377eaa6ae6233b3ccc5d72e81d43d 6098Author: Lasse Collin <lasse.collin@tukaani.org> 6099Date: 2014-04-25 17:44:26 +0300 6100 6101 Build: Add --disable-doc to configure. 6102 6103 INSTALL | 6 ++++++ 6104 Makefile.am | 2 ++ 6105 configure.ac | 6 ++++++ 6106 3 files changed, 14 insertions(+) 6107 6108commit 6de61d8721097a6214810841aa85b08e303ac538 6109Author: Lasse Collin <lasse.collin@tukaani.org> 6110Date: 2014-04-24 18:06:24 +0300 6111 6112 Update INSTALL. 6113 6114 Add a note about failing "make check". The source of 6115 the problem should be fixed in libtool (if it really is 6116 a libtool bug and not mine) but I'm unable to spend time 6117 on that for now. Thanks to Nelson H. F. Beebe for reporting 6118 the issue. 6119 6120 Add a note about a possible need to run "ldconfig" after 6121 "make install". 6122 6123 INSTALL | 25 +++++++++++++++++++++++++ 6124 1 file changed, 25 insertions(+) 6125 6126commit 54df428799a8d853639b753d0e6784694d73eb3e 6127Author: Lasse Collin <lasse.collin@tukaani.org> 6128Date: 2014-04-09 17:26:10 +0300 6129 6130 xz: Rename a variable to avoid a namespace collision on Solaris. 6131 6132 I don't know the details but I have an impression that there's 6133 no problem in practice if using GCC since people have built xz 6134 with GCC (without patching xz), but renaming the variable cannot 6135 hurt either. 6136 6137 Thanks to Mark Ashley. 6138 6139 src/xz/signals.c | 12 +++++++----- 6140 1 file changed, 7 insertions(+), 5 deletions(-) 6141 6142commit 5876ca27daa1429676b1160007d9688266907f00 6143Author: Lasse Collin <lasse.collin@tukaani.org> 6144Date: 2014-01-29 20:19:41 +0200 6145 6146 Docs: Add example program for threaded encoding. 6147 6148 I didn't add -DLZMA_UNSTABLE to Makefile so one has to 6149 specify it manually as long as LZMA_UNSTABLE is needed. 6150 6151 doc/examples/04_compress_easy_mt.c | 184 +++++++++++++++++++++++++++++++++++++ 6152 doc/examples/Makefile | 3 +- 6153 2 files changed, 186 insertions(+), 1 deletion(-) 6154 6155commit 9494fb6d0ff41c585326f00aa8f7fe58f8106a5e 6156Author: Lasse Collin <lasse.collin@tukaani.org> 6157Date: 2014-01-29 20:13:51 +0200 6158 6159 liblzma: Fix lzma_mt.preset not working with lzma_stream_encoder_mt(). 6160 6161 It read the filter chain from a wrong variable. 6162 6163 src/liblzma/common/stream_encoder_mt.c | 4 ++-- 6164 1 file changed, 2 insertions(+), 2 deletions(-) 6165 6166commit 673a4cb53de3a715685cb1b836da57a3c7dcd43c 6167Author: Lasse Collin <lasse.collin@tukaani.org> 6168Date: 2014-01-20 11:20:40 +0200 6169 6170 liblzma: Fix typo in a comment. 6171 6172 src/liblzma/api/lzma/block.h | 2 +- 6173 1 file changed, 1 insertion(+), 1 deletion(-) 6174 6175commit ad96a871a1470eb76d6233d3890ce9338047b7a3 6176Author: Lasse Collin <lasse.collin@tukaani.org> 6177Date: 2014-01-12 19:38:43 +0200 6178 6179 Windows: Add config.h for building liblzma with MSVC 2013. 6180 6181 This is for building liblzma. Building xz tool too requires 6182 a little more work. Maybe it will be supported, but for most 6183 MSVC users it's enough to be able to build liblzma. 6184 6185 C99 support in MSVC 2013 is almost usable which is a big 6186 improvement over earlier versions. It's "almost" because 6187 there's a dumb bug that breaks mixed declarations after 6188 an "if" statements unless the "if" statement uses braces: 6189 6190 https://connect.microsoft.com/VisualStudio/feedback/details/808650/visual-studio-2013-c99-compiler-bug 6191 https://connect.microsoft.com/VisualStudio/feedback/details/808472/c99-support-of-mixed-declarations-and-statements-fails-with-certain-types-and-constructs 6192 6193 Hopefully it will get fixed. Then liblzma should be 6194 compilable with MSVC 2013 without patching. 6195 6196 windows/config.h | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 6197 1 file changed, 139 insertions(+) 6198 6199commit 3d5c090872fab4212b57c290e8ed4d02c78c1737 6200Author: Lasse Collin <lasse.collin@tukaani.org> 6201Date: 2014-01-12 17:41:14 +0200 6202 6203 xz: Fix a comment. 6204 6205 src/xz/coder.c | 4 ++-- 6206 1 file changed, 2 insertions(+), 2 deletions(-) 6207 6208commit 69fd4e1c932c7975476a0143c86e45d81b60d3f9 6209Author: Lasse Collin <lasse.collin@tukaani.org> 6210Date: 2014-01-12 17:04:33 +0200 6211 6212 Windows: Add MSVC defines for inline and restrict keywords. 6213 6214 src/common/sysdefs.h | 10 ++++++++++ 6215 1 file changed, 10 insertions(+) 6216 6217commit a19d9e8575ee6647cd9154cf1f20203f1330485f 6218Author: Lasse Collin <lasse.collin@tukaani.org> 6219Date: 2014-01-12 16:44:52 +0200 6220 6221 liblzma: Avoid C99 compound literal arrays. 6222 6223 MSVC 2013 doesn't like them. Maybe they aren't so good 6224 for readability either since many aren't used to them. 6225 6226 src/liblzma/lzma/lzma_encoder_presets.c | 8 +++++--- 6227 1 file changed, 5 insertions(+), 3 deletions(-) 6228 6229commit e28528f1c867b2ed4ac91195ad08efb9bb8a6263 6230Author: Lasse Collin <lasse.collin@tukaani.org> 6231Date: 2014-01-12 12:50:30 +0200 6232 6233 liblzma: Remove a useless C99ism from sha256.c. 6234 6235 Unsurprisingly it makes no difference in compiled output. 6236 6237 src/liblzma/check/sha256.c | 2 +- 6238 1 file changed, 1 insertion(+), 1 deletion(-) 6239 6240commit 5ad1effc45adfb7dabc9a98e79736077e6b7e2d5 6241Author: Lasse Collin <lasse.collin@tukaani.org> 6242Date: 2014-01-12 12:17:08 +0200 6243 6244 xz: Fix use of wrong variable. 6245 6246 Since the only call to suffix_set() uses optarg 6247 as the argument, fixing this bug doesn't change 6248 the behavior of the program. 6249 6250 src/xz/suffix.c | 2 +- 6251 1 file changed, 1 insertion(+), 1 deletion(-) 6252 6253commit 3e62c68d75b5a3fdd46dbb34bb335d73289860d5 6254Author: Lasse Collin <lasse.collin@tukaani.org> 6255Date: 2014-01-12 12:11:36 +0200 6256 6257 Fix typos in comments. 6258 6259 src/common/mythread.h | 2 +- 6260 src/liblzma/check/crc32_fast.c | 2 +- 6261 2 files changed, 2 insertions(+), 2 deletions(-) 6262 6263commit e90ea601fb72867ec04adf456cbe4bf9520fd412 6264Author: Lasse Collin <lasse.collin@tukaani.org> 6265Date: 2013-11-26 18:20:16 +0200 6266 6267 Update THANKS. 6268 6269 THANKS | 1 + 6270 1 file changed, 1 insertion(+) 6271 6272commit b22e94d8d15764416354e04729382a7371ae2c30 6273Author: Lasse Collin <lasse.collin@tukaani.org> 6274Date: 2013-11-26 18:20:09 +0200 6275 6276 liblzma: Document the need for block->check for lzma_block_header_decode(). 6277 6278 Thanks to Tomer Chachamu. 6279 6280 src/liblzma/api/lzma/block.h | 3 +++ 6281 1 file changed, 3 insertions(+) 6282 6283commit d1cd8b1cb824b72421d1ee370e628024d2fcbec4 6284Author: Lasse Collin <lasse.collin@tukaani.org> 6285Date: 2013-11-12 16:38:57 +0200 6286 6287 xz: Update the man page about --block-size and --block-list. 6288 6289 src/xz/xz.1 | 24 +++++++++++++++--------- 6290 1 file changed, 15 insertions(+), 9 deletions(-) 6291 6292commit 76be7c612e6bcc38724488ccc3b8bcb1cfec9f0a 6293Author: Lasse Collin <lasse.collin@tukaani.org> 6294Date: 2013-11-12 16:30:53 +0200 6295 6296 Update THANKS. 6297 6298 THANKS | 1 + 6299 1 file changed, 1 insertion(+) 6300 6301commit dd750acbe2259d75444ef0f8da2d4bacc90d7afc 6302Author: Lasse Collin <lasse.collin@tukaani.org> 6303Date: 2013-11-12 16:29:48 +0200 6304 6305 xz: Make --block-list and --block-size work together in single-threaded. 6306 6307 Previously, --block-list and --block-size only worked together 6308 in threaded mode. Boundaries are specified by --block-list, but 6309 --block-size specifies the maximum size for a Block. Now this 6310 works in single-threaded mode too. 6311 6312 Thanks to James M Leddy for the original patch. 6313 6314 src/xz/coder.c | 90 ++++++++++++++++++++++++++++++++++++++++++++++++---------- 6315 1 file changed, 75 insertions(+), 15 deletions(-) 6316 6317commit ae222fe9805d0161d022d75ba8485dab8bf6d7d5 6318Author: Lasse Collin <lasse.collin@tukaani.org> 6319Date: 2013-10-26 13:26:14 +0300 6320 6321 Bump the version number to 5.1.3alpha. 6322 6323 src/liblzma/api/lzma/version.h | 2 +- 6324 src/liblzma/liblzma.map | 2 +- 6325 2 files changed, 2 insertions(+), 2 deletions(-) 6326 6327commit 2193837a6a597cd3bf4e9ddf49421a5697d8e155 6328Author: Lasse Collin <lasse.collin@tukaani.org> 6329Date: 2013-10-26 13:25:02 +0300 6330 6331 Update NEWS for 5.1.3alpha. 6332 6333 NEWS | 35 +++++++++++++++++++++++++++++++++++ 6334 1 file changed, 35 insertions(+) 6335 6336commit ed48e75e2763876173aef8902da407a8eb28854b 6337Author: Lasse Collin <lasse.collin@tukaani.org> 6338Date: 2013-10-26 12:47:04 +0300 6339 6340 Update TODO. 6341 6342 TODO | 4 ---- 6343 1 file changed, 4 deletions(-) 6344 6345commit 841da0352d79a56a44796a4c39163429c9f039a3 6346Author: Lasse Collin <lasse.collin@tukaani.org> 6347Date: 2013-10-25 22:41:28 +0300 6348 6349 xz: Document behavior of --block-list with threads. 6350 6351 This needs to be updated before 5.2.0. 6352 6353 src/xz/xz.1 | 24 +++++++++++++++++++++--- 6354 1 file changed, 21 insertions(+), 3 deletions(-) 6355 6356commit 56feb8665b78c1032aabd53c619c62af51defe64 6357Author: Lasse Collin <lasse.collin@tukaani.org> 6358Date: 2013-10-22 20:03:12 +0300 6359 6360 xz: Document --flush-timeout=TIMEOUT on the man page. 6361 6362 src/xz/xz.1 | 37 ++++++++++++++++++++++++++++++++++++- 6363 1 file changed, 36 insertions(+), 1 deletion(-) 6364 6365commit ba413da1d5bb3324287cf3174922acd921165971 6366Author: Lasse Collin <lasse.collin@tukaani.org> 6367Date: 2013-10-22 19:51:55 +0300 6368 6369 xz: Take advantage of LZMA_FULL_BARRIER with --block-list. 6370 6371 Now if --block-list is used in threaded mode, the encoder 6372 won't need to flush at each Block boundary specified via 6373 --block-list. This improves performance a lot, making 6374 threading helpful with --block-list. 6375 6376 The flush timer was reset after LZMA_FULL_FLUSH but since 6377 LZMA_FULL_BARRIER doesn't flush, resetting the timer is 6378 no longer done. 6379 6380 src/xz/coder.c | 32 +++++++++++++++----------------- 6381 1 file changed, 15 insertions(+), 17 deletions(-) 6382 6383commit 0cd45fc2bc5537de287a0bc005e2d67467a92148 6384Author: Lasse Collin <lasse.collin@tukaani.org> 6385Date: 2013-10-02 20:05:23 +0300 6386 6387 liblzma: Support LZMA_FULL_FLUSH and _BARRIER in threaded encoder. 6388 6389 Now --block-list=SIZES works with in the threaded mode too, 6390 although the performance is still bad due to the use of 6391 LZMA_FULL_FLUSH instead of the new LZMA_FULL_BARRIER. 6392 6393 src/liblzma/common/stream_encoder_mt.c | 55 ++++++++++++++++++++++++---------- 6394 1 file changed, 39 insertions(+), 16 deletions(-) 6395 6396commit 97bb38712f414fabecca908af2e38a12570293fd 6397Author: Lasse Collin <lasse.collin@tukaani.org> 6398Date: 2013-10-02 12:55:11 +0300 6399 6400 liblzma: Add LZMA_FULL_BARRIER support to single-threaded encoder. 6401 6402 In the single-threaded encoder LZMA_FULL_BARRIER is simply 6403 an alias for LZMA_FULL_FLUSH. 6404 6405 src/liblzma/api/lzma/base.h | 37 ++++++++++++++++++++++++++++++------- 6406 src/liblzma/common/common.c | 17 +++++++++++++++-- 6407 src/liblzma/common/common.h | 7 ++++++- 6408 src/liblzma/common/stream_encoder.c | 4 +++- 6409 4 files changed, 54 insertions(+), 11 deletions(-) 6410 6411commit fef0c6b410c08e581c9178700a4e7599f0895ff9 6412Author: Lasse Collin <lasse.collin@tukaani.org> 6413Date: 2013-09-17 11:57:51 +0300 6414 6415 liblzma: Add block_buffer_encoder.h into Makefile.inc. 6416 6417 This should have been in b465da5988dd59ad98fda10c2e4ea13d0b9c73bc. 6418 6419 src/liblzma/common/Makefile.inc | 1 + 6420 1 file changed, 1 insertion(+) 6421 6422commit 8083e03291b6d21c0f538163e187b4e8cd5594e4 6423Author: Lasse Collin <lasse.collin@tukaani.org> 6424Date: 2013-09-17 11:55:38 +0300 6425 6426 xz: Add a missing test for TUKLIB_DOSLIKE. 6427 6428 src/xz/file_io.c | 2 ++ 6429 1 file changed, 2 insertions(+) 6430 6431commit 6b44b4a775fe29ecc7bcb7996e086e3bc09e5fd0 6432Author: Lasse Collin <lasse.collin@tukaani.org> 6433Date: 2013-09-17 11:52:28 +0300 6434 6435 Add native threading support on Windows. 6436 6437 Now liblzma only uses "mythread" functions and types 6438 which are defined in mythread.h matching the desired 6439 threading method. 6440 6441 Before Windows Vista, there is no direct equivalent to 6442 pthread condition variables. Since this package doesn't 6443 use pthread_cond_broadcast(), pre-Vista threading can 6444 still be kept quite simple. The pre-Vista code doesn't 6445 use anything that wasn't already available in Windows 95, 6446 so the binaries should run even on Windows 95 if someone 6447 happens to care. 6448 6449 INSTALL | 41 ++- 6450 configure.ac | 118 ++++++-- 6451 src/common/mythread.h | 513 ++++++++++++++++++++++++++------- 6452 src/liblzma/common/stream_encoder_mt.c | 83 +++--- 6453 src/xz/coder.c | 8 +- 6454 windows/README-Windows.txt | 2 +- 6455 windows/build.bash | 23 +- 6456 7 files changed, 573 insertions(+), 215 deletions(-) 6457 6458commit ae0ab74a88d5b9b15845f1d9a24ade4349a54f9f 6459Author: Lasse Collin <lasse.collin@tukaani.org> 6460Date: 2013-09-11 14:40:35 +0300 6461 6462 Build: Remove a comment about Automake 1.10 from configure.ac. 6463 6464 The previous commit supports silent rules and that requires 6465 Automake 1.11. 6466 6467 configure.ac | 2 -- 6468 1 file changed, 2 deletions(-) 6469 6470commit 72975df6c8c59aaf849138ab3606e8fb6970596a 6471Author: Lasse Collin <lasse.collin@tukaani.org> 6472Date: 2013-09-09 20:37:03 +0300 6473 6474 Build: Create liblzma.pc in a src/liblzma/Makefile.am. 6475 6476 Previously it was done in configure, but doing that goes 6477 against the Autoconf manual. Autoconf requires that it is 6478 possible to override e.g. prefix after running configure 6479 and that doesn't work correctly if liblzma.pc is created 6480 by configure. 6481 6482 A potential downside of this change is that now e.g. 6483 libdir in liblzma.pc is a standalone string instead of 6484 being defined via ${prefix}, so if one overrides prefix 6485 when running pkg-config the libdir won't get the new value. 6486 I don't know if this matters in practice. 6487 6488 Thanks to Vincent Torri. 6489 6490 configure.ac | 1 - 6491 src/liblzma/Makefile.am | 20 ++++++++++++++++++++ 6492 2 files changed, 20 insertions(+), 1 deletion(-) 6493 6494commit 1c2b6e7e8382ed390f53e140f160488bb2205ecc 6495Author: Lasse Collin <lasse.collin@tukaani.org> 6496Date: 2013-08-04 15:24:09 +0300 6497 6498 Fix the previous commit which broke the build. 6499 6500 Apparently I didn't even compile-test the previous commit. 6501 6502 Thanks to Christian Hesse. 6503 6504 src/common/tuklib_cpucores.c | 2 +- 6505 1 file changed, 1 insertion(+), 1 deletion(-) 6506 6507commit 124eb69c7857f618b4807588c51bc9ba21bf8691 6508Author: Lasse Collin <lasse.collin@tukaani.org> 6509Date: 2013-08-03 13:52:58 +0300 6510 6511 Windows: Add Windows support to tuklib_cpucores(). 6512 6513 It is used for Cygwin too. I'm not sure if that is 6514 a good or bad idea. 6515 6516 Thanks to Vincent Torri. 6517 6518 m4/tuklib_cpucores.m4 | 19 +++++++++++++++++-- 6519 src/common/tuklib_cpucores.c | 13 ++++++++++++- 6520 2 files changed, 29 insertions(+), 3 deletions(-) 6521 6522commit eada8a875ce3fd521cb42e4ace2624d3d49c5f35 6523Author: Anders F Bjorklund <afb@users.sourceforge.net> 6524Date: 2013-08-02 15:59:46 +0200 6525 6526 macosx: separate liblzma package 6527 6528 macosx/build.sh | 23 +++++++++++++++-------- 6529 1 file changed, 15 insertions(+), 8 deletions(-) 6530 6531commit be0100d01ca6a75899d051bee00acf17e6dc0c15 6532Author: Anders F Bjorklund <afb@users.sourceforge.net> 6533Date: 2013-08-02 15:58:44 +0200 6534 6535 macosx: set minimum to leopard 6536 6537 macosx/build.sh | 13 ++++++++----- 6538 1 file changed, 8 insertions(+), 5 deletions(-) 6539 6540commit 416729e2d743f4b2fe9fd438eedeb98adce033c3 6541Author: Anders F Bjorklund <afb@users.sourceforge.net> 6542Date: 2011-08-07 13:13:30 +0200 6543 6544 move configurables into variables 6545 6546 macosx/build.sh | 25 ++++++++++++++++++------- 6547 1 file changed, 18 insertions(+), 7 deletions(-) 6548 6549commit 16581080e5f29f9a4e49efece21c5bf572323acc 6550Author: Lasse Collin <lasse.collin@tukaani.org> 6551Date: 2013-07-15 14:08:41 +0300 6552 6553 Update THANKS. 6554 6555 THANKS | 1 + 6556 1 file changed, 1 insertion(+) 6557 6558commit 3e2b198ba37b624efd9c7caee2a435dc986b46c6 6559Author: Lasse Collin <lasse.collin@tukaani.org> 6560Date: 2013-07-15 14:08:02 +0300 6561 6562 Build: Fix the detection of missing CRC32. 6563 6564 Thanks to Vincent Torri. 6565 6566 configure.ac | 2 +- 6567 1 file changed, 1 insertion(+), 1 deletion(-) 6568 6569commit dee6ad3d5915422bc30a6821efeacaeb8ca8ef00 6570Author: Lasse Collin <lasse.collin@tukaani.org> 6571Date: 2013-07-04 14:18:46 +0300 6572 6573 xz: Add preliminary support for --flush-timeout=TIMEOUT. 6574 6575 When --flush-timeout=TIMEOUT is used, xz will use 6576 LZMA_SYNC_FLUSH if read() would block and at least 6577 TIMEOUT milliseconds has elapsed since the previous flush. 6578 6579 This can be useful in realtime-like use cases where the 6580 data is simultanously decompressed by another process 6581 (possibly on a different computer). If new uncompressed 6582 input data is produced slowly, without this option xz could 6583 buffer the data for a long time until it would become 6584 decompressible from the output. 6585 6586 If TIMEOUT is 0, the feature is disabled. This is the default. 6587 6588 This commit affects the compression side. Using xz for 6589 the decompression side for the above purpose doesn't work 6590 yet so well because there is quite a bit of input and 6591 output buffering when decompressing. 6592 6593 The --long-help or man page were not updated yet. 6594 The details of this feature may change. 6595 6596 src/xz/args.c | 7 +++++++ 6597 src/xz/coder.c | 46 +++++++++++++++++++++++++++++++++++----------- 6598 src/xz/file_io.c | 46 ++++++++++++++++++++++++++++++++++++---------- 6599 3 files changed, 78 insertions(+), 21 deletions(-) 6600 6601commit fa381acaf9a29a8114e1c0a97de99bab9adb014e 6602Author: Lasse Collin <lasse.collin@tukaani.org> 6603Date: 2013-07-04 13:41:03 +0300 6604 6605 xz: Don't set src_eof=true after an I/O error because it's useless. 6606 6607 src/xz/file_io.c | 3 --- 6608 1 file changed, 3 deletions(-) 6609 6610commit ea00545beace5b950f709ec21e46878e0f448678 6611Author: Lasse Collin <lasse.collin@tukaani.org> 6612Date: 2013-07-04 13:25:11 +0300 6613 6614 xz: Fix the test when to read more input. 6615 6616 Testing for end of file was no longer correct after full flushing 6617 became possible with --block-size=SIZE and --block-list=SIZES. 6618 There was no bug in practice though because xz just made a few 6619 unneeded zero-byte reads. 6620 6621 src/xz/coder.c | 6 +++--- 6622 1 file changed, 3 insertions(+), 3 deletions(-) 6623 6624commit 736903c64bef394c06685d79908e397bcb08b88f 6625Author: Lasse Collin <lasse.collin@tukaani.org> 6626Date: 2013-07-04 12:51:57 +0300 6627 6628 xz: Move some of the timing code into mytime.[hc]. 6629 6630 This switches units from microseconds to milliseconds. 6631 6632 New clock_gettime(CLOCK_MONOTONIC) will be used if available. 6633 There is still a fallback to gettimeofday(). 6634 6635 src/xz/Makefile.am | 2 ++ 6636 src/xz/coder.c | 5 +++ 6637 src/xz/message.c | 54 +++++++++------------------------ 6638 src/xz/mytime.c | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 6639 src/xz/mytime.h | 47 ++++++++++++++++++++++++++++ 6640 src/xz/private.h | 1 + 6641 6 files changed, 158 insertions(+), 40 deletions(-) 6642 6643commit 24edf8d807e24ffaa1e793114d94cca3b970027d 6644Author: Lasse Collin <lasse.collin@tukaani.org> 6645Date: 2013-07-01 14:35:03 +0300 6646 6647 Update THANKS. 6648 6649 THANKS | 1 + 6650 1 file changed, 1 insertion(+) 6651 6652commit c0627b3fceacfa1ed162f5f55235360ea26f569a 6653Author: Lasse Collin <lasse.collin@tukaani.org> 6654Date: 2013-07-01 14:34:11 +0300 6655 6656 xz: Silence a warning seen with _FORTIFY_SOURCE=2. 6657 6658 Thanks to Christian Hesse. 6659 6660 src/xz/file_io.c | 8 +++++++- 6661 1 file changed, 7 insertions(+), 1 deletion(-) 6662 6663commit 1936718bb38ee394bd89836fdd4eabc0beb02443 6664Author: Lasse Collin <lasse.collin@tukaani.org> 6665Date: 2013-06-30 19:40:11 +0300 6666 6667 Update NEWS for 5.0.5. 6668 6669 NEWS | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 6670 1 file changed, 52 insertions(+) 6671 6672commit a37ae8b5eb6093a530198f109c6f7a538c80ecf0 6673Author: Lasse Collin <lasse.collin@tukaani.org> 6674Date: 2013-06-30 18:02:27 +0300 6675 6676 Man pages: Use similar syntax for synopsis as in xz. 6677 6678 The man pages of lzmainfo, xzmore, and xzdec had similar 6679 constructs as the man page of xz had before the commit 6680 eb6ca9854b8eb9fbf72497c1cf608d6b19d2d494. Eric S. Raymond 6681 didn't mention these man pages in his bug report, but 6682 it's nice to be consistent. 6683 6684 src/lzmainfo/lzmainfo.1 | 4 ++-- 6685 src/scripts/xzmore.1 | 6 +++--- 6686 src/xzdec/xzdec.1 | 10 +++++----- 6687 3 files changed, 10 insertions(+), 10 deletions(-) 6688 6689commit cdba9ddd870ae72fd6219a125662c20ec997f86c 6690Author: Lasse Collin <lasse.collin@tukaani.org> 6691Date: 2013-06-29 15:59:13 +0300 6692 6693 xz: Use non-blocking I/O for the output file. 6694 6695 Now both reading and writing should be without 6696 race conditions with signals. 6697 6698 They might still be signal handling issues left. 6699 Signals are blocked during many operations to avoid 6700 EINTR but it may cause problems e.g. if writing to 6701 stderr blocks when trying to display an error message. 6702 6703 src/xz/file_io.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++++-------- 6704 1 file changed, 49 insertions(+), 8 deletions(-) 6705 6706commit e61a5c95da3fe31281d959e5e842885a8ba2b5bd 6707Author: Lasse Collin <lasse.collin@tukaani.org> 6708Date: 2013-06-28 23:56:17 +0300 6709 6710 xz: Fix return value type in io_write_buf(). 6711 6712 It didn't affect the behavior of the code since -1 6713 becomes true anyway. 6714 6715 src/xz/file_io.c | 2 +- 6716 1 file changed, 1 insertion(+), 1 deletion(-) 6717 6718commit 9dc319eabb34a826f4945f91c71620f14a60e9e2 6719Author: Lasse Collin <lasse.collin@tukaani.org> 6720Date: 2013-06-28 23:48:05 +0300 6721 6722 xz: Use the self-pipe trick to avoid a race condition with signals. 6723 6724 It is possible that a signal to set user_abort arrives right 6725 before a blocking system call is made. In this case the call 6726 may block until another signal arrives, while the wanted 6727 behavior is to make xz clean up and exit as soon as possible. 6728 6729 After this commit, the race condition is avoided with the 6730 input side which already uses non-blocking I/O. The output 6731 side still uses blocking I/O and thus has the race condition. 6732 6733 src/xz/file_io.c | 56 ++++++++++++++++++++++++++++++++++++++++++++------------ 6734 src/xz/file_io.h | 8 ++++++++ 6735 src/xz/signals.c | 5 +++++ 6736 3 files changed, 57 insertions(+), 12 deletions(-) 6737 6738commit 3541bc79d0cfabc0ad155c99bfdad1289f17fec3 6739Author: Lasse Collin <lasse.collin@tukaani.org> 6740Date: 2013-06-28 22:51:02 +0300 6741 6742 xz: Use non-blocking I/O for the input file. 6743 6744 src/xz/file_io.c | 156 +++++++++++++++++++++++++++++++++++++++---------------- 6745 1 file changed, 111 insertions(+), 45 deletions(-) 6746 6747commit 78673a08bed5066c81e8a8e90d20e670c28ecfd5 6748Author: Lasse Collin <lasse.collin@tukaani.org> 6749Date: 2013-06-28 18:46:13 +0300 6750 6751 xz: Remove an outdated NetBSD-specific comment. 6752 6753 Nowadays errno == EFTYPE is documented in open(2). 6754 6755 src/xz/file_io.c | 4 ---- 6756 1 file changed, 4 deletions(-) 6757 6758commit a616fdad34b48b2932ef03fb87309dcc8b829527 6759Author: Lasse Collin <lasse.collin@tukaani.org> 6760Date: 2013-06-28 18:09:47 +0300 6761 6762 xz: Fix error detection of fcntl(fd, F_SETFL, flags) calls. 6763 6764 POSIX says that fcntl(fd, F_SETFL, flags) returns -1 on 6765 error and "other than -1" on success. This is how it is 6766 documented e.g. on OpenBSD too. On Linux, success with 6767 F_SETFL is always 0 (at least accorinding to fcntl(2) 6768 from man-pages 3.51). 6769 6770 src/xz/file_io.c | 8 ++++---- 6771 1 file changed, 4 insertions(+), 4 deletions(-) 6772 6773commit 4a08a6e4c61c65ab763ab314100a6d7a3bb89298 6774Author: Lasse Collin <lasse.collin@tukaani.org> 6775Date: 2013-06-28 17:36:47 +0300 6776 6777 xz: Fix use of wrong variable in a fcntl() call. 6778 6779 Due to a wrong variable name, when writing a sparse file 6780 to standard output, *all* file status flags were cleared 6781 (to the extent the operating system allowed it) instead of 6782 only clearing the O_APPEND flag. In practice this worked 6783 fine in the common situations on GNU/Linux, but I didn't 6784 check how it behaved elsewhere. 6785 6786 The original flags were still restored correctly. I still 6787 changed the code to use a separate boolean variable to 6788 indicate when the flags should be restored instead of 6789 relying on a special value in stdout_flags. 6790 6791 src/xz/file_io.c | 24 +++++++++++++----------- 6792 1 file changed, 13 insertions(+), 11 deletions(-) 6793 6794commit b790b435daa3351067f80a5973b647f8d55367a2 6795Author: Lasse Collin <lasse.collin@tukaani.org> 6796Date: 2013-06-28 14:55:37 +0300 6797 6798 xz: Fix assertion related to posix_fadvise(). 6799 6800 Input file can be a FIFO or something else that doesn't 6801 support posix_fadvise() so don't check the return value 6802 even with an assertion. Nothing bad happens if the call 6803 to posix_fadvise() fails. 6804 6805 src/xz/file_io.c | 10 ++-------- 6806 1 file changed, 2 insertions(+), 8 deletions(-) 6807 6808commit 84d2da6c9dc252f441deb7626c2522202b005d4d 6809Author: Lasse Collin <lasse.collin@tukaani.org> 6810Date: 2013-06-26 13:30:57 +0300 6811 6812 xz: Check the value of lzma_stream_flags.version in --list. 6813 6814 It is a no-op for now, but if an old xz version is used 6815 together with a newer liblzma that supports something new, 6816 then this check becomes important and will stop the old xz 6817 from trying to parse files that it won't understand. 6818 6819 src/xz/list.c | 14 ++++++++++++++ 6820 1 file changed, 14 insertions(+) 6821 6822commit 9376f5f8f762296f2173d61af9101112c36f38c0 6823Author: Lasse Collin <lasse.collin@tukaani.org> 6824Date: 2013-06-26 12:17:00 +0300 6825 6826 Build: Require Automake 1.12 and use serial-tests option. 6827 6828 It should actually still work with Automake 1.10 if 6829 the serial-tests option is removed. Automake 1.13 started 6830 using parallel tests by default and the option to get 6831 the old behavior isn't supported before 1.12. 6832 6833 At least for now, parallel tests don't improve anything 6834 in XZ Utils but they hide the progress output from 6835 test_compress.sh. 6836 6837 configure.ac | 4 +++- 6838 1 file changed, 3 insertions(+), 1 deletion(-) 6839 6840commit b7e200d7bd0a3c7c171c13ad37d68296d6f73374 6841Author: Lasse Collin <lasse.collin@tukaani.org> 6842Date: 2013-06-23 18:59:13 +0300 6843 6844 Update THANKS. 6845 6846 THANKS | 1 + 6847 1 file changed, 1 insertion(+) 6848 6849commit 46540e4c10923e363741ff5aab99e79fc0ce6ee8 6850Author: Lasse Collin <lasse.collin@tukaani.org> 6851Date: 2013-06-23 18:57:23 +0300 6852 6853 liblzma: Avoid a warning about a shadowed variable. 6854 6855 On Mac OS X wait() is declared in <sys/wait.h> that 6856 we include one way or other so don't use "wait" as 6857 a variable name. 6858 6859 Thanks to Christian Kujau. 6860 6861 src/liblzma/common/stream_encoder_mt.c | 4 ++-- 6862 1 file changed, 2 insertions(+), 2 deletions(-) 6863 6864commit ebb501ec73cecc546c67117dd01b5e33c90bfb4a 6865Author: Lasse Collin <lasse.collin@tukaani.org> 6866Date: 2013-06-23 17:36:47 +0300 6867 6868 xz: Validate Uncompressed Size from Block Header in list.c. 6869 6870 This affects only "xz -lvv". Normal decompression with xz 6871 already detected if Block Header and Index had mismatched 6872 Uncompressed Size fields. So this just makes "xz -lvv" 6873 show such files as corrupt instead of showing the 6874 Uncompressed Size from Index. 6875 6876 src/xz/list.c | 14 +++++++++++++- 6877 1 file changed, 13 insertions(+), 1 deletion(-) 6878 6879commit c09e91dd236d3cabee0fc48312b3dc8cceae41ab 6880Author: Lasse Collin <lasse.collin@tukaani.org> 6881Date: 2013-06-21 22:08:11 +0300 6882 6883 Update THANKS. 6884 6885 THANKS | 2 ++ 6886 1 file changed, 2 insertions(+) 6887 6888commit eb6ca9854b8eb9fbf72497c1cf608d6b19d2d494 6889Author: Lasse Collin <lasse.collin@tukaani.org> 6890Date: 2013-06-21 22:04:45 +0300 6891 6892 xz: Make the man page more friendly to doclifter. 6893 6894 Thanks to Eric S. Raymond. 6895 6896 src/xz/xz.1 | 7 ++++--- 6897 1 file changed, 4 insertions(+), 3 deletions(-) 6898 6899commit 0c0a1947e6ad90a0a10b7a5c39f6ab99a0aa5c93 6900Author: Lasse Collin <lasse.collin@tukaani.org> 6901Date: 2013-06-21 21:54:59 +0300 6902 6903 xz: A couple of man page fixes. 6904 6905 Now the interaction of presets and custom filter chains 6906 is described correctly. Earlier it contradicted itself. 6907 6908 Thanks to DevHC who reported these issues on IRC to me 6909 on 2012-12-14. 6910 6911 src/xz/xz.1 | 35 +++++++++++++++++++++++------------ 6912 1 file changed, 23 insertions(+), 12 deletions(-) 6913 6914commit 2fcda89939c903106c429e109083d43d894049e0 6915Author: Lasse Collin <lasse.collin@tukaani.org> 6916Date: 2013-06-21 21:50:26 +0300 6917 6918 xz: Fix interaction between preset and custom filter chains. 6919 6920 There was somewhat illogical behavior when --extreme was 6921 specified and mixed with custom filter chains. 6922 6923 Before this commit, "xz -9 --lzma2 -e" was equivalent 6924 to "xz --lzma2". After it is equivalent to "xz -6e" 6925 (all earlier preset options get forgotten when a custom 6926 filter chain is specified and the default preset is 6 6927 to which -e is applied). I find this less illogical. 6928 6929 This also affects the meaning of "xz -9e --lzma2 -7". 6930 Earlier it was equivalent to "xz -7e" (the -e specified 6931 before a custom filter chain wasn't forgotten). Now it 6932 is "xz -7". Note that "xz -7e" still is the same as "xz -e7". 6933 6934 Hopefully very few cared about this in the first place, 6935 so pretty much no one should even notice this change. 6936 6937 Thanks to Conley Moorhous. 6938 6939 src/xz/coder.c | 35 +++++++++++++++++++++-------------- 6940 1 file changed, 21 insertions(+), 14 deletions(-) 6941 6942commit 97379c5ea758da3f8b0bc444d5f7fa43753ce610 6943Author: Lasse Collin <lasse.collin@tukaani.org> 6944Date: 2013-04-27 22:07:46 +0300 6945 6946 Build: Use -Wvla with GCC if supported. 6947 6948 Variable-length arrays are mandatory in C99 but optional in C11. 6949 The code doesn't currently use any VLAs and it shouldn't in the 6950 future either to stay compatible with C11 without requiring any 6951 optional C11 features. 6952 6953 configure.ac | 1 + 6954 1 file changed, 1 insertion(+) 6955 6956commit 8957c58609d3987c58aa72b96c436cf565cc4917 6957Author: Lasse Collin <lasse.collin@tukaani.org> 6958Date: 2013-04-15 19:29:09 +0300 6959 6960 xzdec: Improve the --help message. 6961 6962 The options are now ordered in the same order as in xz's help 6963 message. 6964 6965 Descriptions were added to the options that are ignored. 6966 I left them in parenthesis even if it looks a bit weird 6967 because I find it easier to spot the ignored vs. non-ignored 6968 options from the list that way. 6969 6970 src/xzdec/xzdec.c | 10 +++++----- 6971 1 file changed, 5 insertions(+), 5 deletions(-) 6972 6973commit ed886e1a92534a24401d0e99c11f1dcff3b5220a 6974Author: Lasse Collin <lasse.collin@tukaani.org> 6975Date: 2013-04-05 19:25:40 +0300 6976 6977 Update THANKS. 6978 6979 THANKS | 2 ++ 6980 1 file changed, 2 insertions(+) 6981 6982commit 5019413a055ce29e660dbbf15e02443cb5a26c59 6983Author: Jeff Bastian <jbastian@redhat.com> 6984Date: 2013-04-03 13:59:17 +0200 6985 6986 xzgrep: make the '-h' option to be --no-filename equivalent 6987 6988 * src/scripts/xzgrep.in: Accept the '-h' option in argument parsing. 6989 6990 src/scripts/xzgrep.in | 2 +- 6991 1 file changed, 1 insertion(+), 1 deletion(-) 6992 6993commit 5ea900cb5ad862bca81316729f92357c1fc040ce 6994Author: Lasse Collin <lasse.collin@tukaani.org> 6995Date: 2013-03-23 22:25:15 +0200 6996 6997 liblzma: Be less picky in lzma_alone_decoder(). 6998 6999 To avoid false positives when detecting .lzma files, 7000 rare values in dictionary size and uncompressed size fields 7001 were rejected. They will still be rejected if .lzma files 7002 are decoded with lzma_auto_decoder(), but when using 7003 lzma_alone_decoder() directly, such files will now be accepted. 7004 Hopefully this is an OK compromise. 7005 7006 This doesn't affect xz because xz still has its own file 7007 format detection code. This does affect lzmadec though. 7008 So after this commit lzmadec will accept files that xz or 7009 xz-emulating-lzma doesn't. 7010 7011 NOTE: lzma_alone_decoder() still won't decode all .lzma files 7012 because liblzma's LZMA decoder doesn't support lc + lp > 4. 7013 7014 Reported here: 7015 http://sourceforge.net/projects/lzmautils/forums/forum/708858/topic/7068827 7016 7017 src/liblzma/common/alone_decoder.c | 22 ++++++++++++++-------- 7018 src/liblzma/common/alone_decoder.h | 5 +++-- 7019 src/liblzma/common/auto_decoder.c | 2 +- 7020 3 files changed, 18 insertions(+), 11 deletions(-) 7021 7022commit bb117fffa84604b6e3811b068c80db82bf7f7b05 7023Author: Lasse Collin <lasse.collin@tukaani.org> 7024Date: 2013-03-23 21:55:13 +0200 7025 7026 liblzma: Use lzma_block_buffer_bound64() in threaded encoder. 7027 7028 Now it uses lzma_block_uncomp_encode() if the data doesn't 7029 fit into the space calculated by lzma_block_buffer_bound64(). 7030 7031 src/liblzma/common/stream_encoder_mt.c | 66 +++++++++++++++++++++++++--------- 7032 1 file changed, 50 insertions(+), 16 deletions(-) 7033 7034commit e572e123b55b29527e54ce5f0807f115481d78b9 7035Author: Lasse Collin <lasse.collin@tukaani.org> 7036Date: 2013-03-23 21:51:38 +0200 7037 7038 liblzma: Fix another deadlock in the threaded encoder. 7039 7040 This race condition could cause a deadlock if lzma_end() was 7041 called before finishing the encoding. This can happen with 7042 xz with debugging enabled (non-debugging version doesn't 7043 call lzma_end() before exiting). 7044 7045 src/liblzma/common/stream_encoder_mt.c | 9 ++++++--- 7046 1 file changed, 6 insertions(+), 3 deletions(-) 7047 7048commit b465da5988dd59ad98fda10c2e4ea13d0b9c73bc 7049Author: Lasse Collin <lasse.collin@tukaani.org> 7050Date: 2013-03-23 19:17:33 +0200 7051 7052 liblzma: Add lzma_block_uncomp_encode(). 7053 7054 This also adds a new internal function 7055 lzma_block_buffer_bound64() which is similar to 7056 lzma_block_buffer_bound() but uses uint64_t instead 7057 of size_t. 7058 7059 src/liblzma/api/lzma/block.h | 18 ++++++ 7060 src/liblzma/common/block_buffer_encoder.c | 94 +++++++++++++++++++++---------- 7061 src/liblzma/common/block_buffer_encoder.h | 24 ++++++++ 7062 src/liblzma/liblzma.map | 1 + 7063 4 files changed, 106 insertions(+), 31 deletions(-) 7064 7065commit 9e6dabcf22ef4679f4faaae15ebd5b137ae2fad1 7066Author: Lasse Collin <lasse.collin@tukaani.org> 7067Date: 2013-03-05 19:14:50 +0200 7068 7069 Avoid unneeded use of awk in xzless. 7070 7071 Use "read" instead of "awk" in xzless to get the version 7072 number of "less". The need for awk was introduced in 7073 the commit db5c1817fabf7cbb9e4087b1576eb26f0747338e. 7074 7075 Thanks to Ariel P for the patch. 7076 7077 src/scripts/xzless.in | 3 +-- 7078 1 file changed, 1 insertion(+), 2 deletions(-) 7079 7080commit e7b424d267a34803db8d92a3515528be2ed45abd 7081Author: Lasse Collin <lasse.collin@tukaani.org> 7082Date: 2012-12-14 20:13:32 +0200 7083 7084 Make the progress indicator smooth in threaded mode. 7085 7086 This adds lzma_get_progress() to liblzma and takes advantage 7087 of it in xz. 7088 7089 lzma_get_progress() collects progress information from 7090 the thread-specific structures so that fairly accurate 7091 progress information is available to applications. Adding 7092 a new function seemed to be a better way than making the 7093 information directly available in lzma_stream (like total_in 7094 and total_out are) because collecting the information requires 7095 locking mutexes. It's waste of time to do it more often than 7096 the up to date information is actually needed by an application. 7097 7098 src/liblzma/api/lzma/base.h | 22 +++++++++- 7099 src/liblzma/common/common.c | 16 +++++++ 7100 src/liblzma/common/common.h | 6 +++ 7101 src/liblzma/common/stream_encoder_mt.c | 77 +++++++++++++++++++++++++++++++--- 7102 src/liblzma/liblzma.map | 1 + 7103 src/xz/message.c | 20 +++++---- 7104 6 files changed, 129 insertions(+), 13 deletions(-) 7105 7106commit 2ebbb994e367f55f2561aa7c9e7451703c171f2f 7107Author: Lasse Collin <lasse.collin@tukaani.org> 7108Date: 2012-12-14 11:01:41 +0200 7109 7110 liblzma: Fix mythread_sync for nested locking. 7111 7112 src/common/mythread.h | 5 +++-- 7113 1 file changed, 3 insertions(+), 2 deletions(-) 7114 7115commit 4c7e28705f6de418d19cc77324ef301f996e01ff 7116Author: Lasse Collin <lasse.collin@tukaani.org> 7117Date: 2012-12-13 21:05:36 +0200 7118 7119 xz: Mention --threads in --help. 7120 7121 Thanks to Olivier Delhomme for pointing out that this 7122 was still missing. 7123 7124 src/xz/message.c | 4 ++++ 7125 1 file changed, 4 insertions(+) 7126 7127commit db5c1817fabf7cbb9e4087b1576eb26f0747338e 7128Author: Jonathan Nieder <jrnieder@gmail.com> 7129Date: 2012-11-19 00:10:10 -0800 7130 7131 xzless: Make "less -V" parsing more robust 7132 7133 In v4.999.9beta~30 (xzless: Support compressed standard input, 7134 2009-08-09), xzless learned to parse ‘less -V’ output to figure out 7135 whether less is new enough to handle $LESSOPEN settings starting 7136 with “|-”. That worked well for a while, but the version string from 7137 ‘less’ versions 448 (June, 2012) is misparsed, producing a warning: 7138 7139 $ xzless /tmp/test.xz; echo $? 7140 /usr/bin/xzless: line 49: test: 456 (GNU regular expressions): \ 7141 integer expression expected 7142 0 7143 7144 More precisely, modern ‘less’ lists the regexp implementation along 7145 with its version number, and xzless passes the entire version number 7146 with attached parenthetical phrase as a number to "test $a -gt $b", 7147 producing the above confusing message. 7148 7149 $ less-444 -V | head -1 7150 less 444 7151 $ less -V | head -1 7152 less 456 (no regular expressions) 7153 7154 So relax the pattern matched --- instead of expecting "less <number>", 7155 look for a line of the form "less <number>[ (extra parenthetical)]". 7156 While at it, improve the behavior when no matching line is found --- 7157 instead of producing a cryptic message, we can fall back on a LESSPIPE 7158 setting that is supported by all versions of ‘less’. 7159 7160 The implementation uses "awk" for simplicity. Hopefully that’s 7161 portable enough. 7162 7163 Reported-by: Jörg-Volker Peetz <jvpeetz@web.de> 7164 Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> 7165 7166 src/scripts/xzless.in | 3 ++- 7167 1 file changed, 2 insertions(+), 1 deletion(-) 7168 7169commit 65536214a31ecd33b6b03b68a351fb597d3703d6 7170Author: Lasse Collin <lasse.collin@tukaani.org> 7171Date: 2012-10-03 15:54:24 +0300 7172 7173 xz: Fix the note about --rsyncable on the man page. 7174 7175 src/xz/xz.1 | 17 +++++++++-------- 7176 1 file changed, 9 insertions(+), 8 deletions(-) 7177 7178commit 3d93b6354927247a1569caf22ad27b07e97ee904 7179Author: Lasse Collin <lasse.collin@tukaani.org> 7180Date: 2012-09-28 20:11:09 +0300 7181 7182 xz: Improve handling of failed realloc in xrealloc. 7183 7184 Thanks to Jim Meyering. 7185 7186 src/xz/util.c | 14 ++++++++++++-- 7187 1 file changed, 12 insertions(+), 2 deletions(-) 7188 7189commit ab225620664e235637833be2329935f9d290ba80 7190Author: Lasse Collin <lasse.collin@tukaani.org> 7191Date: 2012-08-24 16:27:31 +0300 7192 7193 A few typo fixes to comments and the xz man page. 7194 7195 Thanks to Jim Meyering. 7196 7197 configure.ac | 2 +- 7198 src/liblzma/check/sha256.c | 1 - 7199 src/xz/xz.1 | 4 ++-- 7200 3 files changed, 3 insertions(+), 4 deletions(-) 7201 7202commit f3c1ec69d910175ffd431fd82968dd35cec806ed 7203Author: Lasse Collin <lasse.collin@tukaani.org> 7204Date: 2012-08-13 21:40:09 +0300 7205 7206 xz: Add a warning to --help about alpha and beta versions. 7207 7208 src/xz/message.c | 5 +++++ 7209 1 file changed, 5 insertions(+) 7210 7211commit d8eaf9d8278c23c2cf2b7ca5562d4de570d3b5db 7212Author: Lasse Collin <lasse.collin@tukaani.org> 7213Date: 2012-08-02 17:13:30 +0300 7214 7215 Build: Bump gettext version requirement to 0.18. 7216 7217 Otherwise too old version of m4/lib-link.m4 gets included 7218 when autoreconf -fi is run. 7219 7220 configure.ac | 2 +- 7221 1 file changed, 1 insertion(+), 1 deletion(-) 7222 7223commit 96e08902b09f0f304d4ff80c6e83ef7fff883f34 7224Author: Lasse Collin <lasse.collin@tukaani.org> 7225Date: 2012-07-17 18:29:08 +0300 7226 7227 Update THANKS. 7228 7229 THANKS | 1 + 7230 1 file changed, 1 insertion(+) 7231 7232commit 3778db1be53e61ff285c573af5ee468803008456 7233Author: Lasse Collin <lasse.collin@tukaani.org> 7234Date: 2012-07-17 18:19:59 +0300 7235 7236 liblzma: Make the use of lzma_allocator const-correct. 7237 7238 There is a tiny risk of causing breakage: If an application 7239 assigns lzma_stream.allocator to a non-const pointer, such 7240 code won't compile anymore. I don't know why anyone would do 7241 such a thing though, so in practice this shouldn't cause trouble. 7242 7243 Thanks to Jan Kratochvil for the patch. 7244 7245 src/liblzma/api/lzma/base.h | 4 +++- 7246 src/liblzma/api/lzma/block.h | 6 ++--- 7247 src/liblzma/api/lzma/container.h | 9 +++++--- 7248 src/liblzma/api/lzma/filter.h | 13 ++++++----- 7249 src/liblzma/api/lzma/index.h | 16 ++++++------- 7250 src/liblzma/api/lzma/index_hash.h | 4 ++-- 7251 src/liblzma/common/alone_decoder.c | 6 ++--- 7252 src/liblzma/common/alone_decoder.h | 2 +- 7253 src/liblzma/common/alone_encoder.c | 8 +++---- 7254 src/liblzma/common/auto_decoder.c | 6 ++--- 7255 src/liblzma/common/block_buffer_decoder.c | 2 +- 7256 src/liblzma/common/block_buffer_encoder.c | 4 ++-- 7257 src/liblzma/common/block_decoder.c | 6 ++--- 7258 src/liblzma/common/block_decoder.h | 2 +- 7259 src/liblzma/common/block_encoder.c | 8 +++---- 7260 src/liblzma/common/block_encoder.h | 2 +- 7261 src/liblzma/common/block_header_decoder.c | 4 ++-- 7262 src/liblzma/common/common.c | 10 ++++----- 7263 src/liblzma/common/common.h | 20 +++++++++-------- 7264 src/liblzma/common/easy_buffer_encoder.c | 4 ++-- 7265 src/liblzma/common/filter_buffer_decoder.c | 3 ++- 7266 src/liblzma/common/filter_buffer_encoder.c | 7 +++--- 7267 src/liblzma/common/filter_common.c | 4 ++-- 7268 src/liblzma/common/filter_common.h | 2 +- 7269 src/liblzma/common/filter_decoder.c | 7 +++--- 7270 src/liblzma/common/filter_decoder.h | 2 +- 7271 src/liblzma/common/filter_encoder.c | 2 +- 7272 src/liblzma/common/filter_encoder.h | 2 +- 7273 src/liblzma/common/filter_flags_decoder.c | 2 +- 7274 src/liblzma/common/index.c | 26 ++++++++++----------- 7275 src/liblzma/common/index_decoder.c | 12 +++++----- 7276 src/liblzma/common/index_encoder.c | 6 ++--- 7277 src/liblzma/common/index_encoder.h | 2 +- 7278 src/liblzma/common/index_hash.c | 6 +++-- 7279 src/liblzma/common/outqueue.c | 4 ++-- 7280 src/liblzma/common/outqueue.h | 5 +++-- 7281 src/liblzma/common/stream_buffer_decoder.c | 2 +- 7282 src/liblzma/common/stream_buffer_encoder.c | 3 ++- 7283 src/liblzma/common/stream_decoder.c | 9 ++++---- 7284 src/liblzma/common/stream_decoder.h | 5 +++-- 7285 src/liblzma/common/stream_encoder.c | 10 ++++----- 7286 src/liblzma/common/stream_encoder_mt.c | 16 ++++++------- 7287 src/liblzma/delta/delta_common.c | 4 ++-- 7288 src/liblzma/delta/delta_decoder.c | 6 ++--- 7289 src/liblzma/delta/delta_decoder.h | 5 +++-- 7290 src/liblzma/delta/delta_encoder.c | 6 ++--- 7291 src/liblzma/delta/delta_encoder.h | 3 ++- 7292 src/liblzma/delta/delta_private.h | 2 +- 7293 src/liblzma/lz/lz_decoder.c | 8 +++---- 7294 src/liblzma/lz/lz_decoder.h | 7 +++--- 7295 src/liblzma/lz/lz_encoder.c | 19 ++++++++-------- 7296 src/liblzma/lz/lz_encoder.h | 6 ++--- 7297 src/liblzma/lzma/lzma2_decoder.c | 8 +++---- 7298 src/liblzma/lzma/lzma2_decoder.h | 5 +++-- 7299 src/liblzma/lzma/lzma2_encoder.c | 6 ++--- 7300 src/liblzma/lzma/lzma2_encoder.h | 2 +- 7301 src/liblzma/lzma/lzma_decoder.c | 8 +++---- 7302 src/liblzma/lzma/lzma_decoder.h | 7 +++--- 7303 src/liblzma/lzma/lzma_encoder.c | 7 +++--- 7304 src/liblzma/lzma/lzma_encoder.h | 5 +++-- 7305 src/liblzma/simple/arm.c | 8 ++++--- 7306 src/liblzma/simple/armthumb.c | 8 ++++--- 7307 src/liblzma/simple/ia64.c | 8 ++++--- 7308 src/liblzma/simple/powerpc.c | 8 ++++--- 7309 src/liblzma/simple/simple_coder.c | 10 ++++----- 7310 src/liblzma/simple/simple_coder.h | 36 ++++++++++++++++++++---------- 7311 src/liblzma/simple/simple_decoder.c | 2 +- 7312 src/liblzma/simple/simple_decoder.h | 2 +- 7313 src/liblzma/simple/simple_private.h | 3 ++- 7314 src/liblzma/simple/sparc.c | 8 ++++--- 7315 src/liblzma/simple/x86.c | 8 ++++--- 7316 71 files changed, 269 insertions(+), 219 deletions(-) 7317 7318commit d625c7cf824fd3b61c6da84f56179e94917ff603 7319Author: Lasse Collin <lasse.collin@tukaani.org> 7320Date: 2012-07-05 07:36:28 +0300 7321 7322 Tests: Remove tests/test_block.c that had gotten committed accidentally. 7323 7324 tests/test_block.c | 52 ---------------------------------------------------- 7325 1 file changed, 52 deletions(-) 7326 7327commit 0b09d266cce72bc4841933b171e79551e488927c 7328Author: Lasse Collin <lasse.collin@tukaani.org> 7329Date: 2012-07-05 07:33:35 +0300 7330 7331 Build: Include macosx/build.sh in the distribution. 7332 7333 It has been in the Git repository since 2010 but probably 7334 few people have seen it since it hasn't been included in 7335 the release tarballs. :-( 7336 7337 Makefile.am | 1 + 7338 1 file changed, 1 insertion(+) 7339 7340commit d6e0b23d4613b9f417893dd96cc168c8005ece3d 7341Author: Lasse Collin <lasse.collin@tukaani.org> 7342Date: 2012-07-05 07:28:53 +0300 7343 7344 Build: Include validate_map.sh in the distribution. 7345 7346 It's required by "make mydist". 7347 7348 Fix also the location of EXTRA_DIST+= so that those files 7349 get distributed also if symbol versioning isn't enabled. 7350 7351 src/liblzma/Makefile.am | 2 +- 7352 1 file changed, 1 insertion(+), 1 deletion(-) 7353 7354commit 19de545d86097c3954d69ab5d12820387f6a09bc 7355Author: Lasse Collin <lasse.collin@tukaani.org> 7356Date: 2012-07-05 07:24:45 +0300 7357 7358 Docs: Fix the name LZMA Utils -> XZ Utils in debug/README. 7359 7360 debug/README | 2 +- 7361 1 file changed, 1 insertion(+), 1 deletion(-) 7362 7363commit 672eccf57c31a40dfb956b7662db06d43e18618e 7364Author: Lasse Collin <lasse.collin@tukaani.org> 7365Date: 2012-07-05 07:23:17 +0300 7366 7367 Include debug/translation.bash in the distribution. 7368 7369 Also fix the script name mentioned in README. 7370 7371 README | 4 ++-- 7372 debug/Makefile.am | 3 +++ 7373 2 files changed, 5 insertions(+), 2 deletions(-) 7374 7375commit cafb523adac1caf305e70a04bc37f25602bf990c 7376Author: Lasse Collin <lasse.collin@tukaani.org> 7377Date: 2012-07-04 22:31:58 +0300 7378 7379 xz: Document --block-list better. 7380 7381 Thanks to Jonathan Nieder. 7382 7383 src/xz/xz.1 | 8 +++++++- 7384 1 file changed, 7 insertions(+), 1 deletion(-) 7385 7386commit c7ff218528bc8f7c65e7ef73c6515777346c6794 7387Author: Lasse Collin <lasse.collin@tukaani.org> 7388Date: 2012-07-04 20:01:49 +0300 7389 7390 Bump the version number to 5.1.2alpha. 7391 7392 src/liblzma/api/lzma/version.h | 2 +- 7393 src/liblzma/liblzma.map | 2 +- 7394 2 files changed, 2 insertions(+), 2 deletions(-) 7395 7396commit 8f3c1d886f93e6478ad509ff52102b2ce7faa999 7397Author: Lasse Collin <lasse.collin@tukaani.org> 7398Date: 2012-07-04 20:01:19 +0300 7399 7400 Update NEWS for 5.1.2alpha. 7401 7402 NEWS | 41 +++++++++++++++++++++++++++++++++++++++++ 7403 1 file changed, 41 insertions(+) 7404 7405commit 0d5fa05466e580fbc458820f87013ae7644e20e5 7406Author: Lasse Collin <lasse.collin@tukaani.org> 7407Date: 2012-07-04 19:58:23 +0300 7408 7409 xz: Fix the version number printed by xz -lvv. 7410 7411 The decoder bug was fixed in 5.0.2 instead of 5.0.3. 7412 7413 src/xz/list.c | 6 +++--- 7414 1 file changed, 3 insertions(+), 3 deletions(-) 7415 7416commit df11317985a4165731dde12bb0f0028da0e7b77f 7417Author: Lasse Collin <lasse.collin@tukaani.org> 7418Date: 2012-07-04 17:11:31 +0300 7419 7420 Build: Add a comment to configure.ac about symbol versioning. 7421 7422 configure.ac | 4 ++++ 7423 1 file changed, 4 insertions(+) 7424 7425commit bd9cc179e8be3ef515201d3ed9c7dd79ae88869d 7426Author: Lasse Collin <lasse.collin@tukaani.org> 7427Date: 2012-07-04 17:06:49 +0300 7428 7429 Update TODO. 7430 7431 TODO | 12 ++++++++++-- 7432 1 file changed, 10 insertions(+), 2 deletions(-) 7433 7434commit 4a238dd9b22f462cac5e199828bf1beb0df05884 7435Author: Lasse Collin <lasse.collin@tukaani.org> 7436Date: 2012-07-04 17:05:46 +0300 7437 7438 Document --enable-symbol-versions in INSTALL. 7439 7440 INSTALL | 5 +++++ 7441 1 file changed, 5 insertions(+) 7442 7443commit 88ccf47205d7f3aa314d358c72ef214f10f68b43 7444Author: Lasse Collin <lasse.collin@tukaani.org> 7445Date: 2012-07-03 21:16:39 +0300 7446 7447 xz: Add incomplete support for --block-list. 7448 7449 It's broken with threads and when also --block-size is used. 7450 7451 src/xz/args.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 7452 src/xz/args.h | 1 + 7453 src/xz/coder.c | 48 ++++++++++++++++++++++++++++------ 7454 src/xz/coder.h | 4 +++ 7455 src/xz/main.c | 1 + 7456 src/xz/message.c | 6 +++++ 7457 src/xz/xz.1 | 23 +++++++++++++++-- 7458 7 files changed, 151 insertions(+), 10 deletions(-) 7459 7460commit 972179cdcdf5d8949c48ee31737d87d3050b44af 7461Author: Lasse Collin <lasse.collin@tukaani.org> 7462Date: 2012-07-01 18:44:33 +0300 7463 7464 xz: Update the man page about the new field in --robot -lvv. 7465 7466 src/xz/xz.1 | 18 +++++++++++++++++- 7467 1 file changed, 17 insertions(+), 1 deletion(-) 7468 7469commit 1403707fc64a70976aebe66f8d9a9bd12f73a2c5 7470Author: Lasse Collin <lasse.collin@tukaani.org> 7471Date: 2012-06-28 10:47:49 +0300 7472 7473 liblzma: Check that the first byte of range encoded data is 0x00. 7474 7475 It is just to be more pedantic and thus perhaps catch broken 7476 files slightly earlier. 7477 7478 src/liblzma/lzma/lzma_decoder.c | 8 ++++++-- 7479 src/liblzma/rangecoder/range_decoder.h | 12 +++++++++--- 7480 2 files changed, 15 insertions(+), 5 deletions(-) 7481 7482commit eccd8017ffe2c5de473222c4963ec53c62f7fda2 7483Author: Lasse Collin <lasse.collin@tukaani.org> 7484Date: 2012-06-22 19:00:23 +0300 7485 7486 Update NEWS from 5.0.4. 7487 7488 NEWS | 37 +++++++++++++++++++++++++++++++++++++ 7489 1 file changed, 37 insertions(+) 7490 7491commit 2e6754eac26a431e8d340c28906f63bcd1e177e8 7492Author: Lasse Collin <lasse.collin@tukaani.org> 7493Date: 2012-06-22 14:34:03 +0300 7494 7495 xz: Update man page date to match the latest update. 7496 7497 src/xz/xz.1 | 2 +- 7498 1 file changed, 1 insertion(+), 1 deletion(-) 7499 7500commit b3235a0b1af45d5e1244cbe3191516966c076fa0 7501Author: Lasse Collin <lasse.collin@tukaani.org> 7502Date: 2012-06-18 21:27:47 +0300 7503 7504 Docs: Language fix to 01_compress_easy.c. 7505 7506 Thanks to Jonathan Nieder. 7507 7508 doc/examples/01_compress_easy.c | 2 +- 7509 1 file changed, 1 insertion(+), 1 deletion(-) 7510 7511commit f1675f765fe228cb5a5f904f853445a03e33cfe9 7512Author: Lasse Collin <lasse.collin@tukaani.org> 7513Date: 2012-06-14 20:15:30 +0300 7514 7515 Fix the top-level Makefile.am for the new example programs. 7516 7517 Makefile.am | 12 ++++++++++-- 7518 1 file changed, 10 insertions(+), 2 deletions(-) 7519 7520commit 3a0c5378abefaf86aa39a62a7c9682bdb21568a1 7521Author: Lasse Collin <lasse.collin@tukaani.org> 7522Date: 2012-06-14 10:52:33 +0300 7523 7524 Docs: Add new example programs. 7525 7526 These have more comments than the old examples and 7527 human-readable error messages. More tutorial-like examples 7528 are needed but these are a start. 7529 7530 doc/examples/00_README.txt | 27 ++++ 7531 doc/examples/01_compress_easy.c | 297 ++++++++++++++++++++++++++++++++++++++ 7532 doc/examples/02_decompress.c | 287 ++++++++++++++++++++++++++++++++++++ 7533 doc/examples/03_compress_custom.c | 193 +++++++++++++++++++++++++ 7534 doc/examples/Makefile | 23 +++ 7535 5 files changed, 827 insertions(+) 7536 7537commit 1bd2c2c553e30c4a73cfb82abc6908efd6be6b8d 7538Author: Lasse Collin <lasse.collin@tukaani.org> 7539Date: 2012-06-14 10:33:27 +0300 7540 7541 Docs: Move xz_pipe_comp.c and xz_pipe_decomp.c to doc/examples_old. 7542 7543 It is good to keep these around to so that if someone has 7544 copied the decompressor bug from xz_pipe_decomp.c he has 7545 an example how to easily fix it. 7546 7547 doc/{examples => examples_old}/xz_pipe_comp.c | 0 7548 doc/{examples => examples_old}/xz_pipe_decomp.c | 0 7549 2 files changed, 0 insertions(+), 0 deletions(-) 7550 7551commit 905f0ab5b5ce544d4b68a2ed6077df0f3d021292 7552Author: Lasse Collin <lasse.collin@tukaani.org> 7553Date: 2012-06-14 10:33:01 +0300 7554 7555 Docs: Fix a bug in xz_pipe_decomp.c example program. 7556 7557 doc/examples/xz_pipe_decomp.c | 10 +++++++++- 7558 1 file changed, 9 insertions(+), 1 deletion(-) 7559 7560commit 4bd1a3bd5fdf4870b2f96dd0b8a21657c8a58ad8 7561Author: Lasse Collin <lasse.collin@tukaani.org> 7562Date: 2012-05-30 23:14:33 +0300 7563 7564 Translations: Update the French translation. 7565 7566 Thanks to Adrien Nader. 7567 7568 po/fr.po | 148 ++++++++++++++++++++++++++++++++++----------------------------- 7569 1 file changed, 79 insertions(+), 69 deletions(-) 7570 7571commit d2e836f2f3a87df6fe6bb0589b037db51205d910 7572Author: Lasse Collin <lasse.collin@tukaani.org> 7573Date: 2012-05-29 23:42:37 +0300 7574 7575 Translations: Update the German translation. 7576 7577 The previous only included the new strings in v5.0. 7578 7579 po/de.po | 229 +++++++++++++++++++++++++++++++++++++-------------------------- 7580 1 file changed, 133 insertions(+), 96 deletions(-) 7581 7582commit c9a16151577ba459afd6e3528df23bc0ddb95171 7583Author: Lasse Collin <lasse.collin@tukaani.org> 7584Date: 2012-05-29 22:26:27 +0300 7585 7586 Translations: Update the German translation. 7587 7588 po/de.po | 169 ++++++++++++++++++++++++++++++++++----------------------------- 7589 1 file changed, 91 insertions(+), 78 deletions(-) 7590 7591commit 1530a74fd48f8493372edad137a24541efe24713 7592Author: Lasse Collin <lasse.collin@tukaani.org> 7593Date: 2012-05-29 22:14:21 +0300 7594 7595 Translations: Update Polish translation. 7596 7597 po/pl.po | 283 +++++++++++++++++++++++++++++++++++++-------------------------- 7598 1 file changed, 165 insertions(+), 118 deletions(-) 7599 7600commit d8db706acb8316f9861abd432cfbe001dd6d0c5c 7601Author: Lasse Collin <lasse.collin@tukaani.org> 7602Date: 2012-05-28 20:42:11 +0300 7603 7604 liblzma: Fix possibility of incorrect LZMA_BUF_ERROR. 7605 7606 lzma_code() could incorrectly return LZMA_BUF_ERROR if 7607 all of the following was true: 7608 7609 - The caller knows how many bytes of output to expect 7610 and only provides that much output space. 7611 7612 - When the last output bytes are decoded, the 7613 caller-provided input buffer ends right before 7614 the LZMA2 end of payload marker. So LZMA2 won't 7615 provide more output anymore, but it won't know it 7616 yet and thus won't return LZMA_STREAM_END yet. 7617 7618 - A BCJ filter is in use and it hasn't left any 7619 unfiltered bytes in the temp buffer. This can happen 7620 with any BCJ filter, but in practice it's more likely 7621 with filters other than the x86 BCJ. 7622 7623 Another situation where the bug can be triggered happens 7624 if the uncompressed size is zero bytes and no output space 7625 is provided. In this case the decompression can fail even 7626 if the whole input file is given to lzma_code(). 7627 7628 A similar bug was fixed in XZ Embedded on 2011-09-19. 7629 7630 src/liblzma/simple/simple_coder.c | 2 +- 7631 tests/Makefile.am | 4 +- 7632 tests/test_bcj_exact_size.c | 112 ++++++++++++++++++++++++++++++++++++++ 7633 3 files changed, 116 insertions(+), 2 deletions(-) 7634 7635commit 3f94b6d87f1b8f1c421ba548f8ebb83dca9c8cda 7636Author: Lasse Collin <lasse.collin@tukaani.org> 7637Date: 2012-05-28 15:38:32 +0300 7638 7639 Update THANKS. 7640 7641 THANKS | 1 + 7642 1 file changed, 1 insertion(+) 7643 7644commit 7769ea051d739a38a1640fd448cf5eb83cb119c6 7645Author: Lasse Collin <lasse.collin@tukaani.org> 7646Date: 2012-05-28 15:37:43 +0300 7647 7648 xz: Don't show a huge number in -vv when memory limit is disabled. 7649 7650 src/xz/message.c | 12 +++++++++++- 7651 1 file changed, 11 insertions(+), 1 deletion(-) 7652 7653commit ec921105725e4d3ef0a683dd83eee6f24ab60ccd 7654Author: Lasse Collin <lasse.collin@tukaani.org> 7655Date: 2012-05-27 22:30:17 +0300 7656 7657 xz: Document the "summary" lines of --robot -lvv. 7658 7659 This documents only the columns that are in v5.0. 7660 The new columns added in the master branch aren't 7661 necessarily stable yet. 7662 7663 src/xz/xz.1 | 19 +++++++++++++++++++ 7664 1 file changed, 19 insertions(+) 7665 7666commit 27d24eb0a9f6eed96d6a4594c2b0bf7a91d29f9a 7667Author: Lasse Collin <lasse.collin@tukaani.org> 7668Date: 2012-05-27 21:53:20 +0300 7669 7670 xz: Fix output of verbose --robot --list modes. 7671 7672 It printed the filename in "filename (x/y)" format 7673 which it obviously shouldn't do in robot mode. 7674 7675 src/xz/message.c | 2 +- 7676 1 file changed, 1 insertion(+), 1 deletion(-) 7677 7678commit ab25b82a91754d9388c89abddf806424671d9431 7679Author: Lasse Collin <lasse.collin@tukaani.org> 7680Date: 2012-05-24 18:33:54 +0300 7681 7682 Build: Upgrade m4/acx_pthread.m4 to the latest version. 7683 7684 m4/ax_pthread.m4 | 98 +++++++++++++++++++++++++++++++++++--------------------- 7685 1 file changed, 62 insertions(+), 36 deletions(-) 7686 7687commit d05d6d65c41a4bc83f162fa3d67c5d84e8751634 7688Author: Lasse Collin <lasse.collin@tukaani.org> 7689Date: 2012-05-10 21:15:17 +0300 7690 7691 Update THANKS. 7692 7693 THANKS | 1 + 7694 1 file changed, 1 insertion(+) 7695 7696commit e077391982f9f28dbfe542bba8800e7c5b916666 7697Author: Lasse Collin <lasse.collin@tukaani.org> 7698Date: 2012-05-10 21:14:16 +0300 7699 7700 Docs: Cleanup line wrapping a bit. 7701 7702 README | 12 ++++++------ 7703 doc/history.txt | 49 +++++++++++++++++++++++++------------------------ 7704 2 files changed, 31 insertions(+), 30 deletions(-) 7705 7706commit fc39849c350225c6a1cd7f6e6adff1020521eabc 7707Author: Benno Schulenberg <bensberg@justemail.net> 7708Date: 2012-03-13 22:04:04 +0100 7709 7710 Fix a few typos and add some missing articles in some documents. 7711 7712 Also hyphenate several compound adjectives. 7713 7714 Signed-off-by: Benno Schulenberg <bensberg@justemail.net> 7715 7716 AUTHORS | 6 +++--- 7717 README | 42 ++++++++++++++++++++--------------------- 7718 doc/faq.txt | 24 ++++++++++++------------ 7719 doc/history.txt | 58 ++++++++++++++++++++++++++++----------------------------- 7720 4 files changed, 65 insertions(+), 65 deletions(-) 7721 7722commit 29fa0566d5df199cb9acb2d17bf7eea61acc7fa1 7723Author: Lasse Collin <lasse.collin@tukaani.org> 7724Date: 2012-04-29 11:51:25 +0300 7725 7726 Windows: Update notes about static linking with MSVC. 7727 7728 windows/README-Windows.txt | 13 +++++++++---- 7729 1 file changed, 9 insertions(+), 4 deletions(-) 7730 7731commit aac1b31ea4e66cf5a7a8c116bdaa15aa45e6c56e 7732Author: Lasse Collin <lasse.collin@tukaani.org> 7733Date: 2012-04-19 15:25:26 +0300 7734 7735 liblzma: Remove outdated comments. 7736 7737 src/liblzma/simple/simple_coder.c | 3 --- 7738 src/liblzma/simple/simple_private.h | 3 +-- 7739 2 files changed, 1 insertion(+), 5 deletions(-) 7740 7741commit df14a46013bea70c0bd35be7821b0b9108f97de7 7742Author: Lasse Collin <lasse.collin@tukaani.org> 7743Date: 2012-04-19 14:17:52 +0300 7744 7745 DOS: Link against DJGPP's libemu to support FPU emulation. 7746 7747 This way xz should work on 386SX and 486SX. Floating point 7748 only is needed for verbose output in xz. 7749 7750 dos/Makefile | 2 +- 7751 1 file changed, 1 insertion(+), 1 deletion(-) 7752 7753commit 03ed742a3a4931bb5c821357832083b26f577b13 7754Author: Lasse Collin <lasse.collin@tukaani.org> 7755Date: 2012-04-19 14:02:25 +0300 7756 7757 liblzma: Fix Libs.private in liblzma.pc to include -lrt when needed. 7758 7759 src/liblzma/liblzma.pc.in | 2 +- 7760 1 file changed, 1 insertion(+), 1 deletion(-) 7761 7762commit 8c5b13ad59df70f49429bfdfd6ac120b8f892fda 7763Author: Lasse Collin <lasse.collin@tukaani.org> 7764Date: 2012-04-19 13:58:55 +0300 7765 7766 Docs: Update MINIX 3 information in INSTALL. 7767 7768 INSTALL | 8 +++++--- 7769 1 file changed, 5 insertions(+), 3 deletions(-) 7770 7771commit c7376fc415a1566f38b2de4b516a17013d516a8b 7772Author: Lasse Collin <lasse.collin@tukaani.org> 7773Date: 2012-02-22 14:23:13 +0200 7774 7775 Update THANKS. 7776 7777 THANKS | 1 + 7778 1 file changed, 1 insertion(+) 7779 7780commit cff070aba6281ba743d29a62b8c0c66e5da4b2a6 7781Author: Lasse Collin <lasse.collin@tukaani.org> 7782Date: 2012-02-22 14:02:34 +0200 7783 7784 Fix exit status of xzgrep when grepping binary files. 7785 7786 When grepping binary files, grep may exit before it has 7787 read all the input. In this case, gzip -q returns 2 (eating 7788 SIGPIPE), but xz and bzip2 show SIGPIPE as the exit status 7789 (e.g. 141). This causes wrong exit status when grepping 7790 xz- or bzip2-compressed binary files. 7791 7792 The fix checks for the special exit status that indicates SIGPIPE. 7793 It uses kill -l which should be supported everywhere since it 7794 is in both SUSv2 (1997) and POSIX.1-2008. 7795 7796 Thanks to James Buren for the bug report. 7797 7798 src/scripts/xzgrep.in | 3 ++- 7799 1 file changed, 2 insertions(+), 1 deletion(-) 7800 7801commit 41cafb2bf9beea915710ee68f05fe929cd17759c 7802Author: Lasse Collin <lasse.collin@tukaani.org> 7803Date: 2012-02-22 12:08:43 +0200 7804 7805 Update THANKS. 7806 7807 THANKS | 1 + 7808 1 file changed, 1 insertion(+) 7809 7810commit 2dcea03712fa881930d69ec9eff70855c3d126d9 7811Author: Lasse Collin <lasse.collin@tukaani.org> 7812Date: 2012-02-22 12:00:16 +0200 7813 7814 Fix compiling with IBM XL C on AIX. 7815 7816 INSTALL | 36 ++++++++++++++++++++++-------------- 7817 configure.ac | 6 +++++- 7818 2 files changed, 27 insertions(+), 15 deletions(-) 7819 7820commit 7db6bdf4abcf524115be2cf5659ed540cef074c5 7821Author: Lasse Collin <lasse.collin@tukaani.org> 7822Date: 2012-01-10 17:13:03 +0200 7823 7824 Tests: Fix a compiler warning with _FORTIFY_SOURCE. 7825 7826 Reported here: 7827 http://sourceforge.net/projects/lzmautils/forums/forum/708858/topic/4927385 7828 7829 tests/create_compress_files.c | 3 ++- 7830 1 file changed, 2 insertions(+), 1 deletion(-) 7831 7832commit 694952d545b6cf056547893ced69486eff9ece55 7833Author: Lasse Collin <lasse.collin@tukaani.org> 7834Date: 2011-12-19 21:21:29 +0200 7835 7836 Docs: Explain the stable releases better in README. 7837 7838 README | 6 +++++- 7839 1 file changed, 5 insertions(+), 1 deletion(-) 7840 7841commit 418fe668b3c53a9a20020b6cc652aaf25c734b29 7842Author: Lasse Collin <lasse.collin@tukaani.org> 7843Date: 2011-11-07 13:07:52 +0200 7844 7845 xz: Show minimum required XZ Utils version in xz -lvv. 7846 7847 Man page wasn't updated yet. 7848 7849 src/xz/list.c | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++------ 7850 1 file changed, 57 insertions(+), 6 deletions(-) 7851 7852commit 7081d82c37326bac97184e338345fa1c327e3580 7853Author: Lasse Collin <lasse.collin@tukaani.org> 7854Date: 2011-11-04 17:57:16 +0200 7855 7856 xz: Fix a typo in a comment. 7857 7858 Thanks to Bela Lubkin. 7859 7860 src/xz/args.c | 2 +- 7861 1 file changed, 1 insertion(+), 1 deletion(-) 7862 7863commit 232fe7cd70ad258d6a37f17e860e0f1b1891eeb5 7864Author: Lasse Collin <lasse.collin@tukaani.org> 7865Date: 2011-11-03 17:08:02 +0200 7866 7867 Update THANKS. 7868 7869 THANKS | 1 + 7870 1 file changed, 1 insertion(+) 7871 7872commit 74d2bae4d3449c68453b0473dd3430ce91fd90c1 7873Author: Lasse Collin <lasse.collin@tukaani.org> 7874Date: 2011-11-03 17:07:22 +0200 7875 7876 xz: Fix xz on EBCDIC systems. 7877 7878 Thanks to Chris Donawa. 7879 7880 src/xz/coder.c | 5 ++++- 7881 1 file changed, 4 insertions(+), 1 deletion(-) 7882 7883commit 4ac4923f47cc0ef97dd9ca5cfcc44fc53eeab34a 7884Author: Lasse Collin <lasse.collin@tukaani.org> 7885Date: 2011-10-23 17:09:10 +0300 7886 7887 Update THANKS. 7888 7889 THANKS | 1 + 7890 1 file changed, 1 insertion(+) 7891 7892commit ab50ae3ef40c81e5bf613905ca3fd636548b75e7 7893Author: Lasse Collin <lasse.collin@tukaani.org> 7894Date: 2011-10-23 17:08:14 +0300 7895 7896 liblzma: Fix invalid free() in the threaded encoder. 7897 7898 It was triggered if initialization failed e.g. due to 7899 running out of memory. 7900 7901 Thanks to Arkadiusz Miskiewicz. 7902 7903 src/liblzma/common/outqueue.c | 4 ++++ 7904 1 file changed, 4 insertions(+) 7905 7906commit 6b620a0f0813d28c3c544b4ff8cb595b38a6e908 7907Author: Lasse Collin <lasse.collin@tukaani.org> 7908Date: 2011-10-23 17:05:55 +0300 7909 7910 liblzma: Fix a deadlock in the threaded encoder. 7911 7912 It was triggered when reinitializing the encoder, 7913 e.g. when encoding two files. 7914 7915 src/liblzma/common/stream_encoder_mt.c | 4 +++- 7916 1 file changed, 3 insertions(+), 1 deletion(-) 7917 7918commit bd52cf150ecd51e3ab63a9cc1a3cff6a77500178 7919Author: Lasse Collin <lasse.collin@tukaani.org> 7920Date: 2011-09-06 12:03:41 +0300 7921 7922 Build: Fix "make check" on Windows. 7923 7924 tests/Makefile.am | 7 +++++-- 7925 windows/build.bash | 2 ++ 7926 2 files changed, 7 insertions(+), 2 deletions(-) 7927 7928commit 5c5b2256969ac473001b7d67615ed3bd0a54cc82 7929Author: Lasse Collin <lasse.collin@tukaani.org> 7930Date: 2011-08-09 21:19:13 +0300 7931 7932 Update THANKS. 7933 7934 THANKS | 2 ++ 7935 1 file changed, 2 insertions(+) 7936 7937commit 5b1e1f10741af9e4bbe4cfc3261fb7c7b04f7809 7938Author: Lasse Collin <lasse.collin@tukaani.org> 7939Date: 2011-08-09 21:16:44 +0300 7940 7941 Workaround unusual SIZE_MAX on SCO OpenServer. 7942 7943 src/common/sysdefs.h | 9 ++++++--- 7944 1 file changed, 6 insertions(+), 3 deletions(-) 7945 7946commit e9ed88126eee86e2511fa42681a5c7104820cf0a 7947Author: Lasse Collin <lasse.collin@tukaani.org> 7948Date: 2011-08-06 20:37:28 +0300 7949 7950 Run the scripts with the correct shell in test_scripts.sh. 7951 7952 The scripts are now made executable in the build tree. 7953 This way the scripts can be run like programs in 7954 test_scripts.sh. Previously test_scripts.sh always 7955 used sh but it's not correct if @POSIX_SHELL@ is set 7956 to something else by configure. 7957 7958 Thanks to Jonathan Nieder for the patch. 7959 7960 configure.ac | 8 ++++---- 7961 tests/test_scripts.sh | 8 ++++---- 7962 2 files changed, 8 insertions(+), 8 deletions(-) 7963 7964commit 1c673e5681720491a74fc4b2992e075f47302c22 7965Author: Lasse Collin <lasse.collin@tukaani.org> 7966Date: 2011-07-31 11:01:47 +0300 7967 7968 Fix exit status of "xzdiff foo.xz bar.xz". 7969 7970 xzdiff was clobbering the exit status from diff in a case 7971 statement used to analyze the exit statuses from "xz" when 7972 its operands were two compressed files. Save and restore 7973 diff's exit status to fix this. 7974 7975 The bug is inherited from zdiff in GNU gzip and was fixed 7976 there on 2009-10-09. 7977 7978 Thanks to Jonathan Nieder for the patch and 7979 to Peter Pallinger for reporting the bug. 7980 7981 src/scripts/xzdiff.in | 2 ++ 7982 tests/Makefile.am | 4 +++- 7983 tests/test_scripts.sh | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++ 7984 3 files changed, 59 insertions(+), 1 deletion(-) 7985 7986commit 324cde7a864f4506c32ae7846d688c359a83fe65 7987Author: Lasse Collin <lasse.collin@tukaani.org> 7988Date: 2011-06-16 12:15:29 +0300 7989 7990 liblzma: Remove unneeded semicolon. 7991 7992 src/liblzma/lz/lz_encoder_hash.h | 2 +- 7993 1 file changed, 1 insertion(+), 1 deletion(-) 7994 7995commit 492c86345551a51a29bf18e55fe55a5e86f169ce 7996Author: Lasse Collin <lasse.collin@tukaani.org> 7997Date: 2011-05-28 19:24:56 +0300 7998 7999 Build: Make configure print if symbol versioning is enabled or not. 8000 8001 configure.ac | 2 ++ 8002 1 file changed, 2 insertions(+) 8003 8004commit fc4d4436969bd4d71b704d400a165875e596034a 8005Author: Lasse Collin <lasse.collin@tukaani.org> 8006Date: 2011-05-28 16:43:26 +0300 8007 8008 Don't call close(-1) in tuklib_open_stdxxx() on error. 8009 8010 Thanks to Jim Meyering. 8011 8012 src/common/tuklib_open_stdxxx.c | 4 +++- 8013 1 file changed, 3 insertions(+), 1 deletion(-) 8014 8015commit bd35d903a04c4d388adb4065b0fa271302380895 8016Author: Lasse Collin <lasse.collin@tukaani.org> 8017Date: 2011-05-28 15:55:39 +0300 8018 8019 liblzma: Use symbol versioning. 8020 8021 Symbol versioning is enabled by default on GNU/Linux, 8022 other GNU-based systems, and FreeBSD. 8023 8024 I'm not sure how stable this is, so it may need 8025 backward-incompatible changes before the next release. 8026 8027 The idea is that alpha and beta symbols are considered 8028 unstable and require recompiling the applications that 8029 use those symbols. Once a symbol is stable, it may get 8030 extended with new features in ways that don't break 8031 compatibility with older ABI & API. 8032 8033 The mydist target runs validate_map.sh which should 8034 catch some probable problems in liblzma.map. Otherwise 8035 I would forget to update the map file for new releases. 8036 8037 Makefile.am | 1 + 8038 configure.ac | 21 +++++++++ 8039 src/liblzma/Makefile.am | 6 +++ 8040 src/liblzma/liblzma.map | 105 ++++++++++++++++++++++++++++++++++++++++++++ 8041 src/liblzma/validate_map.sh | 68 ++++++++++++++++++++++++++++ 8042 5 files changed, 201 insertions(+) 8043 8044commit afbb244362c9426a37ce4eb9d54aab768da3adad 8045Author: Lasse Collin <lasse.collin@tukaani.org> 8046Date: 2011-05-28 09:46:46 +0300 8047 8048 Translations: Update the Italian translation. 8049 8050 Thanks to Milo Casagrande. 8051 8052 po/it.po | 365 +++++++++++++++++++++++++++++++++++++-------------------------- 8053 1 file changed, 216 insertions(+), 149 deletions(-) 8054 8055commit 79bef85e0543c0c3723281c3c817616c6cec343b 8056Author: Lasse Collin <lasse.collin@tukaani.org> 8057Date: 2011-05-28 08:46:04 +0300 8058 8059 Tests: Add a test file for the bug in the previous commit. 8060 8061 tests/files/README | 4 ++++ 8062 tests/files/bad-1-block_header-6.xz | Bin 0 -> 72 bytes 8063 2 files changed, 4 insertions(+) 8064 8065commit c0297445064951807803457dca1611b3c47e7f0f 8066Author: Lasse Collin <lasse.collin@tukaani.org> 8067Date: 2011-05-27 22:25:44 +0300 8068 8069 xz: Fix error handling in xz -lvv. 8070 8071 It could do an invalid free() and read past the end 8072 of the uninitialized filters array. 8073 8074 src/xz/list.c | 21 ++++++--------------- 8075 1 file changed, 6 insertions(+), 15 deletions(-) 8076 8077commit 8bd91918ac50731f00b1a2a48072980572eb2ff9 8078Author: Lasse Collin <lasse.collin@tukaani.org> 8079Date: 2011-05-27 22:09:49 +0300 8080 8081 liblzma: Handle allocation failures correctly in lzma_index_init(). 8082 8083 Thanks to Jim Meyering. 8084 8085 src/liblzma/common/index.c | 7 +++++-- 8086 1 file changed, 5 insertions(+), 2 deletions(-) 8087 8088commit fe00f95828ef5627721b57e054f7eb2d42a2c961 8089Author: Lasse Collin <lasse.collin@tukaani.org> 8090Date: 2011-05-24 00:23:46 +0300 8091 8092 Build: Fix checking for system-provided SHA-256. 8093 8094 configure.ac | 2 +- 8095 1 file changed, 1 insertion(+), 1 deletion(-) 8096 8097commit 21b45b9bab541f419712cbfd473ccc31802e0397 8098Author: Lasse Collin <lasse.collin@tukaani.org> 8099Date: 2011-05-23 18:30:30 +0300 8100 8101 Build: Set GZIP_ENV=-9n in top-level Makefile.am. 8102 8103 Makefile.am | 3 +++ 8104 1 file changed, 3 insertions(+) 8105 8106commit 48053e8a4550233af46359024538bff90c870ab1 8107Author: Lasse Collin <lasse.collin@tukaani.org> 8108Date: 2011-05-22 16:42:11 +0300 8109 8110 Update NEWS for 5.0.3. 8111 8112 NEWS | 32 ++++++++++++++++++++++++++++++++ 8113 1 file changed, 32 insertions(+) 8114 8115commit bba37df2c9e54ad773e15ff00a09d2d6989fb3b2 8116Author: Lasse Collin <lasse.collin@tukaani.org> 8117Date: 2011-05-21 16:28:44 +0300 8118 8119 Add French translation. 8120 8121 It is known that the BCJ filter --help text is only 8122 partially translated. 8123 8124 po/LINGUAS | 1 + 8125 po/fr.po | 864 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 8126 2 files changed, 865 insertions(+) 8127 8128commit 4161d7634965a7a287bf208dcd79f6185f448fe8 8129Author: Lasse Collin <lasse.collin@tukaani.org> 8130Date: 2011-05-21 15:12:10 +0300 8131 8132 xz: Translate also the string used to print the program name. 8133 8134 French needs a space before a colon, e.g. "xz : foo error". 8135 8136 src/xz/message.c | 6 +++++- 8137 1 file changed, 5 insertions(+), 1 deletion(-) 8138 8139commit b94aa0c8380cdb18cddb33440d625474c16643cf 8140Author: Lasse Collin <lasse.collin@tukaani.org> 8141Date: 2011-05-21 15:08:44 +0300 8142 8143 liblzma: Try to use SHA-256 from the operating system. 8144 8145 If the operating system libc or other base libraries 8146 provide SHA-256, use that instead of our own copy. 8147 Note that this doesn't use OpenSSL or libgcrypt or 8148 such libraries to avoid creating dependencies to 8149 other packages. 8150 8151 This supports at least FreeBSD, NetBSD, OpenBSD, Solaris, 8152 MINIX, and Darwin. They all provide similar but not 8153 identical SHA-256 APIs; everyone is a little different. 8154 8155 Thanks to Wim Lewis for the original patch, improvements, 8156 and testing. 8157 8158 configure.ac | 54 +++++++++++++++++++++++++++ 8159 src/liblzma/check/Makefile.inc | 2 + 8160 src/liblzma/check/check.h | 83 ++++++++++++++++++++++++++++++++++++++---- 8161 3 files changed, 131 insertions(+), 8 deletions(-) 8162 8163commit f004128678d43ea10b4a6401aa184cf83252d6ec 8164Author: Lasse Collin <lasse.collin@tukaani.org> 8165Date: 2011-05-17 12:52:18 +0300 8166 8167 Don't use clockid_t in mythread.h when clock_gettime() isn't available. 8168 8169 Thanks to Wim Lewis for the patch. 8170 8171 src/common/mythread.h | 2 ++ 8172 1 file changed, 2 insertions(+) 8173 8174commit f779516f42ebd2db47a5b7d6143459bf7737cf2f 8175Author: Lasse Collin <lasse.collin@tukaani.org> 8176Date: 2011-05-17 12:26:28 +0300 8177 8178 Update THANKS. 8179 8180 THANKS | 3 +++ 8181 1 file changed, 3 insertions(+) 8182 8183commit 830ba587775bb562f6eaf05cad61bf669d1f8892 8184Author: Lasse Collin <lasse.collin@tukaani.org> 8185Date: 2011-05-17 12:21:33 +0300 8186 8187 Update INSTALL with a note about linker problem on OpenSolaris x86. 8188 8189 INSTALL | 23 +++++++++++++++++------ 8190 1 file changed, 17 insertions(+), 6 deletions(-) 8191 8192commit ec7106309c8060e9c646dba20c4f15689a0bbb04 8193Author: Lasse Collin <lasse.collin@tukaani.org> 8194Date: 2011-05-17 12:01:37 +0300 8195 8196 Build: Fix initialization of enable_check_* variables in configure.ac. 8197 8198 This doesn't matter much in practice since it is unlikely 8199 that anyone would have such environment variable names. 8200 8201 Thanks to Wim Lewis. 8202 8203 configure.ac | 2 +- 8204 1 file changed, 1 insertion(+), 1 deletion(-) 8205 8206commit 4c6e146df99696920f12410fb17754412797ef36 8207Author: Lasse Collin <lasse.collin@tukaani.org> 8208Date: 2011-05-17 11:54:38 +0300 8209 8210 Add underscores to attributes (__attribute((__foo__))). 8211 8212 src/liblzma/common/alone_decoder.c | 2 +- 8213 src/liblzma/common/alone_encoder.c | 2 +- 8214 src/liblzma/common/block_encoder.c | 2 +- 8215 src/liblzma/common/common.c | 2 +- 8216 src/liblzma/common/common.h | 2 +- 8217 src/liblzma/common/index_decoder.c | 9 +++++---- 8218 src/liblzma/common/index_encoder.c | 11 ++++++----- 8219 src/liblzma/delta/delta_encoder.c | 2 +- 8220 src/liblzma/lz/lz_decoder.c | 2 +- 8221 src/liblzma/lz/lz_encoder.c | 2 +- 8222 src/liblzma/simple/arm.c | 2 +- 8223 src/liblzma/simple/armthumb.c | 2 +- 8224 src/liblzma/simple/ia64.c | 2 +- 8225 src/liblzma/simple/powerpc.c | 2 +- 8226 src/liblzma/simple/simple_coder.c | 2 +- 8227 src/liblzma/simple/sparc.c | 2 +- 8228 src/lzmainfo/lzmainfo.c | 4 ++-- 8229 src/xz/coder.c | 2 +- 8230 src/xz/hardware.h | 2 +- 8231 src/xz/message.c | 2 +- 8232 src/xz/message.h | 18 +++++++++--------- 8233 src/xz/options.c | 6 +++--- 8234 src/xz/signals.c | 2 +- 8235 src/xz/util.h | 6 +++--- 8236 src/xzdec/xzdec.c | 6 +++--- 8237 25 files changed, 49 insertions(+), 47 deletions(-) 8238 8239commit 7a480e485938884ef3021b48c3b0b9f9699dc9b6 8240Author: Lasse Collin <lasse.collin@tukaani.org> 8241Date: 2011-05-01 12:24:23 +0300 8242 8243 xz: Fix input file position when --single-stream is used. 8244 8245 Now the following works as you would expect: 8246 8247 echo foo | xz > foo.xz 8248 echo bar | xz >> foo.xz 8249 ( xz -dc --single-stream ; xz -dc --single-stream ) < foo.xz 8250 8251 Note that it doesn't work if the input is not seekable 8252 or if there is Stream Padding between the concatenated 8253 .xz Streams. 8254 8255 src/xz/coder.c | 1 + 8256 src/xz/file_io.c | 15 +++++++++++++++ 8257 src/xz/file_io.h | 13 +++++++++++++ 8258 3 files changed, 29 insertions(+) 8259 8260commit c29e6630c1450c630c4e7b783bdd76515db9004c 8261Author: Lasse Collin <lasse.collin@tukaani.org> 8262Date: 2011-05-01 12:15:51 +0300 8263 8264 xz: Print the maximum number of worker threads in xz -vv. 8265 8266 src/xz/coder.c | 4 ++++ 8267 1 file changed, 4 insertions(+) 8268 8269commit 0b77c4a75158ccc416b07d6e81df8ee0abaea720 8270Author: Lasse Collin <lasse.collin@tukaani.org> 8271Date: 2011-04-19 10:44:48 +0300 8272 8273 Build: Warn if no supported method to detect the number of CPU cores. 8274 8275 configure.ac | 11 +++++------ 8276 1 file changed, 5 insertions(+), 6 deletions(-) 8277 8278commit e4622df9ab4982f8faa53d85b17be66216175a58 8279Author: Lasse Collin <lasse.collin@tukaani.org> 8280Date: 2011-04-19 09:55:06 +0300 8281 8282 Update THANKS. 8283 8284 THANKS | 1 + 8285 1 file changed, 1 insertion(+) 8286 8287commit 9c1b05828a88eff54409760b92162c7cc2c7cff6 8288Author: Lasse Collin <lasse.collin@tukaani.org> 8289Date: 2011-04-19 09:20:44 +0300 8290 8291 Fix portability problems in mythread.h. 8292 8293 Use gettimeofday() if clock_gettime() isn't available 8294 (e.g. Darwin). 8295 8296 The test for availability of pthread_condattr_setclock() 8297 and CLOCK_MONOTONIC was incorrect. Instead of fixing the 8298 #ifdefs, use an Autoconf test. That way if there exists a 8299 system that supports them but doesn't specify the matching 8300 POSIX #defines, the features will still get detected. 8301 8302 Don't try to use pthread_sigmask() on OpenVMS. It doesn't 8303 have that function. 8304 8305 Guard mythread.h against being #included multiple times. 8306 8307 configure.ac | 7 +++++++ 8308 src/common/mythread.h | 31 +++++++++++++++++++++++++++---- 8309 2 files changed, 34 insertions(+), 4 deletions(-) 8310 8311commit 3de00cc75da7b0e7b65e84c62b5351e231f501e9 8312Author: Lasse Collin <lasse.collin@tukaani.org> 8313Date: 2011-04-18 19:35:49 +0300 8314 8315 Update THANKS. 8316 8317 THANKS | 2 ++ 8318 1 file changed, 2 insertions(+) 8319 8320commit bd5002f5821e3d1b04f2f56989e4a19318e73633 8321Author: Martin Väth <vaeth@mathematik.uni-wuerzburg.de> 8322Date: 2011-04-15 04:54:49 -0400 8323 8324 xzgrep: fix typo in $0 parsing 8325 8326 Reported-by: Diego Elio Pettenò <flameeyes@gentoo.org> 8327 Signed-off-by: Martin Väth <vaeth@mathematik.uni-wuerzburg.de> 8328 Signed-off-by: Mike Frysinger <vapier@gentoo.org> 8329 8330 src/scripts/xzgrep.in | 4 ++-- 8331 1 file changed, 2 insertions(+), 2 deletions(-) 8332 8333commit 6ef4eabc0acc49e1bb9dc68064706e19fa9fcf48 8334Author: Lasse Collin <lasse.collin@tukaani.org> 8335Date: 2011-04-12 12:48:31 +0300 8336 8337 Bump the version number to 5.1.1alpha and liblzma soname to 5.0.99. 8338 8339 src/liblzma/Makefile.am | 2 +- 8340 src/liblzma/api/lzma/version.h | 2 +- 8341 2 files changed, 2 insertions(+), 2 deletions(-) 8342 8343commit 9a4377be0d21e597c66bad6c7452873aebfb3c1c 8344Author: Lasse Collin <lasse.collin@tukaani.org> 8345Date: 2011-04-12 12:42:37 +0300 8346 8347 Put the unstable APIs behind #ifdef LZMA_UNSTABLE. 8348 8349 This way people hopefully won't complain if these APIs 8350 change and break code that used an older API. 8351 8352 src/liblzma/api/lzma/container.h | 4 ++++ 8353 src/liblzma/common/common.h | 2 ++ 8354 src/xz/private.h | 2 ++ 8355 3 files changed, 8 insertions(+) 8356 8357commit 3e321a3acd50002cf6fdfd259e910f56d3389bc3 8358Author: Lasse Collin <lasse.collin@tukaani.org> 8359Date: 2011-04-12 11:59:49 +0300 8360 8361 Remove doubled words from documentation and comments. 8362 8363 Spot candidates by running these commands: 8364 git ls-files |xargs perl -0777 -n \ 8365 -e 'while (/\b(then?|[iao]n|i[fst]|but|f?or|at|and|[dt]o)\s+\1\b/gims)' \ 8366 -e '{$n=($` =~ tr/\n/\n/ + 1); ($v=$&)=~s/\n/\\n/g; print "$ARGV:$n:$v\n"}' 8367 8368 Thanks to Jim Meyering for the original patch. 8369 8370 doc/lzma-file-format.txt | 4 ++-- 8371 src/liblzma/common/alone_encoder.c | 2 +- 8372 src/liblzma/lzma/lzma2_encoder.c | 2 +- 8373 src/xz/file_io.c | 2 +- 8374 src/xz/xz.1 | 2 +- 8375 windows/INSTALL-Windows.txt | 2 +- 8376 6 files changed, 7 insertions(+), 7 deletions(-) 8377 8378commit d91a84b534b012d19474f2fda1fbcaef873e1ba4 8379Author: Lasse Collin <lasse.collin@tukaani.org> 8380Date: 2011-04-12 11:46:01 +0300 8381 8382 Update NEWS. 8383 8384 NEWS | 47 +++++++++++++++++++++++++++++++++++++++++++++-- 8385 1 file changed, 45 insertions(+), 2 deletions(-) 8386 8387commit 14e6ad8cfe0165c1a8beeb5b2a1536558b29b0a1 8388Author: Lasse Collin <lasse.collin@tukaani.org> 8389Date: 2011-04-12 11:45:40 +0300 8390 8391 Update TODO. 8392 8393 TODO | 12 +++++++++++- 8394 1 file changed, 11 insertions(+), 1 deletion(-) 8395 8396commit 70e750f59793f9b5cd306a5adce9b8e427739e04 8397Author: Lasse Collin <lasse.collin@tukaani.org> 8398Date: 2011-04-12 11:08:55 +0300 8399 8400 xz: Update the man page about threading. 8401 8402 src/xz/xz.1 | 34 ++++++++++++++++++++-------------- 8403 1 file changed, 20 insertions(+), 14 deletions(-) 8404 8405commit 24e0406c0fb7494d2037dec033686faf1bf67068 8406Author: Lasse Collin <lasse.collin@tukaani.org> 8407Date: 2011-04-11 22:06:03 +0300 8408 8409 xz: Add support for threaded compression. 8410 8411 src/xz/args.c | 3 +- 8412 src/xz/coder.c | 202 +++++++++++++++++++++++++++++++++++---------------------- 8413 2 files changed, 125 insertions(+), 80 deletions(-) 8414 8415commit de678e0c924aa79a19293a8a6ed82e8cb6572a42 8416Author: Lasse Collin <lasse.collin@tukaani.org> 8417Date: 2011-04-11 22:03:30 +0300 8418 8419 liblzma: Add lzma_stream_encoder_mt() for threaded compression. 8420 8421 This is the simplest method to do threading, which splits 8422 the uncompressed data into blocks and compresses them 8423 independently from each other. There's room for improvement 8424 especially to reduce the memory usage, but nevertheless, 8425 this is a good start. 8426 8427 configure.ac | 1 + 8428 src/liblzma/api/lzma/container.h | 163 +++++ 8429 src/liblzma/common/Makefile.inc | 7 + 8430 src/liblzma/common/common.c | 9 +- 8431 src/liblzma/common/common.h | 14 + 8432 src/liblzma/common/outqueue.c | 180 ++++++ 8433 src/liblzma/common/outqueue.h | 155 +++++ 8434 src/liblzma/common/stream_encoder_mt.c | 1011 ++++++++++++++++++++++++++++++++ 8435 8 files changed, 1539 insertions(+), 1 deletion(-) 8436 8437commit 25fe729532cdf4b8fed56a4519b73cf31efaec50 8438Author: Lasse Collin <lasse.collin@tukaani.org> 8439Date: 2011-04-11 21:15:07 +0300 8440 8441 liblzma: Add the forgotten lzma_lzma2_block_size(). 8442 8443 This should have been in 5eefc0086d24a65e136352f8c1d19cefb0cbac7a. 8444 8445 src/liblzma/lzma/lzma2_encoder.c | 10 ++++++++++ 8446 src/liblzma/lzma/lzma2_encoder.h | 2 ++ 8447 2 files changed, 12 insertions(+) 8448 8449commit 91afb785a1dee34862078d9bf844ef12b8cc3e35 8450Author: Lasse Collin <lasse.collin@tukaani.org> 8451Date: 2011-04-11 21:04:13 +0300 8452 8453 liblzma: Document lzma_easy_(enc|dec)oder_memusage() better too. 8454 8455 src/liblzma/api/lzma/container.h | 9 +++++++++ 8456 1 file changed, 9 insertions(+) 8457 8458commit 4a9905302a9e4a1601ae09d650d3f08ce98ae9ee 8459Author: Lasse Collin <lasse.collin@tukaani.org> 8460Date: 2011-04-11 20:59:07 +0300 8461 8462 liblzma: Document lzma_raw_(enc|dec)oder_memusage() better. 8463 8464 It didn't mention the return value that is used if 8465 an error occurs. 8466 8467 src/liblzma/api/lzma/filter.h | 8 ++++++-- 8468 1 file changed, 6 insertions(+), 2 deletions(-) 8469 8470commit 0badb0b1bd649163322783b0bd9e590b4bc7a93d 8471Author: Lasse Collin <lasse.collin@tukaani.org> 8472Date: 2011-04-11 19:28:18 +0300 8473 8474 liblzma: Use memzero() to initialize supported_actions[]. 8475 8476 This is cleaner and makes it simpler to add new members 8477 to lzma_action enumeration. 8478 8479 src/liblzma/common/common.c | 6 ++---- 8480 1 file changed, 2 insertions(+), 4 deletions(-) 8481 8482commit a7934c446a58e20268689899d2a39f50e571f251 8483Author: Lasse Collin <lasse.collin@tukaani.org> 8484Date: 2011-04-11 19:26:27 +0300 8485 8486 liblzma: API comment about lzma_allocator with threaded coding. 8487 8488 src/liblzma/api/lzma/base.h | 18 +++++++++++++----- 8489 1 file changed, 13 insertions(+), 5 deletions(-) 8490 8491commit 5eefc0086d24a65e136352f8c1d19cefb0cbac7a 8492Author: Lasse Collin <lasse.collin@tukaani.org> 8493Date: 2011-04-11 19:16:30 +0300 8494 8495 liblzma: Add an internal function lzma_mt_block_size(). 8496 8497 This is based lzma_chunk_size() that was included in some 8498 development version of liblzma. 8499 8500 src/liblzma/common/filter_encoder.c | 46 ++++++++++++++++++------------------- 8501 src/liblzma/common/filter_encoder.h | 4 ++-- 8502 2 files changed, 24 insertions(+), 26 deletions(-) 8503 8504commit d1199274758049fc523d98c5b860ff814a799eec 8505Author: Lasse Collin <lasse.collin@tukaani.org> 8506Date: 2011-04-11 13:59:50 +0300 8507 8508 liblzma: Don't create an empty Block in lzma_stream_buffer_encode(). 8509 8510 Empty Block was created if the input buffer was empty. 8511 Empty Block wastes a few bytes of space, but more importantly 8512 it triggers a bug in XZ Utils 5.0.1 and older when trying 8513 to decompress such a file. 5.0.1 and older consider such 8514 files to be corrupt. I thought that no encoder creates empty 8515 Blocks when releasing 5.0.2 but I was wrong. 8516 8517 src/liblzma/common/stream_buffer_encoder.c | 20 +++++++++++++------- 8518 1 file changed, 13 insertions(+), 7 deletions(-) 8519 8520commit 3b22fc2c87ec85fcdd385c163b68fc49c97aa848 8521Author: Lasse Collin <lasse.collin@tukaani.org> 8522Date: 2011-04-11 13:28:40 +0300 8523 8524 liblzma: Fix API docs to mention LZMA_UNSUPPORTED_CHECK. 8525 8526 This return value was missing from the API comments of 8527 four functions. 8528 8529 src/liblzma/api/lzma/block.h | 1 + 8530 src/liblzma/api/lzma/container.h | 3 +++ 8531 2 files changed, 4 insertions(+) 8532 8533commit 71b9380145dccf001f22e66a06b9d508905c25ce 8534Author: Lasse Collin <lasse.collin@tukaani.org> 8535Date: 2011-04-11 13:21:28 +0300 8536 8537 liblzma: Validate encoder arguments better. 8538 8539 The biggest problem was that the integrity check type 8540 wasn't validated, and e.g. lzma_easy_buffer_encode() 8541 would create a corrupt .xz Stream if given an unsupported 8542 Check ID. Luckily applications don't usually try to use 8543 an unsupport Check ID, so this bug is unlikely to cause 8544 many real-world problems. 8545 8546 src/liblzma/common/block_buffer_encoder.c | 18 ++++++++++++------ 8547 src/liblzma/common/block_encoder.c | 5 +++++ 8548 src/liblzma/common/stream_buffer_encoder.c | 3 +++ 8549 3 files changed, 20 insertions(+), 6 deletions(-) 8550 8551commit ec7e3dbad704268825fc48f0bdd4577bc46b4f13 8552Author: Lasse Collin <lasse.collin@tukaani.org> 8553Date: 2011-04-11 09:57:30 +0300 8554 8555 xz: Move the description of --block-size in --long-help. 8556 8557 src/xz/message.c | 8 ++++---- 8558 1 file changed, 4 insertions(+), 4 deletions(-) 8559 8560commit cd3086ff443bb282bdf556919c28b3e3cbed8169 8561Author: Lasse Collin <lasse.collin@tukaani.org> 8562Date: 2011-04-11 09:55:35 +0300 8563 8564 Docs: Document --single-stream and --block-size. 8565 8566 src/xz/xz.1 | 38 ++++++++++++++++++++++++++++++++++++-- 8567 1 file changed, 36 insertions(+), 2 deletions(-) 8568 8569commit fb64a4924334e3c440865710990fe08090f2fed0 8570Author: Lasse Collin <lasse.collin@tukaani.org> 8571Date: 2011-04-11 09:27:57 +0300 8572 8573 liblzma: Make lzma_stream_encoder_init() static (second try). 8574 8575 It's an internal function and it's not needed by 8576 anything outside stream_encoder.c. 8577 8578 src/liblzma/common/Makefile.inc | 1 - 8579 src/liblzma/common/easy_encoder.c | 1 - 8580 src/liblzma/common/stream_encoder.c | 13 ++++++------- 8581 src/liblzma/common/stream_encoder.h | 23 ----------------------- 8582 4 files changed, 6 insertions(+), 32 deletions(-) 8583 8584commit a34730cf6af4d33a4057914e57227b6dfde6567e 8585Author: Lasse Collin <lasse.collin@tukaani.org> 8586Date: 2011-04-11 08:31:42 +0300 8587 8588 Revert "liblzma: Make lzma_stream_encoder_init() static." 8589 8590 This reverts commit 352ac82db5d3f64585c07b39e4759388dec0e4d7. 8591 I don't know what I was thinking. 8592 8593 src/liblzma/common/Makefile.inc | 1 + 8594 src/liblzma/common/stream_encoder.c | 9 +++++---- 8595 src/liblzma/common/stream_encoder.h | 23 +++++++++++++++++++++++ 8596 3 files changed, 29 insertions(+), 4 deletions(-) 8597 8598commit 9f0a806aef7ea79718e3f1f2baf3564295229a27 8599Author: Lasse Collin <lasse.collin@tukaani.org> 8600Date: 2011-04-10 21:23:21 +0300 8601 8602 Revise mythread.h. 8603 8604 This adds: 8605 8606 - mythread_sync() macro to create synchronized blocks 8607 8608 - mythread_cond structure and related functions 8609 and macros for condition variables with timed 8610 waiting using a relative timeout 8611 8612 - mythread_create() to create a thread with all 8613 signals blocked 8614 8615 Some of these wouldn't need to be inline functions, 8616 but I'll keep them this way for now for simplicity. 8617 8618 For timed waiting on a condition variable, librt is 8619 now required on some systems to use clock_gettime(). 8620 configure.ac was updated to handle this. 8621 8622 configure.ac | 1 + 8623 src/common/mythread.h | 200 +++++++++++++++++++++++++++++++++++++++++++++----- 8624 2 files changed, 181 insertions(+), 20 deletions(-) 8625 8626commit 352ac82db5d3f64585c07b39e4759388dec0e4d7 8627Author: Lasse Collin <lasse.collin@tukaani.org> 8628Date: 2011-04-10 20:37:36 +0300 8629 8630 liblzma: Make lzma_stream_encoder_init() static. 8631 8632 It's an internal function and it's not needed by 8633 anything outside stream_encoder.c. 8634 8635 src/liblzma/common/Makefile.inc | 1 - 8636 src/liblzma/common/stream_encoder.c | 9 ++++----- 8637 src/liblzma/common/stream_encoder.h | 23 ----------------------- 8638 3 files changed, 4 insertions(+), 29 deletions(-) 8639 8640commit 9e807fe3fe79618ac48f58207cf7082ea20a6928 8641Author: Lasse Collin <lasse.collin@tukaani.org> 8642Date: 2011-04-10 14:58:10 +0300 8643 8644 DOS: Update the docs and include notes about 8.3 filenames. 8645 8646 dos/{README => INSTALL.txt} | 13 +---- 8647 dos/README.txt | 123 ++++++++++++++++++++++++++++++++++++++++++++ 8648 2 files changed, 125 insertions(+), 11 deletions(-) 8649 8650commit ebd54dbd6e481d31e80757f900ac8109ad1423c6 8651Author: Lasse Collin <lasse.collin@tukaani.org> 8652Date: 2011-04-10 13:09:42 +0300 8653 8654 xz/DOS: Add experimental 8.3 filename support. 8655 8656 This is incompatible with the 8.3 support patch made by 8657 Juan Manuel Guerrero. I think this one is nicer, but 8658 I need to get feedback from DOS users before saying 8659 that this is the final version of 8.3 filename support. 8660 8661 src/xz/suffix.c | 176 +++++++++++++++++++++++++++++++++++++++++++++++++++++--- 8662 1 file changed, 167 insertions(+), 9 deletions(-) 8663 8664commit cd4fe97852bcaeffe674ee51b4613709292a0972 8665Author: Lasse Collin <lasse.collin@tukaani.org> 8666Date: 2011-04-10 12:47:47 +0300 8667 8668 xz/DOS: Be more careful with the destination file. 8669 8670 Try to avoid overwriting the source file if --force is 8671 used and the generated destination filename refers to 8672 the source file. This can happen with 8.3 filenames where 8673 extra characters are ignored. 8674 8675 If the generated output file refers to a special file 8676 like "con" or "prn", refuse to write to it even if --force 8677 is used. 8678 8679 src/xz/file_io.c | 35 +++++++++++++++++++++++++++++++++-- 8680 1 file changed, 33 insertions(+), 2 deletions(-) 8681 8682commit 607f9f98ae5ef6d49f4c21c806d462bf6b3d6796 8683Author: Lasse Collin <lasse.collin@tukaani.org> 8684Date: 2011-04-09 18:29:30 +0300 8685 8686 Update THANKS. 8687 8688 THANKS | 1 + 8689 1 file changed, 1 insertion(+) 8690 8691commit fca396b37410d272b754843a5dc13847be443a3a 8692Author: Lasse Collin <lasse.collin@tukaani.org> 8693Date: 2011-04-09 18:28:58 +0300 8694 8695 liblzma: Add missing #ifdefs to filter_common.c. 8696 8697 Passing --disable-decoders to configure broke a few 8698 encoders due to missing #ifdefs in filter_common.c. 8699 8700 Thanks to Jason Gorski for the patch. 8701 8702 src/liblzma/common/filter_common.c | 6 +++--- 8703 1 file changed, 3 insertions(+), 3 deletions(-) 8704 8705commit b03f6cd3ebadd675f2cc9d518cb26fa860269447 8706Author: Lasse Collin <lasse.collin@tukaani.org> 8707Date: 2011-04-09 15:24:59 +0300 8708 8709 xz: Avoid unneeded fstat() on DOS-like systems. 8710 8711 src/xz/file_io.c | 14 ++++++++------ 8712 1 file changed, 8 insertions(+), 6 deletions(-) 8713 8714commit 335fe260a81f61ec99ff5940df733b4c50aedb7c 8715Author: Lasse Collin <lasse.collin@tukaani.org> 8716Date: 2011-04-09 15:11:13 +0300 8717 8718 xz: Minor internal changes to handling of --threads. 8719 8720 Now it always defaults to one thread. Maybe this 8721 will change again if a threading method is added 8722 that doesn't affect memory usage. 8723 8724 src/xz/args.c | 4 ++-- 8725 src/xz/hardware.c | 24 ++++++++++++------------ 8726 src/xz/hardware.h | 9 ++++----- 8727 3 files changed, 18 insertions(+), 19 deletions(-) 8728 8729commit 9edd6ee895fbe71d245a173f48e511f154a99875 8730Author: Lasse Collin <lasse.collin@tukaani.org> 8731Date: 2011-04-08 17:53:05 +0300 8732 8733 xz: Change size_t to uint32_t in a few places. 8734 8735 src/xz/coder.c | 6 +++--- 8736 src/xz/coder.h | 2 +- 8737 2 files changed, 4 insertions(+), 4 deletions(-) 8738 8739commit 411013ea4506a6df24d35a060fcbd73a57b73eb3 8740Author: Lasse Collin <lasse.collin@tukaani.org> 8741Date: 2011-04-08 17:48:41 +0300 8742 8743 xz: Fix a typo in a comment. 8744 8745 src/xz/coder.c | 2 +- 8746 1 file changed, 1 insertion(+), 1 deletion(-) 8747 8748commit b34c5ce4b22e8d7b81f9895d15054af41d17f805 8749Author: Lasse Collin <lasse.collin@tukaani.org> 8750Date: 2011-04-05 22:41:33 +0300 8751 8752 liblzma: Use TUKLIB_GNUC_REQ to check GCC version in sha256.c. 8753 8754 src/liblzma/check/sha256.c | 6 +++--- 8755 1 file changed, 3 insertions(+), 3 deletions(-) 8756 8757commit db33117cc85c17e0b897b5312bd5eb43aac41c03 8758Author: Lasse Collin <lasse.collin@tukaani.org> 8759Date: 2011-04-05 17:12:20 +0300 8760 8761 Build: Upgrade m4/acx_pthread.m4 to the latest version. 8762 8763 It was renamed to ax_pthread.m4 in Autoconf Archive. 8764 8765 configure.ac | 2 +- 8766 m4/{acx_pthread.m4 => ax_pthread.m4} | 170 ++++++++++++++++++----------------- 8767 2 files changed, 88 insertions(+), 84 deletions(-) 8768 8769commit 1039bfcfc098b69d56ecb39d198a092552eacf6d 8770Author: Lasse Collin <lasse.collin@tukaani.org> 8771Date: 2011-04-05 15:27:26 +0300 8772 8773 xz: Use posix_fadvise() if it is available. 8774 8775 configure.ac | 3 +++ 8776 src/xz/file_io.c | 15 +++++++++++++++ 8777 2 files changed, 18 insertions(+) 8778 8779commit 1ef3cf44a8eb9512480af4482a5232ea08363b14 8780Author: Lasse Collin <lasse.collin@tukaani.org> 8781Date: 2011-04-05 15:13:29 +0300 8782 8783 xz: Call lzma_end(&strm) before exiting if debugging is enabled. 8784 8785 src/xz/coder.c | 10 ++++++++++ 8786 src/xz/coder.h | 5 +++++ 8787 src/xz/main.c | 4 ++++ 8788 3 files changed, 19 insertions(+) 8789 8790commit bd432015d33dcade611d297bc01eb0700088ef6c 8791Author: Lasse Collin <lasse.collin@tukaani.org> 8792Date: 2011-04-02 14:49:56 +0300 8793 8794 liblzma: Fix a memory leak in stream_encoder.c. 8795 8796 It leaks old filter options structures (hundred bytes or so) 8797 every time the lzma_stream is reinitialized. With the xz tool, 8798 this happens when compressing multiple files. 8799 8800 src/liblzma/common/stream_encoder.c | 2 +- 8801 1 file changed, 1 insertion(+), 1 deletion(-) 8802 8803commit 16889013214e7620d204b6e6c1bf9f3103a13655 8804Author: Lasse Collin <lasse.collin@tukaani.org> 8805Date: 2011-04-01 08:47:20 +0300 8806 8807 Updated NEWS for 5.0.2. 8808 8809 NEWS | 18 ++++++++++++++++++ 8810 1 file changed, 18 insertions(+) 8811 8812commit 85cdf7dd4e97b078e7b929e47f55a7f1da36010f 8813Author: Lasse Collin <lasse.collin@tukaani.org> 8814Date: 2011-03-31 15:06:58 +0300 8815 8816 Update INSTALL with another note about IRIX. 8817 8818 INSTALL | 4 ++++ 8819 1 file changed, 4 insertions(+) 8820 8821commit c3f4995586873d6a4fb7e451010a128571a9a370 8822Author: Lasse Collin <lasse.collin@tukaani.org> 8823Date: 2011-03-31 12:22:55 +0300 8824 8825 Tests: Add a new file to test empty LZMA2 streams. 8826 8827 tests/files/README | 4 ++++ 8828 tests/files/good-1-lzma2-5.xz | Bin 0 -> 52 bytes 8829 2 files changed, 4 insertions(+) 8830 8831commit 0d21f49a809dc2088da6cc0da7f948404df7ecfa 8832Author: Lasse Collin <lasse.collin@tukaani.org> 8833Date: 2011-03-31 11:54:48 +0300 8834 8835 liblzma: Fix decoding of LZMA2 streams having no uncompressed data. 8836 8837 The decoder considered empty LZMA2 streams to be corrupt. 8838 This shouldn't matter much with .xz files, because no encoder 8839 creates empty LZMA2 streams in .xz. This bug is more likely 8840 to cause problems in applications that use raw LZMA2 streams. 8841 8842 src/liblzma/lzma/lzma2_decoder.c | 8 ++++---- 8843 1 file changed, 4 insertions(+), 4 deletions(-) 8844 8845commit 40277998cb9bad564ce4827aff152e6e1c904dfa 8846Author: Lasse Collin <lasse.collin@tukaani.org> 8847Date: 2011-03-24 01:42:49 +0200 8848 8849 Scripts: Better fix for xzgrep. 8850 8851 Now it uses "grep -q". 8852 8853 Thanks to Gregory Margo. 8854 8855 src/scripts/xzgrep.in | 8 ++++++-- 8856 1 file changed, 6 insertions(+), 2 deletions(-) 8857 8858commit 2118733045ad0ca183a3f181a0399baf876983a6 8859Author: Lasse Collin <lasse.collin@tukaani.org> 8860Date: 2011-03-24 01:22:18 +0200 8861 8862 Updated THANKS. 8863 8864 THANKS | 1 + 8865 1 file changed, 1 insertion(+) 8866 8867commit c7210d9a3fca6f31a57208bfddfc9ab20a2e097a 8868Author: Lasse Collin <lasse.collin@tukaani.org> 8869Date: 2011-03-24 01:21:32 +0200 8870 8871 Scripts: Fix xzgrep -l. 8872 8873 It didn't work at all. It tried to use the -q option 8874 for grep, but it appended it after "--". This works 8875 around it by redirecting to /dev/null. The downside 8876 is that this can be slower with big files compared 8877 to proper use of "grep -q". 8878 8879 Thanks to Gregory Margo. 8880 8881 src/scripts/xzgrep.in | 4 ++-- 8882 1 file changed, 2 insertions(+), 2 deletions(-) 8883 8884commit 4eb83e32046a6d670862bc91c3d82530963b455e 8885Author: Lasse Collin <lasse.collin@tukaani.org> 8886Date: 2011-03-19 13:08:22 +0200 8887 8888 Scripts: Add lzop (.lzo) support to xzdiff and xzgrep. 8889 8890 src/scripts/xzdiff.1 | 6 ++++-- 8891 src/scripts/xzdiff.in | 22 ++++++++++++++-------- 8892 src/scripts/xzgrep.1 | 11 +++++++---- 8893 src/scripts/xzgrep.in | 5 +++-- 8894 4 files changed, 28 insertions(+), 16 deletions(-) 8895 8896commit 923b22483bd9356f3219b2b784d96f455f4dc499 8897Author: Lasse Collin <lasse.collin@tukaani.org> 8898Date: 2011-03-18 19:10:30 +0200 8899 8900 xz: Add --block-size=SIZE. 8901 8902 This uses LZMA_FULL_FLUSH every SIZE bytes of input. 8903 8904 Man page wasn't updated yet. 8905 8906 src/xz/args.c | 7 +++++++ 8907 src/xz/coder.c | 50 ++++++++++++++++++++++++++++++++++++++++---------- 8908 src/xz/coder.h | 3 +++ 8909 src/xz/message.c | 4 ++++ 8910 4 files changed, 54 insertions(+), 10 deletions(-) 8911 8912commit 57597d42ca1740ad506437be168d800a50f1a0ad 8913Author: Lasse Collin <lasse.collin@tukaani.org> 8914Date: 2011-03-18 18:19:19 +0200 8915 8916 xz: Add --single-stream. 8917 8918 This can be useful when there is garbage after the 8919 compressed stream (.xz, .lzma, or raw stream). 8920 8921 Man page wasn't updated yet. 8922 8923 src/xz/args.c | 6 ++++++ 8924 src/xz/coder.c | 11 +++++++++-- 8925 src/xz/coder.h | 3 +++ 8926 src/xz/message.c | 6 +++++- 8927 4 files changed, 23 insertions(+), 3 deletions(-) 8928 8929commit 96f94bc925d579a700147fa5d7793b64d69cfc18 8930Author: Lasse Collin <lasse.collin@tukaani.org> 8931Date: 2011-02-04 22:49:31 +0200 8932 8933 xz: Clean up suffix.c. 8934 8935 struct suffix_pair isn't needed in compresed_name() 8936 so get rid of it there. 8937 8938 src/xz/suffix.c | 44 ++++++++++++++++++++------------------------ 8939 1 file changed, 20 insertions(+), 24 deletions(-) 8940 8941commit 8930c7ae3f82bdae15aa129f01de08be23d7e8d7 8942Author: Lasse Collin <lasse.collin@tukaani.org> 8943Date: 2011-02-04 11:29:47 +0200 8944 8945 xz: Check if the file already has custom suffix when compressing. 8946 8947 Now "xz -S .test foo.test" refuses to compress the 8948 file because it already has the suffix .test. The man 8949 page had it documented this way already. 8950 8951 src/xz/suffix.c | 9 +++++++++ 8952 1 file changed, 9 insertions(+) 8953 8954commit 940d5852c6cf08abccc6befd9d1b5411c9076a58 8955Author: Lasse Collin <lasse.collin@tukaani.org> 8956Date: 2011-02-02 23:01:51 +0200 8957 8958 Updated THANKS. 8959 8960 THANKS | 1 + 8961 1 file changed, 1 insertion(+) 8962 8963commit 4ebe65f839613f27f127bab7b8c347d982330ee3 8964Author: Lasse Collin <lasse.collin@tukaani.org> 8965Date: 2011-02-02 23:00:33 +0200 8966 8967 Translations: Add Polish translation. 8968 8969 Thanks to Jakub Bogusz. 8970 8971 po/LINGUAS | 1 + 8972 po/pl.po | 825 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 8973 2 files changed, 826 insertions(+) 8974 8975commit fc1d292dca1925dfd17174f443f91a696ecd5bf8 8976Author: Lasse Collin <lasse.collin@tukaani.org> 8977Date: 2011-02-02 22:24:00 +0200 8978 8979 Updated THANKS. 8980 8981 THANKS | 1 + 8982 1 file changed, 1 insertion(+) 8983 8984commit 6dd061adfd2775428b079eb03d6fd47d7c0f1ffe 8985Merge: 9d542ce 5fbce0b 8986Author: Lasse Collin <lasse.collin@tukaani.org> 8987Date: 2011-02-06 20:13:01 +0200 8988 8989 Merge commit '5fbce0b8d96dc96775aa0215e3581addc830e23d' 8990 8991commit 5fbce0b8d96dc96775aa0215e3581addc830e23d 8992Author: Lasse Collin <lasse.collin@tukaani.org> 8993Date: 2011-01-28 20:16:57 +0200 8994 8995 Update NEWS for 5.0.1. 8996 8997 NEWS | 14 ++++++++++++++ 8998 1 file changed, 14 insertions(+) 8999 9000commit 03ebd1bbb314f9f204940219a835c883bf442475 9001Author: Lasse Collin <lasse.collin@tukaani.org> 9002Date: 2011-01-26 12:19:08 +0200 9003 9004 xz: Fix --force on setuid/setgid/sticky and multi-hardlink files. 9005 9006 xz didn't compress setuid/setgid/sticky files and files 9007 with multiple hard links even with --force. This bug was 9008 introduced in 23ac2c44c3ac76994825adb7f9a8f719f78b5ee4. 9009 9010 Thanks to Charles Wilson. 9011 9012 src/xz/file_io.c | 15 +++++++-------- 9013 1 file changed, 7 insertions(+), 8 deletions(-) 9014 9015commit 9d542ceebcbe40b174169c132ccfcdc720ca7089 9016Merge: 4f2c69a 7bd0a5e 9017Author: Lasse Collin <lasse.collin@tukaani.org> 9018Date: 2011-01-19 11:45:35 +0200 9019 9020 Merge branch 'v5.0' 9021 9022commit 7bd0a5e7ccc354f7c2e95c8bc27569c820f6a136 9023Author: Lasse Collin <lasse.collin@tukaani.org> 9024Date: 2011-01-18 21:25:24 +0200 9025 9026 Updated THANKS. 9027 9028 THANKS | 1 + 9029 1 file changed, 1 insertion(+) 9030 9031commit f71c4e16e913f660977526f0ef8d2acdf458d7c9 9032Author: Lasse Collin <lasse.collin@tukaani.org> 9033Date: 2011-01-18 21:23:50 +0200 9034 9035 Add alloc_size and malloc attributes to a few functions. 9036 9037 Thanks to Cristian Rodríguez for the original patch. 9038 9039 src/common/sysdefs.h | 6 ++++++ 9040 src/liblzma/common/common.h | 2 +- 9041 src/xz/util.h | 5 +++-- 9042 3 files changed, 10 insertions(+), 3 deletions(-) 9043 9044commit 316cbe24465143edde8f6ffb7532834b7b2ea93f 9045Author: Lasse Collin <lasse.collin@tukaani.org> 9046Date: 2010-12-13 16:36:33 +0200 9047 9048 Scripts: Fix gzip and bzip2 support in xzdiff. 9049 9050 src/scripts/xzdiff.in | 12 ++++++------ 9051 1 file changed, 6 insertions(+), 6 deletions(-) 9052 9053commit 4f2c69a4e3e0aee2e37b0b1671d34086e20c8ac6 9054Merge: adb89e6 9311774 9055Author: Lasse Collin <lasse.collin@tukaani.org> 9056Date: 2010-12-12 23:13:22 +0200 9057 9058 Merge branch 'v5.0' 9059 9060commit 9311774c493c19deab51ded919dcd2e9c4aa2829 9061Author: Lasse Collin <lasse.collin@tukaani.org> 9062Date: 2010-12-12 21:23:55 +0200 9063 9064 Build: Enable ASM on DJGPP by default. 9065 9066 configure.ac | 2 +- 9067 1 file changed, 1 insertion(+), 1 deletion(-) 9068 9069commit 4a42aaee282fc73b482581684d65110506d5efdd 9070Author: Lasse Collin <lasse.collin@tukaani.org> 9071Date: 2010-12-12 16:09:42 +0200 9072 9073 Updated THANKS. 9074 9075 THANKS | 1 + 9076 1 file changed, 1 insertion(+) 9077 9078commit ce56f63c41ee210e6308090eb6d49221fdf67d6c 9079Author: Lasse Collin <lasse.collin@tukaani.org> 9080Date: 2010-12-12 16:07:11 +0200 9081 9082 Add missing PRIx32 and PRIx64 compatibility definitions. 9083 9084 This fixes portability to systems that lack C99 inttypes.h. 9085 9086 Thanks to Juan Manuel Guerrero. 9087 9088 src/common/sysdefs.h | 9 +++++++++ 9089 1 file changed, 9 insertions(+) 9090 9091commit e6baedddcf54e7da049ebc49183565b99facd4c7 9092Author: Lasse Collin <lasse.collin@tukaani.org> 9093Date: 2010-12-12 14:50:04 +0200 9094 9095 DOS-like: Treat \ and : as directory separators in addition to /. 9096 9097 Juan Manuel Guerrero had fixed this in his XZ Utils port 9098 to DOS/DJGPP. The bug affects also Windows and OS/2. 9099 9100 src/xz/suffix.c | 33 +++++++++++++++++++++++++++++---- 9101 1 file changed, 29 insertions(+), 4 deletions(-) 9102 9103commit adb89e68d43a4cadb0c215b45ef7a75737c9c3ec 9104Merge: 7c24e0d b7afd3e 9105Author: Lasse Collin <lasse.collin@tukaani.org> 9106Date: 2010-12-07 18:53:04 +0200 9107 9108 Merge branch 'v5.0' 9109 9110commit b7afd3e22a8fac115b75c738d40d3eb1de7e286f 9111Author: Lasse Collin <lasse.collin@tukaani.org> 9112Date: 2010-12-07 18:52:04 +0200 9113 9114 Translations: Fix Czech translation of "sparse file". 9115 9116 Thanks to Petr Hubený and Marek Černocký. 9117 9118 po/cs.po | 88 ++++++++++++++++++++++++++++++++-------------------------------- 9119 1 file changed, 44 insertions(+), 44 deletions(-) 9120 9121commit 7c24e0d1b8a2e86e9263b0d56d39621e01aed7af 9122Merge: b4d42f1 3e56470 9123Author: Lasse Collin <lasse.collin@tukaani.org> 9124Date: 2010-11-15 14:33:01 +0200 9125 9126 Merge branch 'v5.0' 9127 9128commit 3e564704bc6f463cb2db11e3f3f0dbd71d85992e 9129Author: Lasse Collin <lasse.collin@tukaani.org> 9130Date: 2010-11-15 14:28:26 +0200 9131 9132 liblzma: Document the return value of lzma_lzma_preset(). 9133 9134 src/liblzma/api/lzma/lzma.h | 3 +++ 9135 1 file changed, 3 insertions(+) 9136 9137commit 2964d8d691ed92abdcf214888d79ad6d79774735 9138Author: Jonathan Nieder <jrnieder@gmail.com> 9139Date: 2010-11-12 15:22:13 -0600 9140 9141 Simplify paths in generated API docs 9142 9143 Currently the file list generated by Doxygen has src/ at the 9144 beginning of each path. Paths like common/sysdefs.h and 9145 liblzma/api/lzma.h are easier to read without such a prefix. 9146 9147 Builds from a separate build directory with 9148 9149 mkdir build 9150 cd build 9151 ../configure 9152 doxygen Doxyfile 9153 9154 include an even longer prefix /home/someone/src/xz/src; this 9155 patch has the nice side-effect of eliminating that prefix, too. 9156 9157 Fixes: http://bugs.debian.org/572273 9158 9159 Doxyfile.in | 2 +- 9160 1 file changed, 1 insertion(+), 1 deletion(-) 9161 9162commit b4d42f1a7120e2cefeb2f14425efe2ca6db85416 9163Author: Anders F Bjorklund <afb@users.sourceforge.net> 9164Date: 2010-11-05 12:56:11 +0100 9165 9166 add build script for macosx universal 9167 9168 macosx/build.sh | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 9169 1 file changed, 92 insertions(+) 9170 9171commit 15ee6935abe4a2fc76639ee342ca2e69af3e0ad6 9172Author: Lasse Collin <lasse.collin@tukaani.org> 9173Date: 2010-11-04 18:31:40 +0200 9174 9175 Update the copies of GPLv2 and LGPLv2.1 from gnu.org. 9176 9177 There are only a few white space changes. 9178 9179 COPYING.GPLv2 | 14 +++++++------- 9180 COPYING.LGPLv2.1 | 16 +++++++--------- 9181 2 files changed, 14 insertions(+), 16 deletions(-) 9182 9183commit 8e355f7fdbeee6fe394eb02a28f267ce99a882a2 9184Merge: 974ebe6 37c2565 9185Author: Lasse Collin <lasse.collin@tukaani.org> 9186Date: 2010-10-26 15:53:06 +0300 9187 9188 Merge branch 'v5.0' 9189 9190commit 37c25658efd25b034266daf87cd381d20d1df776 9191Author: Lasse Collin <lasse.collin@tukaani.org> 9192Date: 2010-10-26 15:48:48 +0300 9193 9194 Build: Copy the example programs to $docdir/examples. 9195 9196 The example programs by Daniel Mealha Cabrita were included 9197 in the git repository, but I had forgot to add them to 9198 Makefile.am. Thus, they didn't get included in the source 9199 package at all by "make dist". 9200 9201 Makefile.am | 5 +++++ 9202 windows/build.bash | 3 ++- 9203 2 files changed, 7 insertions(+), 1 deletion(-) 9204 9205commit 974ebe63497bdf0d262e06474f0dd5a70b1dd000 9206Author: Lasse Collin <lasse.collin@tukaani.org> 9207Date: 2010-10-26 10:36:41 +0300 9208 9209 liblzma: Rename a few variables and constants. 9210 9211 This has no semantic changes. I find the new names slightly 9212 more logical and they match the names that are already used 9213 in XZ Embedded. 9214 9215 The name fastpos wasn't changed (not worth the hassle). 9216 9217 src/liblzma/lzma/fastpos.h | 55 +++++------ 9218 src/liblzma/lzma/lzma2_encoder.c | 2 +- 9219 src/liblzma/lzma/lzma_common.h | 45 ++++----- 9220 src/liblzma/lzma/lzma_decoder.c | 58 +++++------ 9221 src/liblzma/lzma/lzma_encoder.c | 56 +++++------ 9222 src/liblzma/lzma/lzma_encoder_optimum_fast.c | 9 +- 9223 src/liblzma/lzma/lzma_encoder_optimum_normal.c | 128 ++++++++++++------------- 9224 src/liblzma/lzma/lzma_encoder_private.h | 16 ++-- 9225 8 files changed, 183 insertions(+), 186 deletions(-) 9226 9227commit 7c427ec38d016c0070a42315d752857e33792fc4 9228Author: Lasse Collin <lasse.collin@tukaani.org> 9229Date: 2010-10-25 12:59:25 +0300 9230 9231 Bump version 5.1.0alpha. 9232 9233 src/liblzma/api/lzma/version.h | 4 ++-- 9234 1 file changed, 2 insertions(+), 2 deletions(-) 9235 9236commit e45929260cd902036efd40c5610a8d0a50d5712b 9237Author: Lasse Collin <lasse.collin@tukaani.org> 9238Date: 2010-10-23 17:25:52 +0300 9239 9240 Build: Fix mydist rule when .git doesn't exist. 9241 9242 Makefile.am | 1 + 9243 1 file changed, 1 insertion(+) 9244 9245commit 6e1326fcdf6b6209949be57cfe3ad4b781b65168 9246Author: Lasse Collin <lasse.collin@tukaani.org> 9247Date: 2010-10-23 14:15:35 +0300 9248 9249 Add NEWS for 5.0.0. 9250 9251 NEWS | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 9252 1 file changed, 62 insertions(+) 9253 9254commit b667a3ef6338a2c1db7b7706b1f6c99ea392221c 9255Author: Lasse Collin <lasse.collin@tukaani.org> 9256Date: 2010-10-23 14:02:53 +0300 9257 9258 Bump version to 5.0.0 and liblzma version-info to 5:0:0. 9259 9260 src/liblzma/Makefile.am | 2 +- 9261 src/liblzma/api/lzma/version.h | 8 ++++---- 9262 2 files changed, 5 insertions(+), 5 deletions(-) 9263