1commit 682efdc1f9492fdd76c9ce82e7c00ca0768067e8 2Author: Lasse Collin <lasse.collin@tukaani.org> 3Date: 2009-08-27 18:36:59 +0300 4 5 "make dist" fixes 6 7 Makefile.am | 13 ++++++------- 8 1 files changed, 6 insertions(+), 7 deletions(-) 9 10commit c8c184db1c95bf70f78256ec6237845a57f342af 11Author: Lasse Collin <lasse.collin@tukaani.org> 12Date: 2009-08-27 17:08:33 +0300 13 14 Update xz man page date. 15 16 src/xz/xz.1 | 2 +- 17 1 files changed, 1 insertions(+), 1 deletions(-) 18 19commit 9756fce565e98b8fa5fe6ead296d84e7601ec254 20Author: Lasse Collin <lasse.collin@tukaani.org> 21Date: 2009-08-27 17:00:22 +0300 22 23 Fix the debug directory. 24 25 6a2eb54092fc625d59921a607ff68cd1a90aa898 and 26 71f18e8a066a01dda0c8e5508b135ef104e43e4c required 27 some changes that weren't applied in debug. 28 29 debug/Makefile.am | 5 +++-- 30 debug/full_flush.c | 1 + 31 debug/known_sizes.c | 1 + 32 debug/memusage.c | 1 + 33 debug/sync_flush.c | 1 + 34 5 files changed, 7 insertions(+), 2 deletions(-) 35 36commit 77007a7fb20187fcf3d1dd9839c79ace2d63f2ea 37Author: Lasse Collin <lasse.collin@tukaani.org> 38Date: 2009-08-27 16:36:40 +0300 39 40 Add missing files to EXTRA_DIST. 41 42 Makefile.am | 11 +++++++---- 43 1 files changed, 7 insertions(+), 4 deletions(-) 44 45commit 04dcbfdeb921e5f361a4487134e91e23fffbe09d 46Author: Lasse Collin <lasse.collin@tukaani.org> 47Date: 2009-08-27 16:21:22 +0300 48 49 Bumped version to 4.999.9beta. 50 51 src/liblzma/api/lzma/version.h | 2 +- 52 1 files changed, 1 insertions(+), 1 deletions(-) 53 54commit fd7618611a22f42a6913bc8d518c9bbc9252d6b4 55Author: Lasse Collin <lasse.collin@tukaani.org> 56Date: 2009-08-27 16:17:47 +0300 57 58 Updated THANKS. 59 60 THANKS | 2 ++ 61 1 files changed, 2 insertions(+), 0 deletions(-) 62 63commit c29e76c0f910fca0a90a50b78d337f6c32623e9d 64Author: Lasse Collin <lasse.collin@tukaani.org> 65Date: 2009-08-27 16:12:52 +0300 66 67 .xz file format specification 1.0.4 (probably). 68 69 Thanks to Christian von Roques, Peter Lawler, 70 and Jim Meyering for the fixes. 71 72 doc/xz-file-format.txt | 26 +++++++++++++++----------- 73 1 files changed, 15 insertions(+), 11 deletions(-) 74 75commit 696d7ee3953beaf4f0ed18e78917ccf300431966 76Author: Lasse Collin <lasse.collin@tukaani.org> 77Date: 2009-08-27 15:43:54 +0300 78 79 Require GNU libtool 2.2. 80 81 configure.ac | 13 +++---------- 82 1 files changed, 3 insertions(+), 10 deletions(-) 83 84commit 4c3558aa8305a8f8b6c43b8569eb539717ca9e8d 85Author: Lasse Collin <lasse.collin@tukaani.org> 86Date: 2009-08-27 15:34:45 +0300 87 88 Add "dos" to EXTRA_DIST. 89 90 Makefile.am | 1 + 91 1 files changed, 1 insertions(+), 0 deletions(-) 92 93commit 35b29e4424ced5a3ababf132283e519080c7b298 94Author: Lasse Collin <lasse.collin@tukaani.org> 95Date: 2009-08-27 15:23:27 +0300 96 97 Updated TODO. 98 99 TODO | 6 ++++++ 100 1 files changed, 6 insertions(+), 0 deletions(-) 101 102commit 23414377192c21f3f34c84cdfe0ef0fbd06a1dea 103Author: Lasse Collin <lasse.collin@tukaani.org> 104Date: 2009-08-27 15:17:00 +0300 105 106 Some xz man page improvements. 107 108 src/xz/xz.1 | 78 ++++++++++++++++++++++++++++++++++++++++++++++------------ 109 1 files changed, 62 insertions(+), 16 deletions(-) 110 111commit 371b04e19fc9051dbaeec51ec0badec6a1f0699d 112Author: Lasse Collin <lasse.collin@tukaani.org> 113Date: 2009-08-27 10:41:01 +0300 114 115 Removed doc/bugs.txt. 116 117 doc/bugs.txt | 46 ---------------------------------------------- 118 1 files changed, 0 insertions(+), 46 deletions(-) 119 120commit d88c4072b36d3a76f839185799fb1d91037a1b81 121Author: Lasse Collin <lasse.collin@tukaani.org> 122Date: 2009-08-27 10:40:25 +0300 123 124 Updated README. 125 126 It now includes bug reporting instructions/tips. 127 128 README | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--------- 129 1 files changed, 55 insertions(+), 10 deletions(-) 130 131commit 92e536d8b8d33a6b12d0802bcd7be4437046f13e 132Author: Lasse Collin <lasse.collin@tukaani.org> 133Date: 2009-08-27 10:21:18 +0300 134 135 Fix a typo in FAQ. 136 137 Thanks to Jim Meyering. 138 139 (From now on, I try to always remember to put 140 the relevant thanks to commit messages.) 141 142 doc/faq.txt | 2 +- 143 1 files changed, 1 insertions(+), 1 deletions(-) 144 145commit 3e2ba8b58585743e59251e69ad2783eb08357079 146Author: Lasse Collin <lasse.collin@tukaani.org> 147Date: 2009-08-27 10:13:46 +0300 148 149 Updates to liblzma API headers. 150 151 Added lzma_nothrow for every function. It adds 152 throw() when the header is used in C++ code. 153 154 Some lzma_attrs were added or removed. 155 156 Lots of comments were improved. 157 158 src/liblzma/api/lzma.h | 20 +++++++ 159 src/liblzma/api/lzma/base.h | 48 +++++++++-------- 160 src/liblzma/api/lzma/block.h | 38 +++++++------- 161 src/liblzma/api/lzma/check.h | 22 ++++---- 162 src/liblzma/api/lzma/container.h | 36 +++++++------ 163 src/liblzma/api/lzma/filter.h | 81 ++++++++++++++++++----------- 164 src/liblzma/api/lzma/index.h | 97 +++++++++++++++++++++-------------- 165 src/liblzma/api/lzma/index_hash.h | 14 +++-- 166 src/liblzma/api/lzma/lzma.h | 87 ++++++++++++++++--------------- 167 src/liblzma/api/lzma/stream_flags.h | 12 ++-- 168 src/liblzma/api/lzma/version.h | 10 ++-- 169 src/liblzma/api/lzma/vli.h | 7 ++- 170 12 files changed, 275 insertions(+), 197 deletions(-) 171 172commit 8e8ebc17c535a1f8846718059b48417409c37050 173Author: Lasse Collin <lasse.collin@tukaani.org> 174Date: 2009-08-18 00:30:09 +0300 175 176 Install faq.txt. 177 178 Makefile.am | 1 + 179 1 files changed, 1 insertions(+), 0 deletions(-) 180 181commit b198e770a146e4a41f91a93f0b233713f2515848 182Author: Lasse Collin <lasse.collin@tukaani.org> 183Date: 2009-08-18 00:26:48 +0300 184 185 Updated faq.txt. 186 187 Some questions worth answering were removed, because I 188 currently don't have good up to date answers to them. 189 190 doc/faq.txt | 239 ++++++++++++++++++----------------------------------------- 191 1 files changed, 73 insertions(+), 166 deletions(-) 192 193commit fe111a25cd788d31b581996e4533910388a7f0a9 194Author: Lasse Collin <lasse.collin@tukaani.org> 195Date: 2009-08-17 22:45:50 +0300 196 197 Some xz man changes. 198 199 src/xz/xz.1 | 88 +++++++++++++++++++++++++++++------------------------------ 200 1 files changed, 43 insertions(+), 45 deletions(-) 201 202commit 10242a21e9abda0c5c6a03501703cc40b8a699a5 203Author: Lasse Collin <lasse.collin@tukaani.org> 204Date: 2009-08-16 22:15:42 +0300 205 206 Updated THANKS. 207 208 THANKS | 1 + 209 1 files changed, 1 insertions(+), 0 deletions(-) 210 211commit 3ce1916c83041113b9cad9ead5c97a527cf8aa1d 212Author: Lasse Collin <lasse.collin@tukaani.org> 213Date: 2009-08-16 22:15:13 +0300 214 215 Fix data corruption in LZ/LZMA2 encoder. 216 217 Thanks to Jonathan Stott for the bug report. 218 219 src/liblzma/lz/lz_encoder.h | 2 +- 220 1 files changed, 1 insertions(+), 1 deletions(-) 221 222commit 66da129c8ec33dd66acc92f113f7c1ca740ca81a 223Author: Lasse Collin <lasse.collin@tukaani.org> 224Date: 2009-08-13 15:15:37 +0300 225 226 Updated INSTALL and PACKAGERS to match the changes 227 made in --enable-dynamic. 228 229 INSTALL | 20 ++++++++++++++++---- 230 PACKAGERS | 11 ++++++----- 231 2 files changed, 22 insertions(+), 9 deletions(-) 232 233commit 8238c4b2402f952c4e492e5b778aa272e57b6705 234Author: Lasse Collin <lasse.collin@tukaani.org> 235Date: 2009-08-13 15:03:46 +0300 236 237 Link lzmainfo against shared liblzma by default. 238 239 src/lzmainfo/Makefile.am | 4 ++-- 240 1 files changed, 2 insertions(+), 2 deletions(-) 241 242commit 71f18e8a066a01dda0c8e5508b135ef104e43e4c 243Author: Lasse Collin <lasse.collin@tukaani.org> 244Date: 2009-08-13 15:00:21 +0300 245 246 Make --enable-dynamic a tristate option. 247 248 Some programs will by default be linked against static 249 liblzma and some against shared liblzma. --enable-dynamic 250 now allows overriding the default to both directions 251 (all dynamic or all static) even when building both 252 shared and static liblzma. 253 254 This is quite messy compared to how simple thing it is supposed 255 to be. The complexity is mostly due to Windows support. 256 257 configure.ac | 77 +++++++++++++++++++++++++++++++++++++++++++--------------- 258 1 files changed, 57 insertions(+), 20 deletions(-) 259 260commit 5aa4678b2342dcfc1d2b31aa9fa4f39c539e4b61 261Author: Lasse Collin <lasse.collin@tukaani.org> 262Date: 2009-08-13 12:56:47 +0300 263 264 Fix xz Makefile.am for the man page. 265 266 install-exec-hook -> install-data-hook 267 268 src/xz/Makefile.am | 2 ++ 269 1 files changed, 2 insertions(+), 0 deletions(-) 270 271commit e51b4e49e800bd84e6d589dca2964d3985e88139 272Author: Lasse Collin <lasse.collin@tukaani.org> 273Date: 2009-08-13 12:55:45 +0300 274 275 Add lzmainfo for backward compatibility with LZMA Utils. 276 277 lzmainfo now links against static liblzma. In contrast 278 to other command line tools in XZ Utils, linking lzmainfo 279 against static liblzma by default is dumb. This will be 280 fixed once I have fixed some related issues in configure.ac. 281 282 configure.ac | 1 + 283 src/Makefile.am | 2 +- 284 src/lzmainfo/Makefile.am | 29 ++++++ 285 src/lzmainfo/lzmainfo.1 | 55 +++++++++++ 286 src/lzmainfo/lzmainfo.c | 242 ++++++++++++++++++++++++++++++++++++++++++++++ 287 5 files changed, 328 insertions(+), 1 deletions(-) 288 289commit a4165d0584376d948c213ec93c6065d24ff6a5e7 290Author: Lasse Collin <lasse.collin@tukaani.org> 291Date: 2009-08-13 12:42:36 +0300 292 293 Sync some error messages from xz to xzdec. 294 295 Make xz error message translation usable outside 296 xz (at least in upcoming lzmainfo). 297 298 src/xz/main.c | 4 ++-- 299 src/xzdec/xzdec.c | 6 +++--- 300 2 files changed, 5 insertions(+), 5 deletions(-) 301 302commit df636eb4e066b4e154ce8e66e82c87ba1db652a6 303Author: Lasse Collin <lasse.collin@tukaani.org> 304Date: 2009-08-13 09:37:21 +0300 305 306 Add xz man page to manfiles in toplevel Makefile.am. 307 308 Makefile.am | 1 + 309 1 files changed, 1 insertions(+), 0 deletions(-) 310 311commit 180bdf58ea5bb07941e0a99b304d9aa832198748 312Author: Lasse Collin <lasse.collin@tukaani.org> 313Date: 2009-08-13 09:37:01 +0300 314 315 Fix first line of xz man page. 316 317 src/xz/xz.1 | 2 +- 318 1 files changed, 1 insertions(+), 1 deletions(-) 319 320commit e1ce2291e759b50ebfcf7cbbcc04cd098f1705a4 321Author: Lasse Collin <lasse.collin@tukaani.org> 322Date: 2009-08-10 11:22:31 +0300 323 324 Added a rough version of the xz man page. 325 326 src/xz/Makefile.am | 15 + 327 src/xz/xz.1 | 1206 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 328 2 files changed, 1221 insertions(+), 0 deletions(-) 329 330commit e71903fc6101f1c039d702e335b08aad1e1b4100 331Author: Jonathan Nieder <jrnieder@gmail.com> 332Date: 2009-08-09 13:41:20 -0500 333 334 “xzdiff a.xz b.xz” always fails 335 336 Attempts to compare two compressed files result in no output and 337 exit status 2. 338 339 Instead of going to standard output, ‘diff’ output is being 340 captured in the xz_status variable along with the exit status from 341 the decompression commands. Later, when this variable is examined 342 for nonzero status codes, numerals from dates in the ‘diff’ output 343 make it appear as though decompression failed. 344 345 So let the ‘diff’ output leak to standard output with another file 346 descriptor. (This trick is used in all similar contexts elsewhere 347 in xzdiff and in the analogous context in gzip’s zdiff script.) 348 349 src/scripts/xzdiff.in | 2 +- 350 1 files changed, 1 insertions(+), 1 deletions(-) 351 352commit 1d314b81aa5b0c4530638ffabd4e0edb52e5362c 353Author: Jonathan Nieder <jrnieder@gmail.com> 354Date: 2009-08-09 13:22:12 -0500 355 356 xzless: Support compressed standard input 357 358 It can be somewhat confusing that 359 360 less < some_file.txt 361 362 works fine, whereas 363 364 xzless < some_file.txt.xz 365 366 does not. Since version 429, ‘less’ allows a filter specified in 367 the LESSOPEN environment variable to preprocess its input even if 368 it comes from standard input, if $LESSOPEN begins with ‘|-’. So 369 set $LESSOPEN to take advantage of this feature. 370 371 Check less’s version at runtime so xzless can continue to work 372 with older versions. 373 374 src/scripts/xzless.in | 8 +++++++- 375 1 files changed, 7 insertions(+), 1 deletions(-) 376 377commit a7f5d2fe4826ac68839d00059f05004fb81d5c69 378Author: Lasse Collin <lasse.collin@tukaani.org> 379Date: 2009-08-09 20:57:46 +0300 380 381 GPLv2+ not GPLv2 for Doxyfile.in is probably OK. 382 383 Doxyfile.in | 2 +- 384 1 files changed, 1 insertions(+), 1 deletions(-) 385 386commit b735cde20cc14857136ae65a0e5d336ed7ddc862 387Author: Lasse Collin <lasse.collin@tukaani.org> 388Date: 2009-08-02 00:27:29 +0300 389 390 Added a copyright notice to Doxyfile.in since it contains 391 lots of comments from Doxygen. 392 393 It seems that the Doxygen authors' intent is to not apply 394 their copyright on generated files, but since it doesn't 395 matter for XZ Utils at all, better safe than sorry. 396 397 Doxyfile.in | 3 +++ 398 1 files changed, 3 insertions(+), 0 deletions(-) 399 400commit 0fd157cc008446adfc8f91394f5503868025a642 401Author: Lasse Collin <lasse.collin@tukaani.org> 402Date: 2009-08-02 00:11:37 +0300 403 404 Updated THANKS. 405 406 THANKS | 1 + 407 1 files changed, 1 insertions(+), 0 deletions(-) 408 409commit b198da96ff9ac8c89b466b4d196c5f3fe1c7904f 410Author: Lasse Collin <lasse.collin@tukaani.org> 411Date: 2009-08-02 00:10:22 +0300 412 413 Updated TODO. 414 415 TODO | 4 ++++ 416 1 files changed, 4 insertions(+), 0 deletions(-) 417 418commit 669413bb2db954bbfde3c4542fddbbab53891eb4 419Author: Lasse Collin <lasse.collin@tukaani.org> 420Date: 2009-07-30 12:25:55 +0300 421 422 Updated THANKS. 423 424 THANKS | 1 + 425 1 files changed, 1 insertions(+), 0 deletions(-) 426 427commit dbbd8fb870ae789d96497911006c869d37148c15 428Author: Jonathan Nieder <jrnieder@gmail.com> 429Date: 2009-07-28 17:37:24 -0500 430 431 xzdiff: add missing ;; to case statement 432 433 src/scripts/xzdiff.in | 6 +++--- 434 1 files changed, 3 insertions(+), 3 deletions(-) 435 436commit adbad2d16cb5909f85d4a429011005613ea62ffe 437Author: Lasse Collin <lasse.collin@tukaani.org> 438Date: 2009-07-24 13:15:06 +0300 439 440 Added history.txt to doc_DATA. 441 442 Makefile.am | 1 + 443 1 files changed, 1 insertions(+), 0 deletions(-) 444 445commit e0236f12569eb36f9b81ce7a1e52e0f73698ac27 446Author: Lasse Collin <lasse.collin@tukaani.org> 447Date: 2009-07-24 12:00:40 +0300 448 449 Updated .gitignore files. 450 451 .gitignore | 36 +++++++++++++++++++----------------- 452 po/.gitignore | 3 +++ 453 2 files changed, 22 insertions(+), 17 deletions(-) 454 455commit 2f34fb269265e3aba43a2a9c734020a45268826d 456Author: Lasse Collin <lasse.collin@tukaani.org> 457Date: 2009-07-24 11:34:02 +0300 458 459 Minor improvements to COPYING. 460 461 COPYING | 11 ++++++++--- 462 1 files changed, 8 insertions(+), 3 deletions(-) 463 464commit 0db1befcfbc120377df4b89923762f16d25f548a 465Author: Lasse Collin <lasse.collin@tukaani.org> 466Date: 2009-07-23 19:10:55 +0300 467 468 Fix incorrect usage of getopt_long(), which caused 469 invalid memory access if XZ_OPT was defined. 470 471 src/xz/args.c | 1 - 472 1 files changed, 0 insertions(+), 1 deletions(-) 473 474commit 8f8ec942d6d21ada2096eaf063411bc8bc7e2d48 475Author: Lasse Collin <lasse.collin@tukaani.org> 476Date: 2009-07-20 15:43:32 +0300 477 478 Avoid internal error with --format=xz --lzma1. 479 480 src/xz/coder.c | 16 ++++++++++++---- 481 1 files changed, 12 insertions(+), 4 deletions(-) 482 483commit 99f9e879a6a8bb54a65da99c12e0f390216c152a 484Author: Lasse Collin <lasse.collin@tukaani.org> 485Date: 2009-07-19 13:14:20 +0300 486 487 Major documentation update. 488 489 Installation and packaging instructions were added. 490 README and other generic docs were revised. 491 492 Some of the documentation files are now installed to $docdir. 493 494 AUTHORS | 35 ++++-- 495 ChangeLog | 7 +- 496 INSTALL | 327 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 497 INSTALL.generic | 302 ++++++++++++++++++++++++++++++++++++++++++++++++++ 498 Makefile.am | 11 ++ 499 PACKAGERS | 278 ++++++++++++++++++++++++++++++++++++++++++++++ 500 README | 263 +++++++++++++++++++------------------------- 501 THANKS | 17 ++-- 502 8 files changed, 1070 insertions(+), 170 deletions(-) 503 504commit ef4cf1851de89022cba5674784f1a8f6343c15b0 505Author: Lasse Collin <lasse.collin@tukaani.org> 506Date: 2009-07-19 11:09:31 +0300 507 508 Added missing author notice to xzless.in. 509 510 src/scripts/xzless.in | 1 + 511 1 files changed, 1 insertions(+), 0 deletions(-) 512 513commit 4c9c989d45b188667799a7a1d6c728ed43f7bf77 514Author: Lasse Collin <lasse.collin@tukaani.org> 515Date: 2009-07-18 18:54:55 +0300 516 517 Use AC_CONFIG_AUX_DIR to clean up the toplevel directory 518 a little. 519 520 Fixed a related bug in the toplevel Makefile.am. 521 522 Added the build-aux directory to .gitignore. 523 524 .gitignore | 1 + 525 Makefile.am | 1 - 526 configure.ac | 3 ++- 527 3 files changed, 3 insertions(+), 2 deletions(-) 528 529commit 366e436090a7a87215e9bf0e3ddcd55f05b50587 530Author: Lasse Collin <lasse.collin@tukaani.org> 531Date: 2009-07-18 14:34:08 +0300 532 533 Updated the totally outdated TODO file. 534 535 TODO | 117 +++++++++++++++-------------------------------------------------- 536 1 files changed, 27 insertions(+), 90 deletions(-) 537 538commit 64e498c89d8b9966e8663f43bf64d47c26c55c62 539Author: Lasse Collin <lasse.collin@tukaani.org> 540Date: 2009-07-18 11:26:39 +0300 541 542 Added public domain notice into a few files. 543 544 src/common/common_w32res.rc | 9 ++++++++- 545 src/liblzma/liblzma.pc.in | 7 +++++++ 546 src/liblzma/liblzma_w32res.rc | 7 +++++++ 547 src/xz/xz_w32res.rc | 7 +++++++ 548 src/xzdec/xzdec_w32res.rc | 7 +++++++ 549 5 files changed, 36 insertions(+), 1 deletions(-) 550 551commit a35755c5de808df027675688855d1b621a4fb428 552Author: Lasse Collin <lasse.collin@tukaani.org> 553Date: 2009-07-14 21:10:36 +0300 554 555 Allow extra commas in filter-specific options on xz command line. 556 557 This may slightly ease writing scripts that construct 558 filter-specific option strings dynamically. 559 560 src/xz/options.c | 7 +++++++ 561 1 files changed, 7 insertions(+), 0 deletions(-) 562 563commit 98f3cac1ad31191c5160a7e48398bf85141e941c 564Author: Lasse Collin <lasse.collin@tukaani.org> 565Date: 2009-07-14 18:04:31 +0300 566 567 Accept --lzma2=preset=6e where "e" is equivalent to --extreme 568 when no custom chain is in use. 569 570 src/xz/options.c | 80 +++++++++++++++++++++++++++++++++++++++-------------- 571 1 files changed, 59 insertions(+), 21 deletions(-) 572 573commit d873a09e956363e54bf58c577c8f7e487b6fb464 574Author: Lasse Collin <lasse.collin@tukaani.org> 575Date: 2009-07-12 19:08:30 +0300 576 577 Add dist-hook to create ChangeLog from the commit log, 578 and to conver the man pages to PDF and plain text, which 579 may be convenient to those who cannot render man pages. 580 581 Makefile.am | 31 +++++++++++++++++++++++++++++++ 582 1 files changed, 31 insertions(+), 0 deletions(-) 583 584commit cd69a5a6c16c289f6f8e2823b03c72289472270f 585Author: Lasse Collin <lasse.collin@tukaani.org> 586Date: 2009-07-10 11:39:38 +0300 587 588 BCJ filters: Reject invalid start offsets with LZMA_OPTIONS_ERROR. 589 590 This is a quick and slightly dirty fix to make the code 591 conform to the latest file format specification. Without 592 this patch, it's possible to make corrupt files by 593 specifying start offset that is not a multiple of the 594 filter's alignment. Custom start offset is almost never 595 used, so this was only a minor bug. 596 597 The xz command line tool doesn't validate the start offset, 598 so one will get a bit unclear error message if trying to use 599 an invalid start offset. 600 601 src/liblzma/simple/arm.c | 2 +- 602 src/liblzma/simple/armthumb.c | 2 +- 603 src/liblzma/simple/ia64.c | 2 +- 604 src/liblzma/simple/powerpc.c | 2 +- 605 src/liblzma/simple/simple_coder.c | 5 ++++- 606 src/liblzma/simple/simple_private.h | 3 ++- 607 src/liblzma/simple/sparc.c | 2 +- 608 src/liblzma/simple/x86.c | 2 +- 609 8 files changed, 12 insertions(+), 8 deletions(-) 610 611commit eed9953732b801f6c97317fb3160445a8754180b 612Author: Lasse Collin <lasse.collin@tukaani.org> 613Date: 2009-07-10 11:33:21 +0300 614 615 Look for full command names instead of substrings 616 like "un", "cat", and "lz" when determining if 617 xz is run as unxz, xzcat, lzma, unlzma, or lzcat. 618 619 This is to ensure that if xz is renamed (e.g. via 620 --program-transform-name), it doesn't so easily 621 work in wrong mode. 622 623 src/xz/args.c | 22 +++++++++++++--------- 624 1 files changed, 13 insertions(+), 9 deletions(-) 625 626commit 6f62fa88f4ff7ba78565c314c0e6e71c498fa658 627Author: Lasse Collin <lasse.collin@tukaani.org> 628Date: 2009-07-08 23:06:46 +0300 629 630 Updated THANKS. 631 632 THANKS | 2 ++ 633 1 files changed, 2 insertions(+), 0 deletions(-) 634 635commit 1754b7e03e2aa7e2e0196807fe8b0f3f5a637b0e 636Author: Lasse Collin <lasse.collin@tukaani.org> 637Date: 2009-07-08 23:05:29 +0300 638 639 Portability improvement to version.sh. 640 641 version.sh | 3 ++- 642 1 files changed, 2 insertions(+), 1 deletions(-) 643 644commit 3bdb53792c0e3e3febe9370e56eda5b08f89410f 645Author: Lasse Collin <lasse.collin@tukaani.org> 646Date: 2009-07-08 22:50:16 +0300 647 648 Remove --force from xzdec. 649 650 It was ignored for compatibility with xz, but now that 651 --decompress --stdout --force copies unrecognized files 652 as is to stdout, simply ignoring --force in xzdec would 653 be wrong. xzdec will not support copying unrecognized 654 data as is to stdout, so it cannot support --force. 655 656 src/xzdec/xzdec.1 | 5 ----- 657 src/xzdec/xzdec.c | 5 +---- 658 2 files changed, 1 insertions(+), 9 deletions(-) 659 660commit 5f16ef4abf220028a9ddbcb138217597a9455f62 661Author: Lasse Collin <lasse.collin@tukaani.org> 662Date: 2009-07-06 10:36:04 +0300 663 664 Use sed instead of $(SED) so that we don't need to 665 use AC_PROG_SED. We don't do anything fancy with sed, 666 so this should work OK. libtool 2.2 sets SED but 1.5 667 doesn't, so $(SED) happened to work when using libtool 2.2. 668 669 src/liblzma/Makefile.am | 2 +- 670 src/scripts/Makefile.am | 28 ++++++++++++++-------------- 671 src/xz/Makefile.am | 6 +++--- 672 src/xzdec/Makefile.am | 6 +++--- 673 4 files changed, 21 insertions(+), 21 deletions(-) 674 675commit 96e4b257e101d72072d43e144897d92920270669 676Author: Lasse Collin <lasse.collin@tukaani.org> 677Date: 2009-07-05 22:25:17 +0300 678 679 Major update to the xzgrep and other scripts based on 680 the latest versions found from gzip CVS repository. 681 682 configure will try to find a POSIX shell to be used by 683 the scripts. This should ease portability on systems 684 which have pre-POSIX /bin/sh. 685 686 xzgrep and xzdiff support .xz, .lzma, .gz, and .bz2 files. 687 xzmore and xzless support only .xz and .lzma files. 688 689 The name of the xz executable used in these scripts is 690 now correct even if --program-transform-name has been used. 691 692 configure.ac | 14 ++++ 693 m4/posix-shell.m4 | 63 +++++++++++++++ 694 src/scripts/Makefile.am | 24 +++--- 695 src/scripts/xzdiff | 67 ---------------- 696 src/scripts/xzdiff.1 | 58 +++++++++----- 697 src/scripts/xzdiff.in | 172 +++++++++++++++++++++++++++++++++++++++++ 698 src/scripts/xzgrep | 123 ----------------------------- 699 src/scripts/xzgrep.1 | 85 ++++++++++++-------- 700 src/scripts/xzgrep.in | 196 +++++++++++++++++++++++++++++++++++++++++++++++ 701 src/scripts/xzless.1 | 66 ++++++++++++++++ 702 src/scripts/xzless.in | 51 ++++++++++++ 703 src/scripts/xzmore | 74 ------------------ 704 src/scripts/xzmore.1 | 64 ++++++--------- 705 src/scripts/xzmore.in | 78 +++++++++++++++++++ 706 14 files changed, 766 insertions(+), 369 deletions(-) 707 708commit 25cc7a6e8c2506a0d80084a4c1c67d33e7439100 709Author: Lasse Collin <lasse.collin@tukaani.org> 710Date: 2009-07-05 19:26:53 +0300 711 712 Use @PACKAGE_HOMEPAGE@ in liblzma.pc.in. 713 714 src/liblzma/liblzma.pc.in | 2 +- 715 1 files changed, 1 insertions(+), 1 deletions(-) 716 717commit 18c10c30d2833f394cd7bce0e6a821044b15832f 718Author: Lasse Collin <lasse.collin@tukaani.org> 719Date: 2009-07-04 00:40:44 +0300 720 721 Make "xz --decompress --stdout --force" copy unrecognized 722 files as is to standard output. 723 724 This feature is needed to be more compatible with gzip's 725 behavior. This was more complicated to implement than it 726 sounds, because the way liblzma is able to return errors with 727 files of only a few bytes in size. xz now has its own file 728 type detection code and no longer uses lzma_auto_decoder(). 729 730 src/xz/coder.c | 213 ++++++++++++++++++++++++++++++++++++++++++++++--------- 731 1 files changed, 178 insertions(+), 35 deletions(-) 732 733commit 0a289c01ac821ea9c4250aa906b0ae3cfa953633 734Author: Lasse Collin <lasse.collin@tukaani.org> 735Date: 2009-07-02 14:30:38 +0300 736 737 Define PACKAGE_HOMEPAGE in configure.ac and use it in 738 xz and xzdec. 739 740 Use also PACKAGE_NAME instead of hardcoding "XZ Utils". 741 742 configure.ac | 5 +++++ 743 src/xz/message.c | 4 ++-- 744 src/xzdec/xzdec.c | 4 ++-- 745 3 files changed, 9 insertions(+), 4 deletions(-) 746 747commit 5cc99db5bae8633f85559e5cdaef4cd905a4ee9c 748Author: Lasse Collin <lasse.collin@tukaani.org> 749Date: 2009-07-01 12:21:24 +0300 750 751 Avoid visibility related compiler warnings on Windows. 752 753 configure.ac | 20 +++++++++----------- 754 1 files changed, 9 insertions(+), 11 deletions(-) 755 756commit 7653d1cf48080e63b189ed9d58dea0e82b6b1c5e 757Author: Lasse Collin <lasse.collin@tukaani.org> 758Date: 2009-06-30 17:14:39 +0300 759 760 Use static liblzma by default also for tests. 761 762 tests/Makefile.am | 5 ++++- 763 1 files changed, 4 insertions(+), 1 deletions(-) 764 765commit f42ee981668b545ab6d06c6072e262c29605273c 766Author: Lasse Collin <lasse.collin@tukaani.org> 767Date: 2009-06-30 17:09:57 +0300 768 769 Build system fixes 770 771 Don't use libtool convenience libraries to avoid recently 772 discovered long-standing subtle but somewhat severe bugs 773 in libtool (at least 1.5.22 and 2.2.6 are affected). It 774 was found when porting XZ Utils to Windows 775 <http://lists.gnu.org/archive/html/libtool/2009-06/msg00070.html> 776 but the problem is significant also e.g. on GNU/Linux. 777 778 Unless --disable-shared is passed to configure, static 779 library built from a set of convenience libraries will 780 contain PIC objects. That is, while libtool builds non-PIC 781 objects too, only PIC objects will be used from the 782 convenience libraries. On 32-bit x86 (tested on mobile XP2400+), 783 using PIC instead of non-PIC makes the decompressor 10 % slower 784 with the default CFLAGS. 785 786 So while xz was linked against static liblzma by default, 787 it got the slower PIC objects unless --disable-shared was 788 used. I tend develop and benchmark with --disable-shared 789 due to faster build time, so I hadn't noticed the problem 790 in benchmarks earlier. 791 792 This commit also adds support for building Windows resources 793 into liblzma and executables. 794 795 configure.ac | 34 ++++++++++----- 796 src/liblzma/Makefile.am | 79 +++++++++++++++++++++++++++------- 797 src/liblzma/check/Makefile.am | 47 --------------------- 798 src/liblzma/check/Makefile.inc | 51 ++++++++++++++++++++++ 799 src/liblzma/common/Makefile.am | 78 ---------------------------------- 800 src/liblzma/common/Makefile.inc | 67 +++++++++++++++++++++++++++++ 801 src/liblzma/common/common.h | 16 ++++--- 802 src/liblzma/delta/Makefile.am | 28 ------------ 803 src/liblzma/delta/Makefile.inc | 23 ++++++++++ 804 src/liblzma/lz/Makefile.am | 29 ------------- 805 src/liblzma/lz/Makefile.inc | 21 +++++++++ 806 src/liblzma/lzma/Makefile.am | 51 ---------------------- 807 src/liblzma/lzma/Makefile.inc | 43 +++++++++++++++++++ 808 src/liblzma/rangecoder/Makefile.am | 26 ----------- 809 src/liblzma/rangecoder/Makefile.inc | 21 +++++++++ 810 src/liblzma/simple/Makefile.am | 51 ---------------------- 811 src/liblzma/simple/Makefile.inc | 47 +++++++++++++++++++++ 812 src/liblzma/subblock/Makefile.am | 26 ----------- 813 src/liblzma/subblock/Makefile.inc | 20 +++++++++ 814 src/xz/Makefile.am | 11 ++++- 815 src/xzdec/Makefile.am | 20 ++++++++- 816 21 files changed, 417 insertions(+), 372 deletions(-) 817 818commit 89dac1db6f168d7469cfbc4432651d4724c5c0de 819Author: Lasse Collin <lasse.collin@tukaani.org> 820Date: 2009-06-29 22:19:51 +0300 821 822 Added a comment about "autoconf -fi" to autogen.sh. 823 824 autogen.sh | 3 +++ 825 1 files changed, 3 insertions(+), 0 deletions(-) 826 827commit 6e685aae4594bc0af1b5032e01bb37d0edaa3ebd 828Author: Lasse Collin <lasse.collin@tukaani.org> 829Date: 2009-06-28 10:04:24 +0300 830 831 Add -no-undefined to get shared liblzma on Windows. 832 833 src/liblzma/Makefile.am | 2 +- 834 1 files changed, 1 insertions(+), 1 deletions(-) 835 836commit 73f560ee5fa064992b76688d9472baf139432540 837Author: Lasse Collin <lasse.collin@tukaani.org> 838Date: 2009-06-27 22:57:15 +0300 839 840 Make physmem() work on Cygwin 1.5 and older. 841 842 src/common/physmem.h | 77 ++++++++++++++++++++++++++------------------------ 843 1 files changed, 40 insertions(+), 37 deletions(-) 844 845commit 7ff0004fbce24ae72eddfe392828ffd7d4639ed1 846Author: Lasse Collin <lasse.collin@tukaani.org> 847Date: 2009-06-27 17:28:01 +0300 848 849 Moved the Windows resource files outside the windows directory 850 to prepare for building them with Autotools. 851 852 src/common/common_w32res.rc | 46 +++++++++++++++++++++++++++++++++++++++++ 853 src/liblzma/liblzma_w32res.rc | 5 ++++ 854 src/xz/xz_w32res.rc | 5 ++++ 855 src/xzdec/lzmadec_w32res.rc | 5 ++++ 856 src/xzdec/xzdec_w32res.rc | 5 ++++ 857 windows/Makefile | 35 +++++++++++++++++-------------- 858 windows/common.rc | 46 ----------------------------------------- 859 windows/liblzma.rc | 5 ---- 860 windows/lzmadec.rc | 5 ---- 861 windows/xz.rc | 5 ---- 862 windows/xzdec.rc | 5 ---- 863 11 files changed, 85 insertions(+), 82 deletions(-) 864 865commit 449c634674f35336a4815d398172e447659a135e 866Author: Lasse Collin <lasse.collin@tukaani.org> 867Date: 2009-06-27 13:05:03 +0300 868 869 Added missing $(EXEEXT). 870 871 src/xz/Makefile.am | 2 +- 872 1 files changed, 1 insertions(+), 1 deletions(-) 873 874commit 792db79f27ad9ab1fb977e23be65c7761f545752 875Author: Lasse Collin <lasse.collin@tukaani.org> 876Date: 2009-06-27 12:32:40 +0300 877 878 Create correct symlinks even when 879 --program-{prefix,suffix,transform} is passed to configure. 880 881 src/scripts/Makefile.am | 80 +++++++++++++++++++++++++++-------------------- 882 src/xz/Makefile.am | 21 +++++++----- 883 src/xzdec/Makefile.am | 9 +++-- 884 3 files changed, 65 insertions(+), 45 deletions(-) 885 886commit 0adc72feb84f5b903f6ad9d3f759b1c326fafc6b 887Author: Lasse Collin <lasse.collin@tukaani.org> 888Date: 2009-06-27 10:02:24 +0300 889 890 Silence a compiler warning on DOS-like systems. 891 892 src/xz/file_io.c | 5 ++++- 893 1 files changed, 4 insertions(+), 1 deletions(-) 894 895commit ad12edc95254ede3f0cb8dec8645e8789e984c4f 896Author: Lasse Collin <lasse.collin@tukaani.org> 897Date: 2009-06-27 09:35:15 +0300 898 899 Updated the filenames in POTFILES.in too. 900 901 po/POTFILES.in | 4 ++-- 902 1 files changed, 2 insertions(+), 2 deletions(-) 903 904commit b2b1f867532732fe9969131f8713bdd6b0731763 905Author: Lasse Collin <lasse.collin@tukaani.org> 906Date: 2009-06-27 00:43:06 +0300 907 908 Hopefully improved portability of the assembler code in 909 Autotools based builds on Windows. 910 911 src/liblzma/check/crc32_x86.S | 8 +++++++- 912 src/liblzma/check/crc64_x86.S | 8 +++++++- 913 2 files changed, 14 insertions(+), 2 deletions(-) 914 915commit c393055947247627a09b6a6b8f20aa0c32f9be16 916Author: Lasse Collin <lasse.collin@tukaani.org> 917Date: 2009-06-26 21:17:29 +0300 918 919 Updated THANKS (most of today's commits are based on 920 Charles Wilson's patches). 921 922 THANKS | 1 + 923 1 files changed, 1 insertions(+), 0 deletions(-) 924 925commit da0af22e4b4139b8a10710945f8b245b3a77c97d 926Author: Lasse Collin <lasse.collin@tukaani.org> 927Date: 2009-06-26 21:00:35 +0300 928 929 Updated comments to match renamed files. 930 931 src/xz/coder.c | 2 +- 932 src/xz/coder.h | 2 +- 933 src/xz/file_io.c | 2 +- 934 src/xz/file_io.h | 2 +- 935 4 files changed, 4 insertions(+), 4 deletions(-) 936 937commit 65014fd211dfbd4be48685998cb5a12aaa29c8d2 938Author: Lasse Collin <lasse.collin@tukaani.org> 939Date: 2009-06-26 20:49:54 +0300 940 941 Rename process.[hc] to coder.[hc] and io.[hc] to file_io.[hc] 942 to avoid problems on systems with system headers with those 943 names. 944 945 dos/Makefile | 4 +- 946 src/xz/Makefile.am | 8 +- 947 src/xz/coder.c | 488 +++++++++++++++++++++++++++++++++++ 948 src/xz/coder.h | 57 ++++ 949 src/xz/file_io.c | 716 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 950 src/xz/file_io.h | 86 +++++++ 951 src/xz/io.c | 716 ---------------------------------------------------- 952 src/xz/io.h | 86 ------- 953 src/xz/private.h | 4 +- 954 src/xz/process.c | 488 ----------------------------------- 955 src/xz/process.h | 57 ---- 956 windows/Makefile | 4 +- 957 12 files changed, 1357 insertions(+), 1357 deletions(-) 958 959commit 5e1257466dcb66f1d7a3f71814a5ad885cba43e8 960Author: Lasse Collin <lasse.collin@tukaani.org> 961Date: 2009-06-26 20:43:36 +0300 962 963 Rename process_file() to coder_run(). 964 965 src/xz/main.c | 6 +++--- 966 src/xz/process.c | 6 +++--- 967 src/xz/process.h | 5 ++--- 968 3 files changed, 8 insertions(+), 9 deletions(-) 969 970commit cad62551c5fa9865dbe0841a0b3bc729c4fbe8fc 971Author: Lasse Collin <lasse.collin@tukaani.org> 972Date: 2009-06-26 20:36:45 +0300 973 974 Ugly hack to make it possible to use the thousand separator 975 format character with snprintf() on POSIX systems but not 976 on non-POSIX systems and still keep xgettext working. 977 978 dos/Makefile | 16 +++------------- 979 src/xz/message.c | 17 +++++++++-------- 980 src/xz/process.c | 30 +++++++++++++++--------------- 981 src/xz/util.c | 34 ++++++++++++++++++++++++++++++++++ 982 src/xz/util.h | 20 ++++++++++++++++++++ 983 windows/Makefile | 13 +++---------- 984 6 files changed, 84 insertions(+), 46 deletions(-) 985 986commit fe378d47074b16c52b00fe184d119287c68ce2e7 987Author: Lasse Collin <lasse.collin@tukaani.org> 988Date: 2009-06-26 15:40:40 +0300 989 990 Added missing source files to windows/Makefile. 991 992 windows/Makefile | 2 ++ 993 1 files changed, 2 insertions(+), 0 deletions(-) 994 995commit 390a6408563067613b29de895cb40e4d0386d62c 996Author: Lasse Collin <lasse.collin@tukaani.org> 997Date: 2009-06-26 15:37:53 +0300 998 999 Basic support for building with Cygwin and MinGW using 1000 the Autotools based build system. It's not good yet, more 1001 fixes will follow. 1002 1003 configure.ac | 7 +++++++ 1004 src/liblzma/api/lzma.h | 7 +++++-- 1005 src/liblzma/check/crc32_x86.S | 7 ++++--- 1006 src/liblzma/check/crc64_x86.S | 7 ++++--- 1007 src/liblzma/common/common.h | 2 +- 1008 windows/Makefile | 16 +++++++--------- 1009 6 files changed, 28 insertions(+), 18 deletions(-) 1010 1011commit 1c9360b7d1197457aaad2f8888b99f1149861579 1012Author: Lasse Collin <lasse.collin@tukaani.org> 1013Date: 2009-06-26 14:47:31 +0300 1014 1015 Fix @variables@ to $(variables) in Makefile.am files. 1016 Fix the ordering of libgnu.a and LTLIBINTL on the linker 1017 command line and added missing LTLIBINTL to tests/Makefile.am. 1018 1019 debug/Makefile.am | 12 ++++++------ 1020 src/liblzma/check/Makefile.am | 4 ++-- 1021 src/liblzma/common/Makefile.am | 16 ++++++++-------- 1022 src/liblzma/delta/Makefile.am | 4 ++-- 1023 src/liblzma/lz/Makefile.am | 6 +++--- 1024 src/liblzma/lzma/Makefile.am | 8 ++++---- 1025 src/liblzma/rangecoder/Makefile.am | 4 ++-- 1026 src/liblzma/simple/Makefile.am | 4 ++-- 1027 src/liblzma/subblock/Makefile.am | 4 ++-- 1028 src/xz/Makefile.am | 21 +++++++++++---------- 1029 src/xzdec/Makefile.am | 19 ++++++++++--------- 1030 tests/Makefile.am | 12 +++++++----- 1031 12 files changed, 59 insertions(+), 55 deletions(-) 1032 1033commit d45615c555e250209ebb55aa3649abe790f1eeac 1034Author: Lasse Collin <lasse.collin@tukaani.org> 1035Date: 2009-06-26 14:20:02 +0300 1036 1037 Allow to explicitly specify autotool versions in autogen.sh. 1038 1039 autogen.sh | 12 ++++++------ 1040 1 files changed, 6 insertions(+), 6 deletions(-) 1041 1042commit eaf8367368a329afa48785380f9dca6b681f3397 1043Author: Lasse Collin <lasse.collin@tukaani.org> 1044Date: 2009-06-26 14:18:32 +0300 1045 1046 Add version.sh to EXTRA_DIST. 1047 1048 Makefile.am | 3 ++- 1049 1 files changed, 2 insertions(+), 1 deletions(-) 1050 1051commit b317b218e2d383dd27a700094c0de4510540ea18 1052Author: Lasse Collin <lasse.collin@tukaani.org> 1053Date: 2009-06-24 20:14:10 +0300 1054 1055 Support HW_PHYSMEM64 1056 1057 src/common/physmem.h | 30 +++++++++++++++++++----------- 1058 1 files changed, 19 insertions(+), 11 deletions(-) 1059 1060commit ae82dde5d9cc60c80cc89601b6c51cc1611d48e7 1061Author: Lasse Collin <lasse.collin@tukaani.org> 1062Date: 2009-06-24 13:01:59 +0300 1063 1064 Cast a char argument to isspace() to unsigned char. 1065 1066 src/xz/args.c | 11 +++++++++-- 1067 1 files changed, 9 insertions(+), 2 deletions(-) 1068 1069commit 1735d31ea347210e914df038eeea4b2626e76e42 1070Author: Lasse Collin <lasse.collin@tukaani.org> 1071Date: 2009-06-05 13:46:26 +0300 1072 1073 A few more spelling fixes. Released the .xz spec 1.0.3. 1074 1075 doc/xz-file-format.txt | 12 +++++++----- 1076 1 files changed, 7 insertions(+), 5 deletions(-) 1077 1078commit 8ed156ce894966103e895aa08f2a9fb912f6fad5 1079Author: Lasse Collin <lasse.collin@tukaani.org> 1080Date: 2009-06-04 23:42:12 +0300 1081 1082 Added xzdec man page. 1083 1084 src/xzdec/Makefile.am | 11 +++ 1085 src/xzdec/xzdec.1 | 173 +++++++++++++++++++++++++++++++++++++++++++++++++ 1086 2 files changed, 184 insertions(+), 0 deletions(-) 1087 1088commit f6df39afaa84f71439507178a49b2a5dda6e824c 1089Author: Lasse Collin <lasse.collin@tukaani.org> 1090Date: 2009-06-04 23:26:47 +0300 1091 1092 Harmonized xzdec --memory with xz --memory and made 1093 minor cleanups. 1094 1095 src/xzdec/xzdec.c | 74 ++++++++++++++++++++++++++++++++++++++--------------- 1096 1 files changed, 53 insertions(+), 21 deletions(-) 1097 1098commit 1774f27c61ce294a56712ca2f4785f90a62441bc 1099Author: Lasse Collin <lasse.collin@tukaani.org> 1100Date: 2009-06-04 22:59:55 +0300 1101 1102 Fix purporse -> purpose. Thanks to Andrew Dudman. 1103 Released .xz spec 1.0.2 due to this fix too. 1104 1105 THANKS | 1 + 1106 doc/xz-file-format.txt | 8 +++++--- 1107 src/liblzma/liblzma.pc.in | 2 +- 1108 windows/Makefile | 2 +- 1109 4 files changed, 8 insertions(+), 5 deletions(-) 1110 1111commit cb613455642f48fb51059e22018615f64c59b70f 1112Author: Lasse Collin <lasse.collin@tukaani.org> 1113Date: 2009-06-01 14:53:57 +0300 1114 1115 The .xz file format version 1.0.1 1116 1117 doc/xz-file-format.txt | 29 ++++++++++++++++++++++------- 1118 1 files changed, 22 insertions(+), 7 deletions(-) 1119 1120commit 083c23c680ff844846d177cfc58bb7a874e7e6b9 1121Author: Lasse Collin <lasse.collin@tukaani.org> 1122Date: 2009-05-26 14:48:48 +0300 1123 1124 Make the raw value of the Check field available to applications 1125 via lzma_block structure. 1126 1127 This changes ABI but not doesn't break API. 1128 1129 src/liblzma/api/lzma/block.h | 17 ++++++++++++++ 1130 src/liblzma/common/block_buffer_encoder.c | 1 + 1131 src/liblzma/common/block_decoder.c | 34 ++++++++++++---------------- 1132 src/liblzma/common/block_encoder.c | 21 +++++++---------- 1133 4 files changed, 42 insertions(+), 31 deletions(-) 1134 1135commit b4f5c814090dc07d4350453576305e41eb9c998d 1136Author: Lasse Collin <lasse.collin@tukaani.org> 1137Date: 2009-05-23 16:57:21 +0300 1138 1139 Remove undocumented alternative option names --bcj, --ppc, 1140 and --itanium. 1141 1142 src/xz/args.c | 3 --- 1143 1 files changed, 0 insertions(+), 3 deletions(-) 1144 1145commit b1edee2cdc7ef4411b1a21c07094ec763f071281 1146Author: Lasse Collin <lasse.collin@tukaani.org> 1147Date: 2009-05-23 15:12:23 +0300 1148 1149 Add support for specifying the BCJ filter start offset 1150 in the xz command line tool. 1151 1152 src/xz/args.c | 36 +++++++++++++++++++++--------------- 1153 src/xz/message.c | 14 ++++++++------ 1154 src/xz/options.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1155 src/xz/options.h | 7 +++++++ 1156 4 files changed, 76 insertions(+), 21 deletions(-) 1157 1158commit 72aa0e9c5f4289f10ef5bf240a9448d3017f1ceb 1159Author: Lasse Collin <lasse.collin@tukaani.org> 1160Date: 2009-05-23 14:51:09 +0300 1161 1162 Updated THANKS. 1163 1164 THANKS | 2 ++ 1165 1 files changed, 2 insertions(+), 0 deletions(-) 1166 1167commit dcedb6998cefeca6597dd1219328a3abf5acf66d 1168Author: Lasse Collin <lasse.collin@tukaani.org> 1169Date: 2009-05-22 16:40:50 +0300 1170 1171 Added support for --quiet and --no-warn to xzdec. 1172 Cleaned up the --help message a little. 1173 1174 src/xzdec/xzdec.c | 76 ++++++++++++++++++++++++++++++++++------------------- 1175 1 files changed, 49 insertions(+), 27 deletions(-) 1176 1177commit 5f735dae80aa629853f4831d7b84ec1c614979eb 1178Author: Lasse Collin <lasse.collin@tukaani.org> 1179Date: 2009-05-22 15:11:52 +0300 1180 1181 Use the 40 % of RAM memory usage limit in xzdec too. 1182 1183 Update the memory usage info text in --help to match 1184 the text in xz --long-help. 1185 1186 src/xzdec/xzdec.c | 10 +++++----- 1187 1 files changed, 5 insertions(+), 5 deletions(-) 1188 1189commit b60376249e0c586910c4121fab4f791820cc1289 1190Author: Lasse Collin <lasse.collin@tukaani.org> 1191Date: 2009-05-22 14:43:00 +0300 1192 1193 Add --no-warn. 1194 1195 src/xz/args.c | 8 +++++++- 1196 src/xz/main.c | 17 +++++++++++++++++ 1197 src/xz/main.h | 6 ++++++ 1198 src/xz/message.c | 4 ++++ 1199 4 files changed, 34 insertions(+), 1 deletions(-) 1200 1201commit b4f92f522d4b854c0adb7c38be7531e1a6a7b008 1202Author: Lasse Collin <lasse.collin@tukaani.org> 1203Date: 2009-05-22 14:27:40 +0300 1204 1205 Fix a comment. 1206 1207 src/xz/main.h | 2 +- 1208 1 files changed, 1 insertions(+), 1 deletions(-) 1209 1210commit 4dd21d23f22569285ae706b58b0e5904b8db1839 1211Author: Lasse Collin <lasse.collin@tukaani.org> 1212Date: 2009-05-22 14:21:20 +0300 1213 1214 Remove the --info option, which was an alias for --list. 1215 1216 src/xz/args.c | 1 - 1217 1 files changed, 0 insertions(+), 1 deletions(-) 1218 1219commit 8836139b63ce774bdd62abf17ab69b290e08229e 1220Author: Lasse Collin <lasse.collin@tukaani.org> 1221Date: 2009-05-22 12:27:43 +0300 1222 1223 If xz is run as lzma, unlzma, or lzcat, simply imply 1224 --format=lzma. This means that xz emulating lzma 1225 doesn't decompress .xz files, while before this 1226 commit it did. The new way is slightly simpler in 1227 code and especially in upcoming documentation. 1228 1229 src/xz/args.c | 17 ++++++----------- 1230 1 files changed, 6 insertions(+), 11 deletions(-) 1231 1232commit b0063023f8adb06ea735ec4af5c6f5b7bdb8e84d 1233Author: Lasse Collin <lasse.collin@tukaani.org> 1234Date: 2009-05-22 11:29:50 +0300 1235 1236 Make the default memory usage limit 40 % of RAM for both 1237 compressing and decompressing. This should be OK now that 1238 xz automatically scales down the compression settings if 1239 they would exceed the memory usage limit (earlier, the limit 1240 for compression was increased to 90 % because low limit broke 1241 scripts that used "xz -9" on systems with low RAM). 1242 1243 Support spcifying the memory usage limit as a percentage 1244 of RAM (e.g. --memory=50%). 1245 1246 Support --threads=0 to reset the thread limit to the default 1247 value (number of available CPU cores). Use UINT32_MAX instead 1248 of SIZE_MAX as the maximum in args.c. hardware.c was already 1249 expecting uint32_t value. 1250 1251 Cleaned up the output of --help and --long-help. 1252 1253 src/xz/args.c | 28 +++++++++++++---- 1254 src/xz/hardware.c | 86 ++++++++++++++++++++++------------------------------ 1255 src/xz/hardware.h | 10 +++--- 1256 src/xz/message.c | 28 ++++++++--------- 1257 src/xz/process.c | 18 ++++------- 1258 5 files changed, 82 insertions(+), 88 deletions(-) 1259 1260commit 071b825b23911a69dd1cd2f8cda004ef8a781fae 1261Author: Lasse Collin <lasse.collin@tukaani.org> 1262Date: 2009-05-21 17:22:01 +0300 1263 1264 Support special value "max" where xz and xzdec accept an integer. 1265 Don't round the memory usage limit in xzdec --help to avoid 1266 an integer overflow and to not give wrong impression that 1267 the limit is high enough when it may not actually be. 1268 1269 src/xz/util.c | 4 ++++ 1270 src/xzdec/xzdec.c | 6 +++++- 1271 2 files changed, 9 insertions(+), 1 deletions(-) 1272 1273commit 03ca67fd37dd43fa7f590de340899cd497c10802 1274Author: ABCD <en.abcd@gmail.com> 1275Date: 2009-05-20 17:31:18 -0400 1276 1277 Install lzdiff, lzgrep, and lzmore as symlinks 1278 1279 This adds lzdiff, lzgrep, and lzmore to the list of symlinks to install. 1280 It also installs symlinks for the manual pages and removes the new 1281 symlinks on uninstall. 1282 1283 src/scripts/Makefile.am | 16 ++++++++++++++-- 1284 1 files changed, 14 insertions(+), 2 deletions(-) 1285 1286commit a6f43e64128a6da5cd641de1e1e527433b3e5638 1287Author: Lasse Collin <lasse.collin@tukaani.org> 1288Date: 2009-05-02 16:10:14 +0300 1289 1290 Use a GCC-specific #pragma instead of GCC-specific 1291 -Wno-uninitialized to silence a bogus warning. 1292 1293 configure.ac | 13 ------------- 1294 src/liblzma/check/Makefile.am | 5 ----- 1295 src/liblzma/check/sha256.c | 5 +++++ 1296 3 files changed, 5 insertions(+), 18 deletions(-) 1297 1298commit f6ce63ebdb45a857c8949960c83c9580ae888951 1299Author: Lasse Collin <lasse.collin@tukaani.org> 1300Date: 2009-05-02 14:46:50 +0300 1301 1302 Removed --disable-encoder and --disable-decoder. Use the values 1303 given to --enable-encoders and --enable-decoders to determine 1304 if any encoder or decoder support is wanted. 1305 1306 configure.ac | 48 ++++++++---------------------------------------- 1307 1 files changed, 8 insertions(+), 40 deletions(-) 1308 1309commit be06858d5cf8ba46557395035d821dc332f3f830 1310Author: Lasse Collin <lasse.collin@tukaani.org> 1311Date: 2009-05-01 11:28:52 +0300 1312 1313 Remove docs that are too outdated to be updated 1314 (rewrite will be better). 1315 1316 doc/liblzma-advanced.txt | 324 ---------------------------------------------- 1317 doc/liblzma-hacking.txt | 112 ---------------- 1318 doc/liblzma-intro.txt | 194 --------------------------- 1319 doc/liblzma-security.txt | 219 ------------------------------- 1320 doc/lzma-intro.txt | 107 --------------- 1321 5 files changed, 0 insertions(+), 956 deletions(-) 1322 1323commit 0255401e57c96af87c6b159eca28974e79430a82 1324Author: Lasse Collin <lasse.collin@tukaani.org> 1325Date: 2009-05-01 11:21:46 +0300 1326 1327 Added documentation about the legacy .lzma file format. 1328 1329 doc/lzma-file-format.txt | 166 ++++++++++++++++++++++++++++++++++++++++++++++ 1330 1 files changed, 166 insertions(+), 0 deletions(-) 1331 1332commit 1496ff437c46f38303e0e94c511ca604b3a11f85 1333Author: Lasse Collin <lasse.collin@tukaani.org> 1334Date: 2009-05-01 11:20:23 +0300 1335 1336 Renamed the file format specification to xz-file-format.txt 1337 which is the filename used on the WWW. 1338 1339 doc/file-format.txt | 1127 ------------------------------------------------ 1340 doc/xz-file-format.txt | 1127 ++++++++++++++++++++++++++++++++++++++++++++++++ 1341 2 files changed, 1127 insertions(+), 1127 deletions(-) 1342 1343commit 21c6b94373d239d7e86bd480fcd558e30391712f 1344Author: Lasse Collin <lasse.collin@tukaani.org> 1345Date: 2009-04-28 23:08:32 +0300 1346 1347 Fixed a crash in liblzma. 1348 1349 liblzma tries to avoid useless free()/malloc() pairs in 1350 initialization when multiple files are handled using the 1351 same lzma_stream. This didn't work with filter chains 1352 due to comparison of wrong pointers in lzma_next_coder_init(), 1353 making liblzma think that no memory reallocation is needed 1354 even when it actually is. 1355 1356 Easy way to trigger this bug is to decompress two files with 1357 a single xz command. The first file should have e.g. x86+LZMA2 1358 as the filter chain, and the second file just LZMA2. 1359 1360 src/liblzma/common/alone_decoder.c | 2 +- 1361 src/liblzma/common/alone_encoder.c | 4 ++-- 1362 src/liblzma/common/auto_decoder.c | 2 +- 1363 src/liblzma/common/block_decoder.c | 2 +- 1364 src/liblzma/common/block_encoder.c | 2 +- 1365 src/liblzma/common/common.h | 4 ++-- 1366 src/liblzma/common/easy_encoder.c | 2 +- 1367 src/liblzma/common/index_decoder.c | 2 +- 1368 src/liblzma/common/index_encoder.c | 2 +- 1369 src/liblzma/common/stream_decoder.c | 2 +- 1370 src/liblzma/common/stream_encoder.c | 2 +- 1371 11 files changed, 13 insertions(+), 13 deletions(-) 1372 1373commit e518d167aa5958e469982f4fb3a24b9b6a2b5d1c 1374Author: Lasse Collin <lasse.collin@tukaani.org> 1375Date: 2009-04-15 14:13:38 +0300 1376 1377 Fix uint32_t -> size_t in ARM and ARM-Thumb filters. 1378 1379 On 64-bit system it would have gone into infinite 1380 loop if a single input buffer was over 4 GiB (unlikely). 1381 1382 src/liblzma/simple/arm.c | 2 +- 1383 src/liblzma/simple/armthumb.c | 2 +- 1384 2 files changed, 2 insertions(+), 2 deletions(-) 1385 1386commit 31decdce041581e57c0d8a407d4795b114ef27ca 1387Author: Lasse Collin <lasse.collin@tukaani.org> 1388Date: 2009-04-14 11:48:46 +0300 1389 1390 Minor fixes to test files' README. 1391 1392 tests/files/README | 17 +++++++++-------- 1393 1 files changed, 9 insertions(+), 8 deletions(-) 1394 1395commit 4787d654434891c7df5b43959b0d2873718f06e0 1396Author: Lasse Collin <lasse.collin@tukaani.org> 1397Date: 2009-04-13 16:36:41 +0300 1398 1399 Updated history.txt. 1400 1401 doc/history.txt | 123 +++++++++++++++++++++++++++++------------------------- 1402 1 files changed, 66 insertions(+), 57 deletions(-) 1403 1404commit 2f0bc9cd40f709152a0177c8e585c0757e9af9c9 1405Author: Lasse Collin <lasse.collin@tukaani.org> 1406Date: 2009-04-13 14:49:48 +0300 1407 1408 Quick & dirty update to support xz in diff/grep/more scripts. 1409 1410 src/scripts/Makefile.am | 38 +++++++++----- 1411 src/scripts/lzdiff | 67 ------------------------- 1412 src/scripts/lzdiff.1 | 51 ------------------- 1413 src/scripts/lzgrep | 123 ----------------------------------------------- 1414 src/scripts/lzgrep.1 | 61 ----------------------- 1415 src/scripts/lzmore | 74 ---------------------------- 1416 src/scripts/lzmore.1 | 55 --------------------- 1417 src/scripts/xzdiff | 67 +++++++++++++++++++++++++ 1418 src/scripts/xzdiff.1 | 58 ++++++++++++++++++++++ 1419 src/scripts/xzgrep | 123 +++++++++++++++++++++++++++++++++++++++++++++++ 1420 src/scripts/xzgrep.1 | 77 +++++++++++++++++++++++++++++ 1421 src/scripts/xzmore | 74 ++++++++++++++++++++++++++++ 1422 src/scripts/xzmore.1 | 66 +++++++++++++++++++++++++ 1423 13 files changed, 489 insertions(+), 445 deletions(-) 1424 1425commit 02ddf09bc3079b3e17297729b9e43f14d407b8fc 1426Author: Lasse Collin <lasse.collin@tukaani.org> 1427Date: 2009-04-13 11:27:40 +0300 1428 1429 Put the interesting parts of XZ Utils into the public domain. 1430 Some minor documentation cleanups were made at the same time. 1431 1432 COPYING | 67 ++++++++++++++++++------ 1433 ChangeLog | 2 +- 1434 Doxyfile.in | 8 ++- 1435 Makefile.am | 13 +---- 1436 autogen.sh | 9 +++ 1437 configure.ac | 13 +---- 1438 debug/Makefile.am | 13 +---- 1439 debug/crc32.c | 13 +---- 1440 debug/full_flush.c | 13 +---- 1441 debug/hex2bin.c | 7 +-- 1442 debug/known_sizes.c | 13 +---- 1443 debug/memusage.c | 13 +---- 1444 debug/repeat.c | 13 +---- 1445 debug/sync_flush.c | 13 +---- 1446 doc/faq.txt | 38 +------------ 1447 lib/Makefile.am | 18 +++--- 1448 src/Makefile.am | 13 +---- 1449 src/common/bswap.h | 7 +-- 1450 src/common/cpucores.h | 7 +-- 1451 src/common/integer.h | 7 +-- 1452 src/common/mythread.h | 4 +- 1453 src/common/open_stdxxx.h | 7 +-- 1454 src/common/physmem.h | 7 +-- 1455 src/common/sysdefs.h | 13 +---- 1456 src/liblzma/Makefile.am | 13 +---- 1457 src/liblzma/api/Makefile.am | 13 +---- 1458 src/liblzma/api/lzma.h | 38 ++++++++----- 1459 src/liblzma/api/lzma/base.h | 20 +++---- 1460 src/liblzma/api/lzma/bcj.h | 18 +++---- 1461 src/liblzma/api/lzma/block.h | 18 +++---- 1462 src/liblzma/api/lzma/check.h | 18 +++---- 1463 src/liblzma/api/lzma/container.h | 18 +++---- 1464 src/liblzma/api/lzma/delta.h | 18 +++---- 1465 src/liblzma/api/lzma/filter.h | 18 +++---- 1466 src/liblzma/api/lzma/index.h | 18 +++---- 1467 src/liblzma/api/lzma/index_hash.h | 22 +++----- 1468 src/liblzma/api/lzma/lzma.h | 18 +++---- 1469 src/liblzma/api/lzma/stream_flags.h | 18 +++---- 1470 src/liblzma/api/lzma/subblock.h | 18 +++---- 1471 src/liblzma/api/lzma/version.h | 18 +++---- 1472 src/liblzma/api/lzma/vli.h | 42 +++++++-------- 1473 src/liblzma/check/Makefile.am | 8 +-- 1474 src/liblzma/check/check.c | 7 +-- 1475 src/liblzma/check/check.h | 7 +-- 1476 src/liblzma/check/crc32_fast.c | 30 ++++------ 1477 src/liblzma/check/crc32_small.c | 7 +-- 1478 src/liblzma/check/crc32_table.c | 7 +-- 1479 src/liblzma/check/crc32_tablegen.c | 7 +-- 1480 src/liblzma/check/crc32_x86.S | 21 +++++--- 1481 src/liblzma/check/crc64_fast.c | 20 +++---- 1482 src/liblzma/check/crc64_small.c | 7 +-- 1483 src/liblzma/check/crc64_table.c | 7 +-- 1484 src/liblzma/check/crc64_tablegen.c | 7 +-- 1485 src/liblzma/check/crc64_x86.S | 14 +++-- 1486 src/liblzma/check/crc_macros.h | 9 ++-- 1487 src/liblzma/check/sha256.c | 23 +++++--- 1488 src/liblzma/common/Makefile.am | 13 +---- 1489 src/liblzma/common/alone_decoder.c | 13 +---- 1490 src/liblzma/common/alone_decoder.h | 13 +---- 1491 src/liblzma/common/alone_encoder.c | 13 +---- 1492 src/liblzma/common/auto_decoder.c | 13 +---- 1493 src/liblzma/common/block_buffer_decoder.c | 13 +---- 1494 src/liblzma/common/block_buffer_encoder.c | 13 +---- 1495 src/liblzma/common/block_decoder.c | 13 +---- 1496 src/liblzma/common/block_decoder.h | 13 +---- 1497 src/liblzma/common/block_encoder.c | 13 +---- 1498 src/liblzma/common/block_encoder.h | 13 +---- 1499 src/liblzma/common/block_header_decoder.c | 13 +---- 1500 src/liblzma/common/block_header_encoder.c | 13 +---- 1501 src/liblzma/common/block_util.c | 13 +---- 1502 src/liblzma/common/bsr.h | 7 +-- 1503 src/liblzma/common/chunk_size.c | 13 +---- 1504 src/liblzma/common/common.c | 13 +---- 1505 src/liblzma/common/common.h | 13 +---- 1506 src/liblzma/common/easy_buffer_encoder.c | 13 +---- 1507 src/liblzma/common/easy_decoder_memusage.c | 13 +---- 1508 src/liblzma/common/easy_encoder.c | 13 +---- 1509 src/liblzma/common/easy_encoder_memusage.c | 13 +---- 1510 src/liblzma/common/easy_preset.c | 13 +---- 1511 src/liblzma/common/easy_preset.h | 13 +---- 1512 src/liblzma/common/filter_buffer_decoder.c | 13 +---- 1513 src/liblzma/common/filter_buffer_encoder.c | 13 +---- 1514 src/liblzma/common/filter_common.c | 13 +---- 1515 src/liblzma/common/filter_common.h | 13 +---- 1516 src/liblzma/common/filter_decoder.c | 13 +---- 1517 src/liblzma/common/filter_decoder.h | 13 +---- 1518 src/liblzma/common/filter_encoder.c | 13 +---- 1519 src/liblzma/common/filter_encoder.h | 13 +---- 1520 src/liblzma/common/filter_flags_decoder.c | 13 +---- 1521 src/liblzma/common/filter_flags_encoder.c | 13 +---- 1522 src/liblzma/common/index.c | 13 +---- 1523 src/liblzma/common/index.h | 13 +---- 1524 src/liblzma/common/index_decoder.c | 13 +---- 1525 src/liblzma/common/index_encoder.c | 13 +---- 1526 src/liblzma/common/index_encoder.h | 13 +---- 1527 src/liblzma/common/index_hash.c | 13 +---- 1528 src/liblzma/common/stream_buffer_decoder.c | 13 +---- 1529 src/liblzma/common/stream_buffer_encoder.c | 13 +---- 1530 src/liblzma/common/stream_decoder.c | 13 +---- 1531 src/liblzma/common/stream_decoder.h | 13 +---- 1532 src/liblzma/common/stream_encoder.c | 13 +---- 1533 src/liblzma/common/stream_encoder.h | 13 +---- 1534 src/liblzma/common/stream_flags_common.c | 13 +---- 1535 src/liblzma/common/stream_flags_common.h | 13 +---- 1536 src/liblzma/common/stream_flags_decoder.c | 13 +---- 1537 src/liblzma/common/stream_flags_encoder.c | 13 +---- 1538 src/liblzma/common/vli_decoder.c | 13 +---- 1539 src/liblzma/common/vli_encoder.c | 13 +---- 1540 src/liblzma/common/vli_size.c | 13 +---- 1541 src/liblzma/delta/Makefile.am | 13 +---- 1542 src/liblzma/delta/delta_common.c | 13 +---- 1543 src/liblzma/delta/delta_common.h | 13 +---- 1544 src/liblzma/delta/delta_decoder.c | 13 +---- 1545 src/liblzma/delta/delta_decoder.h | 13 +---- 1546 src/liblzma/delta/delta_encoder.c | 13 +---- 1547 src/liblzma/delta/delta_encoder.h | 13 +---- 1548 src/liblzma/delta/delta_private.h | 13 +---- 1549 src/liblzma/lz/Makefile.am | 13 +---- 1550 src/liblzma/lz/lz_decoder.c | 17 ++---- 1551 src/liblzma/lz/lz_decoder.h | 17 ++---- 1552 src/liblzma/lz/lz_encoder.c | 17 ++---- 1553 src/liblzma/lz/lz_encoder.h | 17 ++---- 1554 src/liblzma/lz/lz_encoder_hash.h | 13 +---- 1555 src/liblzma/lz/lz_encoder_mf.c | 17 ++---- 1556 src/liblzma/lzma/Makefile.am | 13 +---- 1557 src/liblzma/lzma/fastpos.h | 17 ++---- 1558 src/liblzma/lzma/fastpos_tablegen.c | 17 ++---- 1559 src/liblzma/lzma/lzma2_decoder.c | 17 ++---- 1560 src/liblzma/lzma/lzma2_decoder.h | 17 ++---- 1561 src/liblzma/lzma/lzma2_encoder.c | 17 ++---- 1562 src/liblzma/lzma/lzma2_encoder.h | 17 ++---- 1563 src/liblzma/lzma/lzma_common.h | 17 ++---- 1564 src/liblzma/lzma/lzma_decoder.c | 17 ++---- 1565 src/liblzma/lzma/lzma_decoder.h | 17 ++---- 1566 src/liblzma/lzma/lzma_encoder.c | 17 ++---- 1567 src/liblzma/lzma/lzma_encoder.h | 17 ++---- 1568 src/liblzma/lzma/lzma_encoder_optimum_fast.c | 13 +---- 1569 src/liblzma/lzma/lzma_encoder_optimum_normal.c | 13 +---- 1570 src/liblzma/lzma/lzma_encoder_presets.c | 13 +---- 1571 src/liblzma/lzma/lzma_encoder_private.h | 17 ++---- 1572 src/liblzma/rangecoder/Makefile.am | 13 +---- 1573 src/liblzma/rangecoder/price.h | 13 +---- 1574 src/liblzma/rangecoder/price_tablegen.c | 16 ++---- 1575 src/liblzma/rangecoder/range_common.h | 17 ++---- 1576 src/liblzma/rangecoder/range_decoder.h | 17 ++---- 1577 src/liblzma/rangecoder/range_encoder.h | 17 ++---- 1578 src/liblzma/simple/Makefile.am | 13 +---- 1579 src/liblzma/simple/arm.c | 17 ++---- 1580 src/liblzma/simple/armthumb.c | 17 ++---- 1581 src/liblzma/simple/ia64.c | 17 ++---- 1582 src/liblzma/simple/powerpc.c | 17 ++---- 1583 src/liblzma/simple/simple_coder.c | 13 +---- 1584 src/liblzma/simple/simple_coder.h | 14 +---- 1585 src/liblzma/simple/simple_decoder.c | 13 +---- 1586 src/liblzma/simple/simple_decoder.h | 13 +---- 1587 src/liblzma/simple/simple_encoder.c | 13 +---- 1588 src/liblzma/simple/simple_encoder.h | 13 +---- 1589 src/liblzma/simple/simple_private.h | 13 +---- 1590 src/liblzma/simple/sparc.c | 17 ++---- 1591 src/liblzma/simple/x86.c | 17 ++---- 1592 src/liblzma/subblock/Makefile.am | 13 +---- 1593 src/liblzma/subblock/subblock_decoder.c | 13 +---- 1594 src/liblzma/subblock/subblock_decoder.h | 13 +---- 1595 src/liblzma/subblock/subblock_decoder_helper.c | 13 +---- 1596 src/liblzma/subblock/subblock_decoder_helper.h | 13 +---- 1597 src/liblzma/subblock/subblock_encoder.c | 13 +---- 1598 src/liblzma/subblock/subblock_encoder.h | 13 +---- 1599 src/scripts/Makefile.am | 7 +++ 1600 src/xz/Makefile.am | 13 +---- 1601 src/xz/args.c | 13 +---- 1602 src/xz/args.h | 13 +---- 1603 src/xz/hardware.c | 13 +---- 1604 src/xz/hardware.h | 13 +---- 1605 src/xz/io.c | 13 +---- 1606 src/xz/io.h | 13 +---- 1607 src/xz/list.c | 13 +---- 1608 src/xz/main.c | 13 +---- 1609 src/xz/main.h | 13 +---- 1610 src/xz/message.c | 13 +---- 1611 src/xz/message.h | 13 +---- 1612 src/xz/options.c | 13 +---- 1613 src/xz/options.h | 13 +---- 1614 src/xz/private.h | 13 +---- 1615 src/xz/process.c | 13 +---- 1616 src/xz/process.h | 13 +---- 1617 src/xz/signals.c | 13 +---- 1618 src/xz/signals.h | 13 +---- 1619 src/xz/suffix.c | 13 +---- 1620 src/xz/suffix.h | 13 +---- 1621 src/xz/util.c | 13 +---- 1622 src/xz/util.h | 13 +---- 1623 src/xzdec/Makefile.am | 13 +---- 1624 src/xzdec/xzdec.c | 13 +---- 1625 tests/Makefile.am | 13 +---- 1626 tests/bcj_test.c | 7 +-- 1627 tests/create_compress_files.c | 13 +---- 1628 tests/test_block.c | 13 +---- 1629 tests/test_block_header.c | 13 +---- 1630 tests/test_check.c | 13 +---- 1631 tests/test_compress.sh | 13 +---- 1632 tests/test_files.sh | 13 +---- 1633 tests/test_filter_flags.c | 13 +---- 1634 tests/test_index.c | 13 +---- 1635 tests/test_stream_flags.c | 13 +---- 1636 tests/tests.h | 13 +---- 1637 windows/common.rc | 2 +- 1638 206 files changed, 866 insertions(+), 2021 deletions(-) 1639 1640commit e79c42d854657ae7f75613bd80c1a35ff7c525cb 1641Author: Lasse Collin <lasse.collin@tukaani.org> 1642Date: 2009-04-10 11:17:02 +0300 1643 1644 Fix off-by-one in LZ decoder. 1645 1646 Fortunately, this bug had no security risk other than accepting 1647 some corrupt files as valid. 1648 1649 src/liblzma/lz/lz_decoder.h | 2 +- 1650 1 files changed, 1 insertions(+), 1 deletions(-) 1651 1652commit 94eb9ad46f1fded6d8369cf3d38bb9754c1375af 1653Author: Pavel Roskin <proski@gnu.org> 1654Date: 2009-03-31 12:15:01 -0400 1655 1656 Fix minor typos in README 1657 1658 README | 6 +++--- 1659 1 files changed, 3 insertions(+), 3 deletions(-) 1660 1661commit 9bab5336ebd765ec4e12252f416eefdf04eba750 1662Author: Lasse Collin <lasse.collin@tukaani.org> 1663Date: 2009-03-31 21:52:51 +0300 1664 1665 Add a note and work-around instructions to README about 1666 problems detecting a C99 compiler when some standard 1667 headers are missing. 1668 1669 README | 11 +++++++++++ 1670 1 files changed, 11 insertions(+), 0 deletions(-) 1671 1672commit a0497ff7a06f9350349264fe9b52dfefc6d53ead 1673Author: Lasse Collin <lasse.collin@tukaani.org> 1674Date: 2009-03-18 16:54:38 +0200 1675 1676 Updated THANKS. 1677 1678 THANKS | 1 + 1679 1 files changed, 1 insertions(+), 0 deletions(-) 1680 1681commit 390e69887fc5e0a108eb41203bed9acd100a3d76 1682Author: Lasse Collin <lasse.collin@tukaani.org> 1683Date: 2009-03-18 16:51:41 +0200 1684 1685 Fix wrong macro names in lc_cpucores.m4 and cpucores.h. 1686 Thanks to Bert Wesarg. 1687 1688 m4/lc_cpucores.m4 | 4 ++-- 1689 src/common/cpucores.h | 4 ++-- 1690 2 files changed, 4 insertions(+), 4 deletions(-) 1691 1692commit 0df9299e2478c2a0c62c05b1ae14a85a353e20d6 1693Author: Lasse Collin <lasse.collin@tukaani.org> 1694Date: 2009-03-01 09:03:08 +0200 1695 1696 Test for Linux-specific sysinfo() only on Linux systems. 1697 Some other systems have sysinfo() with different semantics. 1698 1699 m4/lc_physmem.m4 | 28 +++++++++++++++++++--------- 1700 1 files changed, 19 insertions(+), 9 deletions(-) 1701 1702commit cf751edfde3ad6e088dc18e0522d31ae38405933 1703Author: Lasse Collin <lasse.collin@tukaani.org> 1704Date: 2009-03-01 09:00:06 +0200 1705 1706 Added AC_CONFIG_MACRO_DIR to configure.ac. 1707 1708 configure.ac | 1 + 1709 1 files changed, 1 insertions(+), 0 deletions(-) 1710 1711commit 63df14c57dee7c461717784287056688482a7eb9 1712Author: Lasse Collin <lasse.collin@tukaani.org> 1713Date: 2009-03-01 08:58:41 +0200 1714 1715 Fix the Autoconf test for getopt_long replacement. 1716 It was broken by e114502b2bc371e4a45449832cb69be036360722. 1717 1718 m4/getopt.m4 | 4 ++++ 1719 1 files changed, 4 insertions(+), 0 deletions(-) 1720 1721commit fd6a380f4eda4f00be5f2aa8d222992cd74a714f 1722Author: Lasse Collin <lasse.collin@tukaani.org> 1723Date: 2009-02-22 19:07:54 +0200 1724 1725 Add a rough explanation of --extreme to output of --help. 1726 1727 src/xz/message.c | 4 ++++ 1728 1 files changed, 4 insertions(+), 0 deletions(-) 1729 1730commit 68bf7ac2984d3627369a240ef0491934d53f7899 1731Author: Lasse Collin <lasse.collin@tukaani.org> 1732Date: 2009-02-22 18:52:49 +0200 1733 1734 Fixes to progress message handling in xz: 1735 1736 - Don't use Windows-specific code on Windows. The old code 1737 required at least Windows 2000. Now it should work on 1738 Windows 98 and later, and maybe on Windows 95 too. 1739 1740 - Use less precision when showing estimated remaining time. 1741 1742 - Fix some small design issues. 1743 1744 src/xz/message.c | 483 ++++++++++++++++++++++++++++++++++-------------------- 1745 src/xz/message.h | 28 ++- 1746 src/xz/process.c | 53 +++--- 1747 3 files changed, 351 insertions(+), 213 deletions(-) 1748 1749commit 47c2e21f82242f50f18713a27d644c2c94ab3fea 1750Author: Lasse Collin <lasse.collin@tukaani.org> 1751Date: 2009-02-18 13:00:10 +0200 1752 1753 Added files missing from the previous commit. 1754 1755 src/liblzma/api/lzma/container.h | 33 +++++++++++++++++++++++++++++++++ 1756 src/liblzma/common/Makefile.am | 7 ++++++- 1757 2 files changed, 39 insertions(+), 1 deletions(-) 1758 1759commit 489a3dbaa0465f04400804e956a1cfbbee3654a2 1760Author: Lasse Collin <lasse.collin@tukaani.org> 1761Date: 2009-02-17 10:43:00 +0200 1762 1763 Added lzma_easy_buffer_encode(). Splitted easy.c into small 1764 pieces to avoid unneeded dependencies making statically 1765 linked applications bigger than needed. 1766 1767 dos/Makefile | 6 +- 1768 src/liblzma/common/easy.c | 128 ---------------------------- 1769 src/liblzma/common/easy_buffer_encoder.c | 34 ++++++++ 1770 src/liblzma/common/easy_decoder_memusage.c | 31 +++++++ 1771 src/liblzma/common/easy_encoder.c | 87 +++++++++++++++++++ 1772 src/liblzma/common/easy_encoder_memusage.c | 31 +++++++ 1773 src/liblzma/common/easy_preset.c | 34 ++++++++ 1774 src/liblzma/common/easy_preset.h | 39 +++++++++ 1775 windows/Makefile | 6 +- 1776 9 files changed, 266 insertions(+), 130 deletions(-) 1777 1778commit 7494816ab08d82f4d6409788825930c4e43cfd0d 1779Author: Lasse Collin <lasse.collin@tukaani.org> 1780Date: 2009-02-15 15:48:45 +0200 1781 1782 Make physmem.h work on old Windows versions. 1783 Thanks to Hongbo Ni for the original patch. 1784 1785 src/common/physmem.h | 31 +++++++++++++++++++++++++++---- 1786 1 files changed, 27 insertions(+), 4 deletions(-) 1787 1788commit 11ae4ae35fd70182c713f2d914b7cb1143bc76f0 1789Author: Lasse Collin <lasse.collin@tukaani.org> 1790Date: 2009-02-14 20:44:52 +0200 1791 1792 Fix microsecond vs. nanosecond confusion in my_time(). 1793 1794 src/xz/message.c | 2 +- 1795 1 files changed, 1 insertions(+), 1 deletions(-) 1796 1797commit 3084d662d2646ab7eb58daf0dc32cf3f9a74eec7 1798Author: Lasse Collin <lasse.collin@tukaani.org> 1799Date: 2009-02-14 00:45:29 +0200 1800 1801 Cleanups to the code that detects the amount of RAM and 1802 the number of CPU cores. Added support for using sysinfo() 1803 on Linux systems whose libc lacks appropriate sysconf() 1804 support (at least dietlibc). The Autoconf macros were 1805 split into separate files, and CPU core count detection 1806 was moved from hardware.c to cpucores.h. The core count 1807 isn't used for anything real for now, so a problematic 1808 part in process.c was commented out. 1809 1810 configure.ac | 89 +----------------------------------------------- 1811 m4/lc_cpucores.m4 | 57 +++++++++++++++++++++++++++++++ 1812 m4/lc_physmem.m4 | 74 ++++++++++++++++++++++++++++++++++++++++ 1813 src/common/cpucores.h | 52 ++++++++++++++++++++++++++++ 1814 src/common/physmem.h | 21 +++++++---- 1815 src/xz/args.c | 4 +- 1816 src/xz/hardware.c | 50 ++++++++++++--------------- 1817 src/xz/hardware.h | 11 ++++-- 1818 src/xz/message.c | 5 ++- 1819 src/xz/process.c | 2 + 1820 10 files changed, 235 insertions(+), 130 deletions(-) 1821 1822commit 9c62371eab2706c46b1072f5935e28cb4cd9dca8 1823Author: Lasse Collin <lasse.collin@tukaani.org> 1824Date: 2009-02-13 18:23:50 +0200 1825 1826 Initial port to DOS using DJGPP. 1827 1828 dos/Makefile | 261 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1829 dos/README | 113 +++++++++++++++++++++++++ 1830 dos/config.h | 150 +++++++++++++++++++++++++++++++++ 1831 3 files changed, 524 insertions(+), 0 deletions(-) 1832 1833commit 0dae8b7751d09e9c5a482d5519daaee4800ce203 1834Author: Lasse Collin <lasse.collin@tukaani.org> 1835Date: 2009-02-13 18:02:05 +0200 1836 1837 Windows port: Take advantage of the version number macros. 1838 Now the version number is not duplicated in the 1839 Windows-specific files anymore. 1840 1841 windows/Makefile | 2 +- 1842 windows/common.rc | 16 ++++++++-------- 1843 windows/config.h | 15 --------------- 1844 3 files changed, 9 insertions(+), 24 deletions(-) 1845 1846commit fdbc0cfa71f7d660855098a609175ba384259529 1847Author: Lasse Collin <lasse.collin@tukaani.org> 1848Date: 2009-02-13 18:00:03 +0200 1849 1850 Changed how the version number is specified in various places. 1851 Now configure.ac will get the version number directly from 1852 src/liblzma/api/lzma/version.h. The intent is to reduce the 1853 number of places where the version number is duplicated. In 1854 future, support for displaying Git commit ID may be added too. 1855 1856 configure.ac | 3 +- 1857 src/liblzma/api/lzma/version.h | 70 ++++++++++++++++++++++++++++++++++++++-- 1858 src/liblzma/common/common.c | 2 +- 1859 src/xz/message.c | 2 +- 1860 src/xzdec/xzdec.c | 2 +- 1861 version.sh | 23 +++++++++++++ 1862 6 files changed, 95 insertions(+), 7 deletions(-) 1863 1864commit 1d924e584b146136989f48c13fff2632896efb3d 1865Author: Lasse Collin <lasse.collin@tukaani.org> 1866Date: 2009-02-13 17:30:30 +0200 1867 1868 Fix handling of integrity check type in the xz command line tool. 1869 1870 src/xz/args.c | 9 ++++++++- 1871 src/xz/process.c | 4 ++++ 1872 2 files changed, 12 insertions(+), 1 deletions(-) 1873 1874commit 96c46df7deb231ea68a03d8d1da9de4c774e36d8 1875Author: Lasse Collin <lasse.collin@tukaani.org> 1876Date: 2009-02-13 17:29:02 +0200 1877 1878 Improve support for DOS-like systems. 1879 Here DOS-like means DOS, Windows, and OS/2. 1880 1881 src/common/physmem.h | 12 ++++++++++++ 1882 src/common/sysdefs.h | 4 ++++ 1883 src/liblzma/check/crc32_x86.S | 6 +++--- 1884 src/liblzma/check/crc64_x86.S | 6 +++--- 1885 src/xz/args.c | 13 +++++-------- 1886 src/xz/io.c | 39 +++++++++++++++++++++++++-------------- 1887 src/xz/main.c | 23 +++++++++++++++++++++++ 1888 src/xz/message.c | 3 +++ 1889 src/xz/suffix.c | 5 +++++ 1890 src/xzdec/xzdec.c | 5 +++-- 1891 10 files changed, 86 insertions(+), 30 deletions(-) 1892 1893commit b6a30ee8c2de60ecd722cd05223e4ba72f822e33 1894Author: Lasse Collin <lasse.collin@tukaani.org> 1895Date: 2009-02-11 20:02:32 +0200 1896 1897 Remove dead directories from .gitignore. 1898 1899 .gitignore | 2 -- 1900 1 files changed, 0 insertions(+), 2 deletions(-) 1901 1902commit 1ec5b0027911d94cb6f98892cbc690f818d8a861 1903Author: Jim Meyering <jim@meyering.net> 1904Date: 2009-02-11 14:45:14 +0100 1905 1906 .gitignore vs. Makefiles 1907 1908 How about this for those of us who do srcdir builds? 1909 1910 .gitignore | 22 ++++++++++++++++++++++ 1911 1 files changed, 22 insertions(+), 0 deletions(-) 1912 1913commit 154f5aec2de201c674841de4fcc9804c2a87af07 1914Author: Lasse Collin <lasse.collin@tukaani.org> 1915Date: 2009-02-10 21:48:35 +0200 1916 1917 Removed Makefile from .gitignore since not all Makefiles 1918 in the repository are generated by Autotools. People 1919 should do test builds in a separate build directory anyway. 1920 1921 .gitignore | 1 - 1922 1 files changed, 0 insertions(+), 1 deletions(-) 1923 1924commit e605c2663691b0a4c307786aa368d124ea081daa 1925Author: Lasse Collin <lasse.collin@tukaani.org> 1926Date: 2009-02-10 21:48:05 +0200 1927 1928 Added resource files for the Windows build. 1929 1930 windows/Makefile | 37 ++++++++++++++++++++++--------------- 1931 windows/common.rc | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1932 windows/liblzma.rc | 5 +++++ 1933 windows/lzmadec.rc | 5 +++++ 1934 windows/xz.rc | 5 +++++ 1935 windows/xzdec.rc | 5 +++++ 1936 6 files changed, 88 insertions(+), 15 deletions(-) 1937 1938commit a3bbbe05d32b1f7ea9eb98805df4dda2e811b476 1939Author: Lasse Collin <lasse.collin@tukaani.org> 1940Date: 2009-02-09 14:54:31 +0200 1941 1942 Let the user specify custom CFLAGS on the make command 1943 line. Previously custom CFLAGS worked only when they were 1944 passed to configure. 1945 1946 configure.ac | 58 +++++++++++++++++++++------------------- 1947 src/liblzma/check/Makefile.am | 2 +- 1948 2 files changed, 31 insertions(+), 29 deletions(-) 1949 1950commit 53f7598998b1860a69c51243b5d2e34623c6bf60 1951Author: Lasse Collin <lasse.collin@tukaani.org> 1952Date: 2009-02-08 21:35:11 +0200 1953 1954 Fix aliasing issue in physmem.h. 1955 1956 src/common/physmem.h | 19 ++++++++++--------- 1957 1 files changed, 10 insertions(+), 9 deletions(-) 1958 1959commit 0e27028d74c5c7a8e036ae2a9b8cecb0ac79d3a6 1960Author: Lasse Collin <lasse.collin@tukaani.org> 1961Date: 2009-02-08 18:24:50 +0200 1962 1963 Add a separate internal function to initialize the CRC32 1964 table, which is used also by LZ encoder. This was needed 1965 because calling lzma_crc32() and ignoring the result is 1966 a no-op due to lzma_attr_pure. 1967 1968 src/liblzma/check/check.h | 1 + 1969 src/liblzma/check/crc32_small.c | 10 +++++++++- 1970 src/liblzma/lz/lz_encoder.c | 4 ++-- 1971 3 files changed, 12 insertions(+), 3 deletions(-) 1972 1973commit ae1ad9af54210c9a2be336b1316532da5071516c 1974Author: Lasse Collin <lasse.collin@tukaani.org> 1975Date: 2009-02-08 18:17:05 +0200 1976 1977 Make "xz --force" to write to terminal as the error 1978 message suggests. 1979 1980 src/xz/main.c | 2 +- 1981 1 files changed, 1 insertions(+), 1 deletions(-) 1982 1983commit 79e25eded48d2fe33f31441ab7a034f902e335f8 1984Author: Lasse Collin <lasse.collin@tukaani.org> 1985Date: 2009-02-08 10:37:50 +0200 1986 1987 Support both slash and backslash as path component 1988 separator on Windows when parsing argv[0]. 1989 1990 src/xz/args.c | 9 +++++++++ 1991 1 files changed, 9 insertions(+), 0 deletions(-) 1992 1993commit bc7c7109cc4410055a888c1c70cbd1c9445c4361 1994Author: Lasse Collin <lasse.collin@tukaani.org> 1995Date: 2009-02-07 23:18:13 +0200 1996 1997 Omit the wrong and (even if corrected) nowadays useless rm 1998 from autogen.sh. 1999 2000 autogen.sh | 28 ---------------------------- 2001 1 files changed, 0 insertions(+), 28 deletions(-) 2002 2003commit edfc2031e56f8a2ccda063f02936b3a848d88723 2004Author: Lasse Collin <lasse.collin@tukaani.org> 2005Date: 2009-02-07 21:41:52 +0200 2006 2007 Updated THANKS. 2008 2009 THANKS | 1 + 2010 1 files changed, 1 insertions(+), 0 deletions(-) 2011 2012commit 880c3309386aac58fc4f3d7ca99bd31bcb1526a3 2013Author: Lasse Collin <lasse.collin@tukaani.org> 2014Date: 2009-02-07 21:17:07 +0200 2015 2016 Make it easy to choose if command line tools should be 2017 linked statically or dynamically against liblzma. The 2018 default is still to use static liblzma, but it can now 2019 be changed by passing --enable-dynamic to configure. 2020 Thanks to Mike Frysinger for the original patch. 2021 2022 Fixed a few minor bugs in configure.ac. 2023 2024 configure.ac | 39 +++++++++++++++++++++++++++++++++++++++ 2025 src/xz/Makefile.am | 8 +++----- 2026 src/xzdec/Makefile.am | 5 +++-- 2027 3 files changed, 45 insertions(+), 7 deletions(-) 2028 2029commit 3f86532407e4ace3debb62be16035e009b56ca36 2030Author: Mike Frysinger <vapier@gentoo.org> 2031Date: 2009-02-06 23:38:39 -0500 2032 2033 add gitignore files 2034 2035 Signed-off-by: Mike Frysinger <vapier@gentoo.org> 2036 2037 .gitignore | 32 ++++++++++++++++++++++++++++++++ 2038 m4/.gitignore | 35 +++++++++++++++++++++++++++++++++++ 2039 po/.gitignore | 12 ++++++++++++ 2040 3 files changed, 79 insertions(+), 0 deletions(-) 2041 2042commit bd7ca1dad5c146b6217799ffaa230c32d207a3e5 2043Author: Lasse Collin <lasse.collin@tukaani.org> 2044Date: 2009-02-07 17:07:52 +0200 2045 2046 Assume 32 MiB of RAM on unsupported operating systems like 2047 the comment in hardware.c already said. 2048 2049 src/xz/hardware.c | 2 +- 2050 1 files changed, 1 insertions(+), 1 deletions(-) 2051 2052commit d0ab8c1c73ae712adb0d26fbb9da762d99a63618 2053Author: Lasse Collin <lasse.collin@tukaani.org> 2054Date: 2009-02-07 16:26:58 +0200 2055 2056 MinGW support: Don't build fastpos_tablegen.c as part of 2057 liblzma. Build both static and dynamic liblzma, and also 2058 static and dynamic versions of the command line tools. 2059 2060 windows/Makefile | 92 ++++++++++++++++++++++++++++++++++++++++------------- 2061 windows/README | 10 ------ 2062 2 files changed, 69 insertions(+), 33 deletions(-) 2063 2064commit bfd91198e44a52bd9bfe3cd6dcae5edab7c6eb45 2065Author: Lasse Collin <lasse.collin@tukaani.org> 2066Date: 2009-02-07 15:55:47 +0200 2067 2068 Support LZMA_API_STATIC in assembler files to 2069 avoid __declspec(dllexport) equivalent. 2070 2071 src/liblzma/check/crc32_x86.S | 4 ++++ 2072 src/liblzma/check/crc64_x86.S | 2 ++ 2073 2 files changed, 6 insertions(+), 0 deletions(-) 2074 2075commit 3306cf3883492720b3c34baa02f4eb4227d91c73 2076Author: Lasse Collin <lasse.collin@tukaani.org> 2077Date: 2009-02-07 11:11:50 +0200 2078 2079 Introduced LZMA_API_STATIC macro, which the applications 2080 need to #define when linking against static liblzma on 2081 platforms like Windows. Most developers don't need to 2082 care about LZMA_API_STATIC at all. 2083 2084 src/liblzma/api/lzma.h | 31 ++++++++++++++++++++++++------- 2085 src/liblzma/common/common.h | 2 +- 2086 2 files changed, 25 insertions(+), 8 deletions(-) 2087 2088commit b719e63c5f4c91d2d5e2ea585d4c055ec3767d0b 2089Author: Lasse Collin <lasse.collin@tukaani.org> 2090Date: 2009-02-06 16:55:45 +0200 2091 2092 Another grammar fix 2093 2094 README | 2 +- 2095 1 files changed, 1 insertions(+), 1 deletions(-) 2096 2097commit fe5434f940f75fec3611cf9d9edf78c4da8ac760 2098Author: Lasse Collin <lasse.collin@tukaani.org> 2099Date: 2009-02-06 12:30:23 +0200 2100 2101 Grammar fix in README. 2102 2103 README | 2 +- 2104 1 files changed, 1 insertions(+), 1 deletions(-) 2105 2106commit 3dfa58a9eedf5a0e566452b078801c9cbcf7a245 2107Author: Lasse Collin <lasse.collin@tukaani.org> 2108Date: 2009-02-06 10:06:32 +0200 2109 2110 Some MSYS installations (e.g. MsysGit) don't include 2111 install.exe, so don't rely on it. 2112 2113 windows/Makefile | 12 +++++++----- 2114 windows/README | 11 ++++++----- 2115 2 files changed, 13 insertions(+), 10 deletions(-) 2116 2117commit 975d8fd72a5148d46b2e1745f7a211cf1dfd9d31 2118Author: Lasse Collin <lasse.collin@tukaani.org> 2119Date: 2009-02-06 09:13:15 +0200 2120 2121 Recreated the BCJ test files for x86 and SPARC. The old files 2122 were linked with crt*.o, which are copyrighted, and thus the 2123 old test files were not in the public domain as a whole. They 2124 are freely distributable though, but it is better to be careful 2125 and avoid including any copyrighted pieces in the test files. 2126 The new files are just compiled and assembled object files, 2127 and thus don't contain any copyrighted code. 2128 2129 tests/bcj_test.c | 2 +- 2130 tests/compress_prepared_bcj_sparc | Bin 6804 -> 1240 bytes 2131 tests/compress_prepared_bcj_x86 | Bin 4649 -> 1388 bytes 2132 tests/files/good-1-sparc-lzma2.xz | Bin 2296 -> 612 bytes 2133 tests/files/good-1-x86-lzma2.xz | Bin 1936 -> 716 bytes 2134 5 files changed, 1 insertions(+), 1 deletions(-) 2135 2136commit 094b1b09a531f0d201ec81f2b07346a995fd80b9 2137Author: Lasse Collin <lasse.collin@tukaani.org> 2138Date: 2009-02-05 21:21:27 +0200 2139 2140 Add the "windows" directory to EXTRA_DIST. 2141 2142 Makefile.am | 1 + 2143 1 files changed, 1 insertions(+), 0 deletions(-) 2144 2145commit e1c3412eec7acec7ca3b32c9c828f3147dc65b49 2146Author: Lasse Collin <lasse.collin@tukaani.org> 2147Date: 2009-02-05 09:17:51 +0200 2148 2149 Added initial experimental makefile for use with MinGW. 2150 2151 windows/Makefile | 253 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2152 windows/README | 164 +++++++++++++++++++++++++++++++++++ 2153 windows/config.h | 180 ++++++++++++++++++++++++++++++++++++++ 2154 3 files changed, 597 insertions(+), 0 deletions(-) 2155 2156commit 75905a9afc0ee89954ede7d08af70d1148bf0fd9 2157Author: Lasse Collin <lasse.collin@tukaani.org> 2158Date: 2009-02-05 09:12:57 +0200 2159 2160 Various code cleanups the the xz command line tool. 2161 It now builds with MinGW. 2162 2163 src/common/physmem.h | 13 ++++ 2164 src/xz/Makefile.am | 2 + 2165 src/xz/args.h | 8 -- 2166 src/xz/hardware.h | 10 +--- 2167 src/xz/io.c | 93 +++++++++++++++++++------- 2168 src/xz/io.h | 12 +-- 2169 src/xz/main.c | 132 ++----------------------------------- 2170 src/xz/main.h | 22 ------ 2171 src/xz/message.c | 65 ++++++++++++++++-- 2172 src/xz/message.h | 6 -- 2173 src/xz/options.h | 8 -- 2174 src/xz/private.h | 18 ++++-- 2175 src/xz/process.h | 10 +--- 2176 src/xz/signals.c | 180 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2177 src/xz/signals.h | 51 ++++++++++++++ 2178 src/xz/suffix.h | 5 -- 2179 src/xz/util.c | 5 +- 2180 src/xz/util.h | 5 -- 2181 18 files changed, 399 insertions(+), 246 deletions(-) 2182 2183commit d0c0b9e94e0af59d1d8f7f4829695d6efe19ccfe 2184Author: Lasse Collin <lasse.collin@tukaani.org> 2185Date: 2009-02-03 12:15:17 +0200 2186 2187 Another utime() fix. 2188 2189 src/xz/io.c | 9 +++++---- 2190 1 files changed, 5 insertions(+), 4 deletions(-) 2191 2192commit ccf92a29e8c7234284f1568c1ec0fd7cb98356ca 2193Author: Lasse Collin <lasse.collin@tukaani.org> 2194Date: 2009-02-03 10:41:11 +0200 2195 2196 Fix wrong filename argument for utime() and utimes(). 2197 This doesn't affect most systems, since most systems 2198 have better functions available. 2199 2200 src/xz/io.c | 4 ++-- 2201 1 files changed, 2 insertions(+), 2 deletions(-) 2202 2203commit 99c1c2abfae2e87f3c17e929783e6d1bb7a3f302 2204Author: Lasse Collin <lasse.collin@tukaani.org> 2205Date: 2009-02-02 21:19:01 +0200 2206 2207 Updated the x86 assembler code: 2208 - Use call/ret pair to get instruction pointer for PIC. 2209 - Use PIC only if PIC or __PIC__ is #defined. 2210 - The code should work on MinGW and Darwin in addition 2211 to GNU/Linux and Solaris. 2212 2213 configure.ac | 6 --- 2214 src/liblzma/check/crc32_x86.S | 84 +++++++++++++++++++++++++++++++++++------ 2215 src/liblzma/check/crc64_x86.S | 82 +++++++++++++++++++++++++++++++++++----- 2216 3 files changed, 144 insertions(+), 28 deletions(-) 2217 2218commit 22a0c6dd940b78cdac2f4a4b4b0e7cc0ac15021f 2219Author: Lasse Collin <lasse.collin@tukaani.org> 2220Date: 2009-02-02 20:14:03 +0200 2221 2222 Modify LZMA_API macro so that it works on Windows with 2223 other compilers than MinGW. This may hurt readability 2224 of the API headers slightly, but I don't know any 2225 better way to do this. 2226 2227 src/liblzma/api/lzma.h | 6 ++-- 2228 src/liblzma/api/lzma/base.h | 11 ++++--- 2229 src/liblzma/api/lzma/block.h | 22 +++++++------- 2230 src/liblzma/api/lzma/check.h | 10 +++--- 2231 src/liblzma/api/lzma/container.h | 22 +++++++------- 2232 src/liblzma/api/lzma/filter.h | 28 ++++++++++---------- 2233 src/liblzma/api/lzma/index.h | 40 ++++++++++++++-------------- 2234 src/liblzma/api/lzma/index_hash.h | 10 +++--- 2235 src/liblzma/api/lzma/lzma.h | 6 ++-- 2236 src/liblzma/api/lzma/stream_flags.h | 10 +++--- 2237 src/liblzma/api/lzma/version.h | 4 +- 2238 src/liblzma/api/lzma/vli.h | 6 ++-- 2239 src/liblzma/check/check.c | 4 +- 2240 src/liblzma/check/crc32_fast.c | 2 +- 2241 src/liblzma/check/crc32_small.c | 2 +- 2242 src/liblzma/check/crc64_fast.c | 2 +- 2243 src/liblzma/check/crc64_small.c | 2 +- 2244 src/liblzma/common/alone_decoder.c | 2 +- 2245 src/liblzma/common/alone_encoder.c | 2 +- 2246 src/liblzma/common/auto_decoder.c | 2 +- 2247 src/liblzma/common/block_buffer_decoder.c | 2 +- 2248 src/liblzma/common/block_buffer_encoder.c | 4 +- 2249 src/liblzma/common/block_decoder.c | 2 +- 2250 src/liblzma/common/block_encoder.c | 2 +- 2251 src/liblzma/common/block_header_decoder.c | 2 +- 2252 src/liblzma/common/block_header_encoder.c | 4 +- 2253 src/liblzma/common/block_util.c | 6 ++-- 2254 src/liblzma/common/chunk_size.c | 2 +- 2255 src/liblzma/common/common.c | 16 +++++----- 2256 src/liblzma/common/common.h | 2 +- 2257 src/liblzma/common/easy.c | 6 ++-- 2258 src/liblzma/common/filter_buffer_decoder.c | 2 +- 2259 src/liblzma/common/filter_buffer_encoder.c | 2 +- 2260 src/liblzma/common/filter_decoder.c | 8 +++--- 2261 src/liblzma/common/filter_encoder.c | 12 ++++---- 2262 src/liblzma/common/filter_flags_decoder.c | 2 +- 2263 src/liblzma/common/filter_flags_encoder.c | 4 +- 2264 src/liblzma/common/index.c | 32 +++++++++++----------- 2265 src/liblzma/common/index_decoder.c | 4 +- 2266 src/liblzma/common/index_encoder.c | 4 +- 2267 src/liblzma/common/index_hash.c | 10 +++--- 2268 src/liblzma/common/stream_buffer_decoder.c | 2 +- 2269 src/liblzma/common/stream_buffer_encoder.c | 4 +- 2270 src/liblzma/common/stream_decoder.c | 2 +- 2271 src/liblzma/common/stream_encoder.c | 2 +- 2272 src/liblzma/common/stream_flags_common.c | 2 +- 2273 src/liblzma/common/stream_flags_decoder.c | 4 +- 2274 src/liblzma/common/stream_flags_encoder.c | 4 +- 2275 src/liblzma/common/vli_decoder.c | 2 +- 2276 src/liblzma/common/vli_encoder.c | 2 +- 2277 src/liblzma/common/vli_size.c | 2 +- 2278 src/liblzma/lz/lz_encoder.c | 2 +- 2279 src/liblzma/lzma/lzma_encoder.c | 2 +- 2280 src/liblzma/lzma/lzma_encoder_presets.c | 2 +- 2281 54 files changed, 177 insertions(+), 176 deletions(-) 2282 2283commit 8dd7b6052e18621e2e6c62f40f762ee88bd3eb65 2284Author: Lasse Collin <lasse.collin@tukaani.org> 2285Date: 2009-02-01 22:40:35 +0200 2286 2287 Fix a bug in lzma_block_buffer_decode(), although this 2288 function should be rewritten anyway. 2289 2290 src/liblzma/common/block_buffer_decoder.c | 8 ++++---- 2291 1 files changed, 4 insertions(+), 4 deletions(-) 2292 2293commit 55fd41431e61fb8178858283d636b6781e33e847 2294Author: Lasse Collin <lasse.collin@tukaani.org> 2295Date: 2009-02-01 22:39:07 +0200 2296 2297 Added initial version of raw buffer-to-buffer coding 2298 functions, and cleaned up filter.h API header a little. 2299 May be very buggy, not tested yet. 2300 2301 src/liblzma/api/lzma/filter.h | 84 +++++++++++++++++++------ 2302 src/liblzma/common/Makefile.am | 2 + 2303 src/liblzma/common/filter_buffer_decoder.c | 94 ++++++++++++++++++++++++++++ 2304 src/liblzma/common/filter_buffer_encoder.c | 61 ++++++++++++++++++ 2305 4 files changed, 221 insertions(+), 20 deletions(-) 2306 2307commit 3e54ecee5cad30a5ca361a88a99230407abc0699 2308Author: Lasse Collin <lasse.collin@tukaani.org> 2309Date: 2009-02-01 00:11:20 +0200 2310 2311 Fix missing newlines in xzdec.c. 2312 2313 src/xzdec/xzdec.c | 6 +++--- 2314 1 files changed, 3 insertions(+), 3 deletions(-) 2315 2316commit d64ca34f1b6f34e86adefc7f735b4eff8e6d4a35 2317Author: Lasse Collin <lasse.collin@tukaani.org> 2318Date: 2009-02-01 00:10:07 +0200 2319 2320 Use __cdecl also for function pointers in liblzma API when 2321 on Windows. 2322 2323 src/liblzma/api/lzma.h | 18 +++++++++++------- 2324 src/liblzma/api/lzma/base.h | 4 ++-- 2325 src/liblzma/common/common.h | 18 +++++++----------- 2326 3 files changed, 20 insertions(+), 20 deletions(-) 2327 2328commit 6a2eb54092fc625d59921a607ff68cd1a90aa898 2329Author: Lasse Collin <lasse.collin@tukaani.org> 2330Date: 2009-01-31 11:01:48 +0200 2331 2332 Add LZMA_API to liblzma API headers. It's useful at least 2333 on Windows. sysdefs.h no longer #includes lzma.h, so lzma.h 2334 has to be #included separately where needed. 2335 2336 src/common/sysdefs.h | 2 - 2337 src/liblzma/api/lzma.h | 17 ++++++++++++ 2338 src/liblzma/api/lzma/base.h | 10 +++--- 2339 src/liblzma/api/lzma/block.h | 25 ++++++++++-------- 2340 src/liblzma/api/lzma/check.h | 12 +++++--- 2341 src/liblzma/api/lzma/container.h | 23 +++++++++-------- 2342 src/liblzma/api/lzma/filter.h | 24 +++++++++--------- 2343 src/liblzma/api/lzma/index.h | 47 ++++++++++++++++++++--------------- 2344 src/liblzma/api/lzma/index_hash.h | 11 ++++--- 2345 src/liblzma/api/lzma/lzma.h | 8 +++-- 2346 src/liblzma/api/lzma/stream_flags.h | 10 +++--- 2347 src/liblzma/api/lzma/version.h | 4 +- 2348 src/liblzma/api/lzma/vli.h | 10 +++--- 2349 src/liblzma/common/common.h | 13 ++++++++- 2350 src/xz/private.h | 1 + 2351 src/xzdec/xzdec.c | 1 + 2352 tests/tests.h | 1 + 2353 17 files changed, 131 insertions(+), 88 deletions(-) 2354 2355commit d9993fcb4dfc1f93abaf31ae23b3ef1f3123892b 2356Author: Lasse Collin <lasse.collin@tukaani.org> 2357Date: 2009-01-31 10:13:09 +0200 2358 2359 Use _WIN32 instead of WIN32 in xzdec.c to test if compiling on Windows. 2360 2361 src/xzdec/xzdec.c | 4 ++-- 2362 1 files changed, 2 insertions(+), 2 deletions(-) 2363 2364commit 2dbdc5befb33c3703e4609809101047c67caf343 2365Author: Lasse Collin <lasse.collin@tukaani.org> 2366Date: 2009-01-31 10:02:52 +0200 2367 2368 Fix two lines in lzma.h on which the # wasn't at the 2369 beginning of the line. 2370 2371 src/liblzma/api/lzma.h | 4 ++-- 2372 1 files changed, 2 insertions(+), 2 deletions(-) 2373 2374commit 4ab760109106dc04f39dd81c97d50f528d1b51c1 2375Author: Lasse Collin <lasse.collin@tukaani.org> 2376Date: 2009-01-31 09:55:05 +0200 2377 2378 Add support for using liblzma headers in MSVC, which has no 2379 stdint.h or inttypes.h. 2380 2381 src/liblzma/api/lzma.h | 70 +++++++++++++++++++++++++++++++---------------- 2382 1 files changed, 46 insertions(+), 24 deletions(-) 2383 2384commit b2172cf823d3be34cb0246cb4cb32d105e2a34c9 2385Author: Lasse Collin <lasse.collin@tukaani.org> 2386Date: 2009-01-31 08:49:54 +0200 2387 2388 Fix # -> ## in a macro in lzma.h. 2389 2390 src/liblzma/api/lzma.h | 2 +- 2391 1 files changed, 1 insertions(+), 1 deletions(-) 2392 2393commit 1aae8698746d3c87a93f8398cdde2de9ba1f7208 2394Author: Lasse Collin <lasse.collin@tukaani.org> 2395Date: 2009-01-30 18:50:16 +0200 2396 2397 Updated README. 2398 2399 README | 30 ++++++++++++++++++++---------- 2400 1 files changed, 20 insertions(+), 10 deletions(-) 2401 2402commit f54bcf6f80d585236bc03ce49f7c73e1abaa17eb 2403Author: Lasse Collin <lasse.collin@tukaani.org> 2404Date: 2009-01-30 00:29:58 +0200 2405 2406 Remove dangling crc64_init.c. 2407 2408 src/liblzma/check/crc64_init.c | 55 ---------------------------------------- 2409 1 files changed, 0 insertions(+), 55 deletions(-) 2410 2411commit 982da7ed314398420c38bf154a8f759d5f18b480 2412Author: Lasse Collin <lasse.collin@tukaani.org> 2413Date: 2009-01-28 17:16:38 +0200 2414 2415 The .xz file format specification version 1.0.0 is now 2416 officially released. The format has been technically the same 2417 since 2008-11-19, but now that it is frozen, people can start 2418 using it without a fear that the format will break. 2419 2420 doc/file-format.txt | 84 +++++++++++++++++++++++++++++--------------------- 2421 1 files changed, 49 insertions(+), 35 deletions(-) 2422 2423commit c4683a660b4372156bdaf92f0cdc54a58f95ee6f 2424Author: Lasse Collin <lasse.collin@tukaani.org> 2425Date: 2009-01-28 08:45:59 +0200 2426 2427 Updated THANKS. 2428 2429 THANKS | 1 + 2430 1 files changed, 1 insertions(+), 0 deletions(-) 2431 2432commit 3241317093595db9f79104faafe93cb989c9f858 2433Author: Lasse Collin <lasse.collin@tukaani.org> 2434Date: 2009-01-28 08:43:26 +0200 2435 2436 Fix uninitialized variables in alone_decoder.c. This bug was 2437 triggered by the previous commit, since these variables were 2438 not used by anything before support for a preset dictionary. 2439 2440 src/liblzma/common/alone_decoder.c | 2 ++ 2441 1 files changed, 2 insertions(+), 0 deletions(-) 2442 2443commit f76e39cf930f888d460b443d18f977ebedea8b2a 2444Author: Lasse Collin <lasse.collin@tukaani.org> 2445Date: 2009-01-27 18:36:05 +0200 2446 2447 Added initial support for preset dictionary for raw LZMA1 2448 and LZMA2. It is not supported by the .xz format or the xz 2449 command line tool yet. 2450 2451 src/liblzma/lz/lz_decoder.c | 35 +++++++++++++++++++++++++---------- 2452 src/liblzma/lz/lz_decoder.h | 9 ++++++++- 2453 src/liblzma/lz/lz_encoder.c | 18 ++++++++++++++++-- 2454 src/liblzma/lzma/lzma2_decoder.c | 9 ++++++--- 2455 src/liblzma/lzma/lzma2_encoder.c | 12 +++++++----- 2456 src/liblzma/lzma/lzma_decoder.c | 10 ++++++---- 2457 src/liblzma/lzma/lzma_decoder.h | 2 +- 2458 src/liblzma/lzma/lzma_encoder.c | 9 ++++++++- 2459 8 files changed, 77 insertions(+), 27 deletions(-) 2460 2461commit 449b8c832b26c3633f3bec60095e57d2d3ada1f3 2462Author: Lasse Collin <lasse.collin@tukaani.org> 2463Date: 2009-01-26 20:09:17 +0200 2464 2465 Regenerate the CRC tables without trailing blanks. 2466 2467 src/liblzma/check/crc32_table_be.h | 1008 ++++++++++++++++++------------------ 2468 src/liblzma/check/crc32_table_le.h | 1008 ++++++++++++++++++------------------ 2469 src/liblzma/check/crc64_table_be.h | 1016 ++++++++++++++++++------------------ 2470 src/liblzma/check/crc64_table_le.h | 1016 ++++++++++++++++++------------------ 2471 4 files changed, 2024 insertions(+), 2024 deletions(-) 2472 2473commit 850f7400428dc9c5fd08a2f35a5bd2c9e45aede2 2474Author: Jim Meyering <meyering@redhat.com> 2475Date: 2009-01-19 21:37:16 +0100 2476 2477 remove trailing blanks from all but .xz files 2478 2479 debug/known_sizes.c | 2 +- 2480 extra/scanlzma/scanlzma.c | 5 ++--- 2481 src/liblzma/check/crc32_tablegen.c | 2 +- 2482 src/liblzma/check/crc64_tablegen.c | 2 +- 2483 src/scripts/lzdiff.1 | 4 ++-- 2484 src/scripts/lzmore.1 | 6 +++--- 2485 tests/test_compress.sh | 4 ++-- 2486 7 files changed, 12 insertions(+), 13 deletions(-) 2487 2488commit 667481f1aad34e1ed15738e7913a9c7e256b4cf5 2489Author: Lasse Collin <lasse.collin@tukaani.org> 2490Date: 2009-01-26 14:34:10 +0200 2491 2492 Add lzma_block_buffer_decode(). 2493 2494 src/liblzma/api/lzma/block.h | 41 ++++++++++++++ 2495 src/liblzma/common/Makefile.am | 1 + 2496 src/liblzma/common/block_buffer_decoder.c | 87 +++++++++++++++++++++++++++++ 2497 3 files changed, 129 insertions(+), 0 deletions(-) 2498 2499commit 5fb34d8324d3e7e0061df25d0086b64c8726b19d 2500Author: Lasse Collin <lasse.collin@tukaani.org> 2501Date: 2009-01-26 14:33:28 +0200 2502 2503 Add more sanity checks to lzma_stream_buffer_decode(). 2504 2505 src/liblzma/common/stream_buffer_decoder.c | 7 +++++++ 2506 1 files changed, 7 insertions(+), 0 deletions(-) 2507 2508commit c129748675a5daa8838df92bde32cc04f6ce61ba 2509Author: Lasse Collin <lasse.collin@tukaani.org> 2510Date: 2009-01-26 14:33:13 +0200 2511 2512 Avoid hardcoded constant in easy.c. 2513 2514 src/liblzma/common/easy.c | 2 +- 2515 1 files changed, 1 insertions(+), 1 deletions(-) 2516 2517commit 1859d22d75e072463db74c25bc3f5a7992e5fdf6 2518Author: Lasse Collin <lasse.collin@tukaani.org> 2519Date: 2009-01-26 13:06:49 +0200 2520 2521 Tiny bit better sanity check in block_util.c 2522 2523 src/liblzma/common/block_util.c | 2 +- 2524 1 files changed, 1 insertions(+), 1 deletions(-) 2525 2526commit 2c5fe958e4bbe9b147b10c255955dfe2827fb8e7 2527Author: Lasse Collin <lasse.collin@tukaani.org> 2528Date: 2009-01-25 01:35:56 +0200 2529 2530 Fix a dumb bug in Block decoder, which made it return 2531 LZMA_DATA_ERROR with valid data. The bug was added in 2532 e114502b2bc371e4a45449832cb69be036360722. 2533 2534 src/liblzma/common/block_decoder.c | 6 +++--- 2535 1 files changed, 3 insertions(+), 3 deletions(-) 2536 2537commit c81f13ff29271de7293f8af3d81848b1dcae3d19 2538Author: Lasse Collin <lasse.collin@tukaani.org> 2539Date: 2009-01-23 22:27:50 +0200 2540 2541 Added lzma_stream_buffer_decode() and made minor cleanups. 2542 2543 src/liblzma/api/lzma/block.h | 3 +- 2544 src/liblzma/api/lzma/container.h | 51 +++++++++++++++- 2545 src/liblzma/common/Makefile.am | 1 + 2546 src/liblzma/common/stream_buffer_decoder.c | 91 ++++++++++++++++++++++++++++ 2547 4 files changed, 144 insertions(+), 2 deletions(-) 2548 2549commit 0b3318661ce749550b8531dfd469639a08930391 2550Author: Lasse Collin <lasse.collin@tukaani.org> 2551Date: 2009-01-22 12:53:33 +0200 2552 2553 Fix a comment. 2554 2555 src/liblzma/common/common.h | 2 +- 2556 1 files changed, 1 insertions(+), 1 deletions(-) 2557 2558commit 9ec80355a7212a0a2f8c89d98e51b1d8b4e34eec 2559Author: Lasse Collin <lasse.collin@tukaani.org> 2560Date: 2009-01-20 16:37:27 +0200 2561 2562 Add some single-call buffer-to-buffer coding functions. 2563 2564 src/liblzma/api/lzma/block.h | 57 +++++ 2565 src/liblzma/api/lzma/container.h | 56 +++++ 2566 src/liblzma/api/lzma/index.h | 70 ++++++- 2567 src/liblzma/common/Makefile.am | 2 + 2568 src/liblzma/common/block_buffer_encoder.c | 305 ++++++++++++++++++++++++++++ 2569 src/liblzma/common/index_decoder.c | 83 +++++++-- 2570 src/liblzma/common/index_encoder.c | 59 +++++- 2571 src/liblzma/common/stream_buffer_encoder.c | 138 +++++++++++++ 2572 tests/test_index.c | 24 +++ 2573 9 files changed, 768 insertions(+), 26 deletions(-) 2574 2575commit d8b58d099340f8f4007b24b211ee41a7210c061c 2576Author: Lasse Collin <lasse.collin@tukaani.org> 2577Date: 2009-01-20 13:45:41 +0200 2578 2579 Block encoder cleanups 2580 2581 src/liblzma/common/block_encoder.c | 28 +++++++--------------------- 2582 src/liblzma/common/block_encoder.h | 25 +++++++++++++++++++++++++ 2583 2 files changed, 32 insertions(+), 21 deletions(-) 2584 2585commit 0c09810cb3635cb575cb54e694d41523e7d0a335 2586Author: Lasse Collin <lasse.collin@tukaani.org> 2587Date: 2009-01-20 10:35:15 +0200 2588 2589 Use LZMA_PROG_ERROR in lzma_code() as documented in base.h. 2590 2591 src/liblzma/common/common.c | 24 ++++++++---------------- 2592 1 files changed, 8 insertions(+), 16 deletions(-) 2593 2594commit 2f1a8e8eb898f6c036cde55d153ad348bfab3c00 2595Author: Lasse Collin <lasse.collin@tukaani.org> 2596Date: 2009-01-19 22:53:18 +0200 2597 2598 Fix handling of non-fatal errors in lzma_code(). 2599 2600 src/liblzma/common/common.c | 9 ++++++++- 2601 1 files changed, 8 insertions(+), 1 deletions(-) 2602 2603commit 4810b6bc25087be872960b9dd1d11ff07735dc88 2604Author: Lasse Collin <lasse.collin@tukaani.org> 2605Date: 2009-01-19 14:00:33 +0200 2606 2607 Move some LZMA2 constants to lzma2_encoder.h so that they 2608 can be used outside lzma2_encoder.c. 2609 2610 src/liblzma/lzma/lzma2_encoder.c | 13 ------------- 2611 src/liblzma/lzma/lzma2_encoder.h | 14 ++++++++++++++ 2612 src/liblzma/lzma/lzma_encoder.c | 3 ++- 2613 3 files changed, 16 insertions(+), 14 deletions(-) 2614 2615commit 00be5d2e09f9c7a6a8563465ad8b8042866817a4 2616Author: Lasse Collin <lasse.collin@tukaani.org> 2617Date: 2009-01-19 13:52:36 +0200 2618 2619 Remove dead code. 2620 2621 src/liblzma/lzma/lzma_encoder.h | 8 -------- 2622 1 files changed, 0 insertions(+), 8 deletions(-) 2623 2624commit 128586213f77c9bd82b7e9a62927f6d0c3769d85 2625Author: Lasse Collin <lasse.collin@tukaani.org> 2626Date: 2009-01-17 14:24:25 +0200 2627 2628 Beta was supposed to be API stable but I had forgot to rename 2629 lzma_memlimit_encoder and lzma_memlimit_decoder to 2630 lzma_raw_encoder_memlimit and lzma_raw_decoder_memlimit. :-( 2631 Now it is fixed. Hopefully it doesn't cause too much trouble 2632 to those who already thought API is stable. 2633 2634 src/liblzma/api/lzma/filter.h | 4 ++-- 2635 src/liblzma/common/easy.c | 4 ++-- 2636 src/liblzma/common/filter_common.c | 2 +- 2637 src/liblzma/common/filter_common.h | 2 +- 2638 src/liblzma/common/filter_decoder.c | 4 ++-- 2639 src/liblzma/common/filter_encoder.c | 4 ++-- 2640 src/liblzma/common/stream_decoder.c | 2 +- 2641 src/xz/process.c | 6 +++--- 2642 8 files changed, 14 insertions(+), 14 deletions(-) 2643 2644commit b056379490be5c584c264a967f0540041a163a1e 2645Author: Lasse Collin <lasse.collin@tukaani.org> 2646Date: 2009-01-15 14:29:22 +0200 2647 2648 Updated THANKS. 2649 2650 THANKS | 1 + 2651 1 files changed, 1 insertions(+), 0 deletions(-) 2652 2653commit dc8f3be06d54ef6e6cfb5134dd3d25edd08cef89 2654Author: Lasse Collin <lasse.collin@tukaani.org> 2655Date: 2009-01-15 14:27:32 +0200 2656 2657 Fixed a bug in 7z2lzma.bash to make it work with .7z files 2658 that use something else than 2^n as the dictionary size. 2659 Thanks to Dan Shechter for the bug report. 2660 2661 extra/7z2lzma/7z2lzma.bash | 47 ++++++++++++++++++++++--------------------- 2662 1 files changed, 24 insertions(+), 23 deletions(-) 2663 2664commit 8286a60b8f4bd5accfbc9d229d2204bac31994f2 2665Author: Lasse Collin <lasse.collin@tukaani.org> 2666Date: 2009-01-07 18:41:15 +0200 2667 2668 Use pthread_sigmask() instead of sigprocmask() when pthreads 2669 are enabled. 2670 2671 src/common/mythread.h | 6 ++++++ 2672 src/xz/main.c | 4 ++-- 2673 src/xz/private.h | 1 + 2674 3 files changed, 9 insertions(+), 2 deletions(-) 2675 2676commit 4fd43cb3a906f6da2943f69239ee984c4787c9a9 2677Author: Lasse Collin <lasse.collin@tukaani.org> 2678Date: 2008-12-31 20:01:00 +0200 2679 2680 Bumped version to 4.999.8beta right after the release 2681 of 4.999.7beta. 2682 2683 configure.ac | 2 +- 2684 src/liblzma/api/lzma/version.h | 2 +- 2685 2 files changed, 2 insertions(+), 2 deletions(-) 2686 2687commit 061748f5932719643cda73383db715167d543c22 2688Author: Lasse Collin <lasse.collin@tukaani.org> 2689Date: 2008-12-31 18:59:02 +0200 2690 2691 Disable Subblock filter from test_compress.sh since it is 2692 disabled by default in configure.ac. 2693 2694 tests/test_compress.sh | 22 +++++++++++++--------- 2695 1 files changed, 13 insertions(+), 9 deletions(-) 2696 2697commit 9c45658ddc8bd4a7819ef8547d3e7ccf73203e78 2698Author: Lasse Collin <lasse.collin@tukaani.org> 2699Date: 2008-12-31 17:44:20 +0200 2700 2701 Disable both Subblock encoder and decoder my default, 2702 since they are not finished and may have security issues too. 2703 2704 configure.ac | 2 +- 2705 1 files changed, 1 insertions(+), 1 deletions(-) 2706 2707commit b59f1e98f50694cf6a8f1b342fd878feebdb2f88 2708Author: Lasse Collin <lasse.collin@tukaani.org> 2709Date: 2008-12-31 17:42:50 +0200 2710 2711 Update some files in debug directory. 2712 2713 debug/full_flush.c | 2 -- 2714 debug/memusage.c | 2 -- 2715 debug/sync_flush.c | 2 -- 2716 3 files changed, 0 insertions(+), 6 deletions(-) 2717 2718commit d1d17a40d33a9682424ca37282813492f2cba6d0 2719Author: Lasse Collin <lasse.collin@tukaani.org> 2720Date: 2008-12-31 17:41:46 +0200 2721 2722 Prepare for 4.999.7beta release. 2723 2724 AUTHORS | 4 ++-- 2725 README | 34 +++++++++++++++++----------------- 2726 configure.ac | 4 ++-- 2727 src/liblzma/api/lzma/version.h | 2 +- 2728 4 files changed, 22 insertions(+), 22 deletions(-) 2729 2730commit 88d3e6b0b18e24142b6d3b41dc1b84b00c49fef3 2731Author: Lasse Collin <lasse.collin@tukaani.org> 2732Date: 2008-12-31 17:15:03 +0200 2733 2734 Cleaned up some comments in the API headers. 2735 2736 src/liblzma/api/lzma/check.h | 23 +++++++++++------------ 2737 src/liblzma/api/lzma/container.h | 2 +- 2738 src/liblzma/api/lzma/version.h | 4 +++- 2739 3 files changed, 15 insertions(+), 14 deletions(-) 2740 2741commit 322ecf93c961e45a1da8c4a794a7fdacefcd7f40 2742Author: Lasse Collin <lasse.collin@tukaani.org> 2743Date: 2008-12-31 16:29:39 +0200 2744 2745 Renamed lzma_options_simple to lzma_options_bcj in the API. 2746 The internal implementation is still using the name "simple". 2747 It may need some cleanups, so I look at it later. 2748 2749 src/liblzma/api/Makefile.am | 2 +- 2750 src/liblzma/api/lzma.h | 2 +- 2751 src/liblzma/api/lzma/bcj.h | 94 +++++++++++++++++++++++++++++++++++ 2752 src/liblzma/api/lzma/simple.h | 94 ----------------------------------- 2753 src/liblzma/simple/simple_coder.c | 2 +- 2754 src/liblzma/simple/simple_decoder.c | 4 +- 2755 src/liblzma/simple/simple_encoder.c | 4 +- 2756 tests/test_filter_flags.c | 8 ++-- 2757 8 files changed, 105 insertions(+), 105 deletions(-) 2758 2759commit 7eea8bec3abfed883efba66264a1452a1c04f6b0 2760Author: Lasse Collin <lasse.collin@tukaani.org> 2761Date: 2008-12-31 00:57:27 +0200 2762 2763 Fixed missing quoting in configure.ac. 2764 2765 configure.ac | 38 +++++++++++++++++++------------------- 2766 1 files changed, 19 insertions(+), 19 deletions(-) 2767 2768commit 28e75f7086dbe9501d926c370375c69dfb1236ce 2769Author: Lasse Collin <lasse.collin@tukaani.org> 2770Date: 2008-12-31 00:48:23 +0200 2771 2772 Updated src/liblzma/Makefile.am to use liblzma.pc.in, which 2773 should have been in the previous commit. 2774 2775 src/liblzma/Makefile.am | 4 ++-- 2776 1 files changed, 2 insertions(+), 2 deletions(-) 2777 2778commit 7ed9d943b31d3ee9c5fb2387e84a241ba33afe90 2779Author: Lasse Collin <lasse.collin@tukaani.org> 2780Date: 2008-12-31 00:30:49 +0200 2781 2782 Remove lzma_init() and other init functions from liblzma API. 2783 Half of developers were already forgetting to use these 2784 functions, which could have caused total breakage in some future 2785 liblzma version or even now if --enable-small was used. Now 2786 liblzma uses pthread_once() to do the initializations unless 2787 it has been built with --disable-threads which make these 2788 initializations thread-unsafe. 2789 2790 When --enable-small isn't used, liblzma currently gets needlessly 2791 linked against libpthread (on systems that have it). While it is 2792 stupid for now, liblzma will need threads in future anyway, so 2793 this stupidity will be temporary only. 2794 2795 When --enable-small is used, different code CRC32 and CRC64 is 2796 now used than without --enable-small. This made the resulting 2797 binary slightly smaller, but the main reason was to clean it up 2798 and to handle the lack of lzma_init_check(). 2799 2800 The pkg-config file lzma.pc was renamed to liblzma.pc. I'm not 2801 sure if it works correctly and portably for static linking 2802 (Libs.private includes -pthread or other operating system 2803 specific flags). Hopefully someone complains if it is bad. 2804 2805 lzma_rc_prices[] is now included as a precomputed array even 2806 with --enable-small. It's just 128 bytes now that it uses uint8_t 2807 instead of uint32_t. Smaller array seemed to be at least as fast 2808 as the more bloated uint32_t array on x86; hopefully it's not bad 2809 on other architectures. 2810 2811 configure.ac | 29 ++++++++-- 2812 src/common/mythread.h | 34 +++++++++++ 2813 src/liblzma/api/Makefile.am | 1 - 2814 src/liblzma/api/lzma.h | 1 - 2815 src/liblzma/api/lzma/init.h | 85 ---------------------------- 2816 src/liblzma/check/Makefile.am | 29 +++------ 2817 src/liblzma/check/check.c | 10 ++-- 2818 src/liblzma/check/check.h | 25 +++----- 2819 src/liblzma/check/check_init.c | 37 ------------ 2820 src/liblzma/check/crc32.c | 88 ----------------------------- 2821 src/liblzma/check/crc32_fast.c | 88 +++++++++++++++++++++++++++++ 2822 src/liblzma/check/crc32_init.c | 55 ------------------ 2823 src/liblzma/check/crc32_small.c | 54 ++++++++++++++++++ 2824 src/liblzma/check/crc32_tablegen.c | 55 ++++++++++++++++-- 2825 src/liblzma/check/crc64.c | 75 ------------------------ 2826 src/liblzma/check/crc64_fast.c | 75 ++++++++++++++++++++++++ 2827 src/liblzma/check/crc64_small.c | 54 ++++++++++++++++++ 2828 src/liblzma/check/crc64_tablegen.c | 55 ++++++++++++++++-- 2829 src/liblzma/common/Makefile.am | 3 - 2830 src/liblzma/common/common.h | 1 + 2831 src/liblzma/common/init.c | 39 ------------- 2832 src/liblzma/common/init_decoder.c | 31 ---------- 2833 src/liblzma/common/init_encoder.c | 40 ------------- 2834 src/liblzma/liblzma.pc.in | 12 ++++ 2835 src/liblzma/lz/lz_encoder.c | 6 ++ 2836 src/liblzma/lzma.pc.in | 11 ---- 2837 src/liblzma/rangecoder/Makefile.am | 8 +-- 2838 src/liblzma/rangecoder/price.h | 16 +----- 2839 src/liblzma/rangecoder/price_table.c | 2 +- 2840 src/liblzma/rangecoder/price_table_init.c | 55 ------------------ 2841 src/liblzma/rangecoder/price_tablegen.c | 51 ++++++++++++++-- 2842 src/xz/Makefile.am | 5 +- 2843 src/xz/main.c | 3 - 2844 src/xzdec/xzdec.c | 3 - 2845 tests/test_block_header.c | 1 - 2846 tests/test_check.c | 2 - 2847 tests/test_filter_flags.c | 2 - 2848 tests/test_index.c | 2 - 2849 tests/test_stream_flags.c | 2 - 2850 tests/tests.h | 2 +- 2851 40 files changed, 519 insertions(+), 628 deletions(-) 2852 2853commit 5cda29b5665004fc0f21d0c41d78022a6a559ab2 2854Author: Lasse Collin <lasse.collin@tukaani.org> 2855Date: 2008-12-27 19:40:31 +0200 2856 2857 Use 28 MiB as memory usage limit for encoding in test_compress.sh. 2858 2859 tests/test_compress.sh | 2 +- 2860 1 files changed, 1 insertions(+), 1 deletions(-) 2861 2862commit 050eb14d29e2537c014662e83599fd8a77f13c45 2863Author: Lasse Collin <lasse.collin@tukaani.org> 2864Date: 2008-12-27 19:32:20 +0200 2865 2866 Revert a change made in 3b34851de1eaf358cf9268922fa0eeed8278d680 2867 that was related to LZMA_MODE_FAST. The original code is slightly 2868 faster although it compresses slightly worse. But since it is fast 2869 mode, it is better to select the faster version. 2870 2871 src/liblzma/lzma/lzma_encoder_optimum_fast.c | 23 ++++++++--------------- 2872 1 files changed, 8 insertions(+), 15 deletions(-) 2873 2874commit 4820f10d0f173864f6a2ea7479663b509ac53358 2875Author: Lasse Collin <lasse.collin@tukaani.org> 2876Date: 2008-12-27 19:30:19 +0200 2877 2878 Some xz command line tool improvements. 2879 2880 src/xz/args.c | 23 ++++----- 2881 src/xz/message.c | 4 +- 2882 src/xz/options.c | 2 +- 2883 src/xz/process.c | 133 ++++++++++++++++++++++++++++++++++++++++++----------- 2884 src/xz/process.h | 3 + 2885 5 files changed, 121 insertions(+), 44 deletions(-) 2886 2887commit e33194e79d8f5ce07cb4aca909b324ae75098f7e 2888Author: Lasse Collin <lasse.collin@tukaani.org> 2889Date: 2008-12-27 19:27:49 +0200 2890 2891 Bunch of liblzma tweaks, including some API changes. 2892 The API and ABI should now be very close to stable, 2893 although the code behind it isn't yet. 2894 2895 src/liblzma/api/lzma.h | 8 ++-- 2896 src/liblzma/api/lzma/block.h | 63 +++++++++++++++++++++++- 2897 src/liblzma/api/lzma/container.h | 76 ++++++++++++++-------------- 2898 src/liblzma/api/lzma/lzma.h | 41 +++++++++------- 2899 src/liblzma/common/alone_decoder.c | 36 +++++++------- 2900 src/liblzma/common/alone_encoder.c | 22 +++----- 2901 src/liblzma/common/auto_decoder.c | 2 +- 2902 src/liblzma/common/block_decoder.c | 54 ++++++++++---------- 2903 src/liblzma/common/block_decoder.h | 4 +- 2904 src/liblzma/common/block_encoder.c | 37 ++++++++------ 2905 src/liblzma/common/block_encoder.h | 4 +- 2906 src/liblzma/common/block_header_decoder.c | 41 ++++++++------- 2907 src/liblzma/common/block_header_encoder.c | 51 +++++++++---------- 2908 src/liblzma/common/block_util.c | 3 +- 2909 src/liblzma/common/easy.c | 45 ++++++----------- 2910 src/liblzma/common/stream_decoder.c | 3 +- 2911 src/liblzma/common/stream_decoder.h | 2 +- 2912 src/liblzma/common/stream_encoder.c | 3 +- 2913 src/liblzma/common/stream_encoder.h | 2 +- 2914 src/liblzma/common/stream_flags_decoder.c | 2 +- 2915 src/liblzma/common/stream_flags_encoder.c | 2 +- 2916 src/liblzma/lzma/lzma_encoder.c | 2 +- 2917 src/liblzma/lzma/lzma_encoder_presets.c | 53 ++++++-------------- 2918 23 files changed, 294 insertions(+), 262 deletions(-) 2919 2920commit 4d00652e75dd2736aedc3a3a8baff3dd0ea38074 2921Author: Lasse Collin <lasse.collin@tukaani.org> 2922Date: 2008-12-18 13:42:52 +0200 2923 2924 Updated Makefile.am that was missing from the previous commit. 2925 2926 src/liblzma/common/Makefile.am | 1 - 2927 1 files changed, 0 insertions(+), 1 deletions(-) 2928 2929commit 634636fa56ccee6e744f78b0abed76c8940f2f8f 2930Author: Lasse Collin <lasse.collin@tukaani.org> 2931Date: 2008-12-17 21:49:53 +0200 2932 2933 Remove the alignment functions for now. Maybe they will 2934 be added back in some form later, but the current version 2935 wasn't modular, so it would need fixing anyway. 2936 2937 src/liblzma/api/Makefile.am | 1 - 2938 src/liblzma/api/lzma.h | 1 - 2939 src/liblzma/api/lzma/alignment.h | 60 -------------------- 2940 src/liblzma/common/alignment.c | 114 -------------------------------------- 2941 4 files changed, 0 insertions(+), 176 deletions(-) 2942 2943commit 4fed98417d1687f5eccccb42a133fde3ec81216a 2944Author: Lasse Collin <lasse.collin@tukaani.org> 2945Date: 2008-12-17 20:11:23 +0200 2946 2947 xz message handling improvements 2948 2949 src/xz/message.c | 125 +++++++++++++++++++++++++++++++++++++++++++++++++----- 2950 src/xz/message.h | 7 +++- 2951 src/xz/process.c | 28 +++++++++++- 2952 3 files changed, 146 insertions(+), 14 deletions(-) 2953 2954commit 653e457e3756ef35e5d1b2be3523b3e4b1e9ee4d 2955Author: Lasse Collin <lasse.collin@tukaani.org> 2956Date: 2008-12-15 23:26:43 +0200 2957 2958 Fix a dumb bug in .lzma decoder which was introduced in 2959 the previous commit. (Probably the previous commit has 2960 other bugs too, it wasn't tested.) 2961 2962 src/liblzma/common/alone_decoder.c | 29 ++++++++++++++--------------- 2963 1 files changed, 14 insertions(+), 15 deletions(-) 2964 2965commit 671a5adf1e844bfdd6fd327016c3c28694493158 2966Author: Lasse Collin <lasse.collin@tukaani.org> 2967Date: 2008-12-15 19:39:13 +0200 2968 2969 Bunch of liblzma API cleanups and fixes. 2970 2971 src/liblzma/api/lzma.h | 122 +++++++++++--------- 2972 src/liblzma/api/lzma/base.h | 174 +++++++++++++++++++---------- 2973 src/liblzma/api/lzma/block.h | 211 +++++++++++++++++++++++------------ 2974 src/liblzma/api/lzma/check.h | 28 +++-- 2975 src/liblzma/api/lzma/container.h | 155 +++++++++++++------------- 2976 src/liblzma/api/lzma/delta.h | 12 +- 2977 src/liblzma/api/lzma/filter.h | 27 +++-- 2978 src/liblzma/api/lzma/index.h | 97 ++++++++++++++--- 2979 src/liblzma/api/lzma/index_hash.h | 26 +++- 2980 src/liblzma/api/lzma/init.h | 2 +- 2981 src/liblzma/api/lzma/lzma.h | 12 +- 2982 src/liblzma/api/lzma/simple.h | 4 +- 2983 src/liblzma/api/lzma/stream_flags.h | 46 +++++--- 2984 src/liblzma/api/lzma/version.h | 6 +- 2985 src/liblzma/api/lzma/vli.h | 17 +-- 2986 src/liblzma/common/alone_decoder.c | 47 ++++++--- 2987 src/liblzma/common/auto_decoder.c | 29 +++++ 2988 src/liblzma/common/block_util.c | 52 +++++---- 2989 src/liblzma/common/common.c | 58 ++++++++++ 2990 src/liblzma/common/common.h | 9 ++- 2991 src/liblzma/common/easy.c | 33 ++++-- 2992 src/liblzma/common/filter_common.c | 2 +- 2993 src/liblzma/common/index.c | 11 ++ 2994 src/liblzma/common/index_decoder.c | 46 +++++++- 2995 src/liblzma/common/stream_decoder.c | 47 +++++++- 2996 src/liblzma/lzma/lzma2_encoder.c | 6 +- 2997 tests/test_index.c | 10 +- 2998 27 files changed, 863 insertions(+), 426 deletions(-) 2999 3000commit 17781c2c20fd77029cb32e77792889f2f211d69d 3001Author: Lasse Collin <lasse.collin@tukaani.org> 3002Date: 2008-12-15 14:26:52 +0200 3003 3004 The LZMA2 decoder fix introduced a bug to LZ decoder, 3005 which made LZ decoder return too early after dictionary 3006 reset. This fixes it. 3007 3008 src/liblzma/lz/lz_decoder.c | 33 +++++++++++++++++++++++---------- 3009 1 files changed, 23 insertions(+), 10 deletions(-) 3010 3011commit f9f2d1e74398500724041f7fb3c38db35ad8c8d8 3012Author: Lasse Collin <lasse.collin@tukaani.org> 3013Date: 2008-12-15 11:20:22 +0200 3014 3015 Added two new test files. 3016 3017 tests/files/README | 7 +++++++ 3018 tests/files/bad-1-lzma2-8.xz | Bin 0 -> 464 bytes 3019 tests/files/good-1-lzma2-4.xz | Bin 0 -> 464 bytes 3020 3 files changed, 7 insertions(+), 0 deletions(-) 3021 3022commit ff7fb2c605bccc411069e07b9f11fb957aea2ddf 3023Author: Lasse Collin <lasse.collin@tukaani.org> 3024Date: 2008-12-15 10:01:59 +0200 3025 3026 Fix data corruption in LZMA2 decoder. 3027 3028 src/liblzma/lz/lz_decoder.c | 17 ++++++++++++++++- 3029 src/liblzma/lz/lz_decoder.h | 8 +++++--- 3030 src/liblzma/lzma/lzma2_decoder.c | 15 +++++++++++---- 3031 3 files changed, 32 insertions(+), 8 deletions(-) 3032 3033commit 1ceebcf7e1bd30b95125f0ad67a09fdb6215d613 3034Author: Lasse Collin <lasse.collin@tukaani.org> 3035Date: 2008-12-13 00:54:11 +0200 3036 3037 Name the package "xz" in configure.ac. 3038 3039 configure.ac | 11 ++++------- 3040 1 files changed, 4 insertions(+), 7 deletions(-) 3041 3042commit a94bf00d0af9b423851905b031be5a645a657820 3043Author: Lasse Collin <lasse.collin@tukaani.org> 3044Date: 2008-12-12 22:43:21 +0200 3045 3046 Some adjustments to GCC warning flags. The important change 3047 is the removal of -pedantic. It messes up -Werror (which I 3048 really want to keep so that I don't miss any warnings) with 3049 printf format strings that are in POSIX but not in C99. 3050 3051 configure.ac | 8 +++++--- 3052 1 files changed, 5 insertions(+), 3 deletions(-) 3053 3054commit 8582d392baacd2cdac07ca60041f8c661323676d 3055Author: Lasse Collin <lasse.collin@tukaani.org> 3056Date: 2008-12-10 01:31:00 +0200 3057 3058 Remove obsolete comment. 3059 3060 src/xz/message.c | 1 - 3061 1 files changed, 0 insertions(+), 1 deletions(-) 3062 3063commit b1ae6dd731ea3636c3c2bfc7aefa71457d3328f1 3064Author: Lasse Collin <lasse.collin@tukaani.org> 3065Date: 2008-12-10 01:27:15 +0200 3066 3067 Use "decompression" consistently in --long-help. 3068 3069 src/xz/message.c | 2 +- 3070 1 files changed, 1 insertions(+), 1 deletions(-) 3071 3072commit 1ea9e7f15afd5d3981e2432710e932320597bca9 3073Author: Lasse Collin <lasse.collin@tukaani.org> 3074Date: 2008-12-10 01:23:58 +0200 3075 3076 Added preset=NUM to --lzma1 and --lzma2. This makes it easy 3077 to take a preset as a template and modify it a little. 3078 3079 src/xz/message.c | 1 + 3080 src/xz/options.c | 8 ++++++++ 3081 2 files changed, 9 insertions(+), 0 deletions(-) 3082 3083commit bceb3918dbb21f34976bfdd4c171a81319de71f7 3084Author: Lasse Collin <lasse.collin@tukaani.org> 3085Date: 2008-12-09 17:43:31 +0200 3086 3087 Put the file format specification into the public domain. 3088 Same will be done to the actual code later. 3089 3090 doc/file-format.txt | 24 +++++++++--------------- 3091 1 files changed, 9 insertions(+), 15 deletions(-) 3092 3093commit 6efa2d80d46a38861016f41f0eb6fa2ec9260fe6 3094Author: Lasse Collin <lasse.collin@tukaani.org> 3095Date: 2008-12-09 17:41:49 +0200 3096 3097 Make the memusage functions of LZMA1 and LZMA2 encoders 3098 to validate the filter options. Add missing validation 3099 to LZMA2 encoder when options are changed in the middle 3100 of encoding. 3101 3102 src/liblzma/lzma/lzma2_encoder.c | 5 +++- 3103 src/liblzma/lzma/lzma_encoder.c | 44 +++++++++++++++++++++++++------------ 3104 src/liblzma/lzma/lzma_encoder.h | 2 +- 3105 3 files changed, 35 insertions(+), 16 deletions(-) 3106 3107commit f20a03206b71ff01b827bb7a932411d6a6a4e06a 3108Author: Lasse Collin <lasse.collin@tukaani.org> 3109Date: 2008-12-09 10:36:24 +0200 3110 3111 Updated THANKS. 3112 3113 THANKS | 1 + 3114 1 files changed, 1 insertions(+), 0 deletions(-) 3115 3116commit ef7890d56453dca1aeb2e12db29b7e418d93dde4 3117Author: Lasse Collin <lasse.collin@tukaani.org> 3118Date: 2008-12-01 23:04:12 +0200 3119 3120 In command line tool, take advantage of memusage calculation's 3121 ability to also validate the filter chain and options (not 3122 implemented yet for all filters). 3123 3124 src/xz/process.c | 8 ++++---- 3125 1 files changed, 4 insertions(+), 4 deletions(-) 3126 3127commit ccd57afa09e332d664d6d6a7498702791ea5f659 3128Author: Lasse Collin <lasse.collin@tukaani.org> 3129Date: 2008-12-01 22:59:28 +0200 3130 3131 Validate the filter chain before checking filter-specific 3132 memory usage. 3133 3134 src/liblzma/common/filter_common.c | 14 ++++++++++---- 3135 1 files changed, 10 insertions(+), 4 deletions(-) 3136 3137commit c596fda40b62fe1683d0ac34d0c673dcaae2aa15 3138Author: Lasse Collin <lasse.collin@tukaani.org> 3139Date: 2008-12-01 22:58:22 +0200 3140 3141 Make the memusage functions of LZMA1 and LZMA2 decoders 3142 to validate the filter options. 3143 3144 src/liblzma/lzma/lzma2_decoder.c | 7 ++----- 3145 src/liblzma/lzma/lzma_decoder.c | 14 ++++++++++---- 3146 src/liblzma/lzma/lzma_decoder.h | 5 +++++ 3147 3 files changed, 17 insertions(+), 9 deletions(-) 3148 3149commit c58f469be5bb9b0bdab825c6687445fd553f4f3a 3150Author: Lasse Collin <lasse.collin@tukaani.org> 3151Date: 2008-12-01 22:55:18 +0200 3152 3153 Added the changes for Delta filter that should have been 3154 part of 656ec87882ee74b192c4ea4a233a235eca7b04d4. 3155 3156 src/liblzma/common/filter_decoder.c | 2 +- 3157 src/liblzma/common/filter_encoder.c | 2 +- 3158 2 files changed, 2 insertions(+), 2 deletions(-) 3159 3160commit cd708015202dbf7585b84a8781462a20c42a324b 3161Author: Lasse Collin <lasse.collin@tukaani.org> 3162Date: 2008-12-01 22:50:28 +0200 3163 3164 LZMA2 decoder cleanups. Make it require new LZMA properties 3165 also in the first LZMA chunk after a dictionary reset in 3166 uncompressed chunk. 3167 3168 src/liblzma/lzma/lzma2_decoder.c | 95 ++++++++++++++++--------------------- 3169 1 files changed, 41 insertions(+), 54 deletions(-) 3170 3171commit 656ec87882ee74b192c4ea4a233a235eca7b04d4 3172Author: Lasse Collin <lasse.collin@tukaani.org> 3173Date: 2008-12-01 16:30:11 +0200 3174 3175 Added lzma_delta_coder_memusage() which also validates 3176 the options. 3177 3178 src/liblzma/delta/Makefile.am | 3 +- 3179 src/liblzma/delta/delta_common.c | 28 +++++++++++++++++------ 3180 src/liblzma/delta/delta_common.h | 19 +--------------- 3181 src/liblzma/delta/delta_decoder.c | 2 +- 3182 src/liblzma/delta/delta_decoder.h | 2 +- 3183 src/liblzma/delta/delta_encoder.c | 14 +++-------- 3184 src/liblzma/delta/delta_encoder.h | 2 +- 3185 src/liblzma/delta/delta_private.h | 44 +++++++++++++++++++++++++++++++++++++ 3186 8 files changed, 75 insertions(+), 39 deletions(-) 3187 3188commit 691a9155b7a28882baf37e9d1e969e32e91dbc7a 3189Author: Lasse Collin <lasse.collin@tukaani.org> 3190Date: 2008-11-29 10:03:49 +0200 3191 3192 Automake includes the m4 directory, so don't add it in 3193 Makefile.am separately. 3194 3195 Updated THANKS. 3196 3197 Makefile.am | 1 - 3198 THANKS | 1 + 3199 2 files changed, 1 insertions(+), 1 deletions(-) 3200 3201commit c7007ddf06ac2b0e018d71d281c21b99f16e7ae0 3202Author: Lasse Collin <lasse.collin@tukaani.org> 3203Date: 2008-11-28 12:00:48 +0200 3204 3205 Tested using COLUMNS environment variable to avoid broken 3206 progress indicator but since COLUMNS isn't usually available, 3207 the code was left commented out. 3208 3209 src/xz/message.c | 14 +++++++++----- 3210 1 files changed, 9 insertions(+), 5 deletions(-) 3211 3212commit ae65dcfde27014e4d811e1a1308aa5d0fe8debbd 3213Author: Lasse Collin <lasse.collin@tukaani.org> 3214Date: 2008-11-27 19:28:59 +0200 3215 3216 Cleanups to message.c. 3217 3218 src/xz/message.c | 47 ++++++++++++++++++----------------------------- 3219 1 files changed, 18 insertions(+), 29 deletions(-) 3220 3221commit a8368b75cdcd5427299001cc42839287f27b244d 3222Author: Lasse Collin <lasse.collin@tukaani.org> 3223Date: 2008-11-25 02:37:47 +0200 3224 3225 Remove the nowadays unneeded memory limitting malloc() wrapper. 3226 3227 src/liblzma/api/Makefile.am | 1 - 3228 src/liblzma/api/lzma.h | 1 - 3229 src/liblzma/api/lzma/memlimit.h | 207 ------------------------- 3230 src/liblzma/common/Makefile.am | 1 - 3231 src/liblzma/common/memory_limiter.c | 288 ----------------------------------- 3232 tests/Makefile.am | 2 - 3233 tests/test_memlimit.c | 114 -------------- 3234 7 files changed, 0 insertions(+), 614 deletions(-) 3235 3236commit 69472ee5f055a2bb6f28106f0923e1461fd1d080 3237Author: Lasse Collin <lasse.collin@tukaani.org> 3238Date: 2008-11-23 15:09:03 +0200 3239 3240 VLI encoder and decoder cleanups. Made encoder return 3241 LZMA_PROG_ERROR in single-call mode if there's no output 3242 space. 3243 3244 src/liblzma/common/vli_decoder.c | 15 +++++++++------ 3245 src/liblzma/common/vli_encoder.c | 31 ++++++++++++++++++++++++------- 3246 2 files changed, 33 insertions(+), 13 deletions(-) 3247 3248commit 4249c8c15a08f55b51b7012e6aaafce3aa9eb650 3249Author: Lasse Collin <lasse.collin@tukaani.org> 3250Date: 2008-11-22 17:44:33 +0200 3251 3252 Typo fix 3253 3254 src/xz/process.c | 2 +- 3255 1 files changed, 1 insertions(+), 1 deletions(-) 3256 3257commit 6d1d6f4598d121253dbe1084c6866b66e95c361b 3258Author: Lasse Collin <lasse.collin@tukaani.org> 3259Date: 2008-11-20 22:59:10 +0200 3260 3261 Support NetBSD's errno for O_NOFOLLOW. 3262 3263 src/xz/io.c | 8 ++++++++ 3264 1 files changed, 8 insertions(+), 0 deletions(-) 3265 3266commit f901a290eef67b8ea4720ccdf5f46edf775ed9d7 3267Author: Lasse Collin <lasse.collin@tukaani.org> 3268Date: 2008-11-20 18:05:52 +0200 3269 3270 Build xzdec and lzmadec from xzdec.c. xzdec supports only .xz 3271 files and lzmadec only .lzma files. 3272 3273 src/xzdec/Makefile.am | 7 +- 3274 src/xzdec/xzdec.c | 311 +++++++++++++++++++++---------------------------- 3275 2 files changed, 140 insertions(+), 178 deletions(-) 3276 3277commit 86a0ed8f01c8ed44721223f885e679c71b7bb94c 3278Author: Lasse Collin <lasse.collin@tukaani.org> 3279Date: 2008-11-20 11:01:29 +0200 3280 3281 Minor cleanups to xzdec. 3282 3283 src/xzdec/xzdec.c | 20 ++++++++++---------- 3284 1 files changed, 10 insertions(+), 10 deletions(-) 3285 3286commit 54f716ba8905d09752dcd1519455a40bd21d5317 3287Author: Lasse Collin <lasse.collin@tukaani.org> 3288Date: 2008-11-19 23:55:22 +0200 3289 3290 Added missing check for uint16_t. 3291 3292 configure.ac | 1 + 3293 1 files changed, 1 insertions(+), 0 deletions(-) 3294 3295commit 1880a3927b23f265f63b2adb86fbdb81ea09eb06 3296Author: Lasse Collin <lasse.collin@tukaani.org> 3297Date: 2008-11-19 23:52:24 +0200 3298 3299 Renamed lzma to xz and lzmadec to xzdec. We create symlinks 3300 lzma, unlzma, and lzcat in "make install" for backwards 3301 compatibility with LZMA Utils 4.32.x; I'm not sure if this 3302 should be the default though. 3303 3304 configure.ac | 4 +- 3305 po/POTFILES.in | 21 +- 3306 src/Makefile.am | 2 +- 3307 src/lzma/Makefile.am | 72 ---- 3308 src/lzma/args.c | 500 -------------------------- 3309 src/lzma/args.h | 56 --- 3310 src/lzma/hardware.c | 122 ------- 3311 src/lzma/hardware.h | 45 --- 3312 src/lzma/io.c | 658 ---------------------------------- 3313 src/lzma/io.h | 97 ----- 3314 src/lzma/list.c | 477 ------------------------- 3315 src/lzma/main.c | 402 --------------------- 3316 src/lzma/main.h | 60 ---- 3317 src/lzma/message.c | 892 ----------------------------------------------- 3318 src/lzma/message.h | 132 ------- 3319 src/lzma/options.c | 352 ------------------- 3320 src/lzma/options.h | 46 --- 3321 src/lzma/private.h | 52 --- 3322 src/lzma/process.c | 391 --------------------- 3323 src/lzma/process.h | 70 ---- 3324 src/lzma/suffix.c | 213 ----------- 3325 src/lzma/suffix.h | 40 --- 3326 src/lzma/util.c | 199 ----------- 3327 src/lzma/util.h | 71 ---- 3328 src/lzmadec/Makefile.am | 29 -- 3329 src/lzmadec/lzmadec.c | 492 -------------------------- 3330 src/xz/Makefile.am | 74 ++++ 3331 src/xz/args.c | 500 ++++++++++++++++++++++++++ 3332 src/xz/args.h | 56 +++ 3333 src/xz/hardware.c | 122 +++++++ 3334 src/xz/hardware.h | 45 +++ 3335 src/xz/io.c | 658 ++++++++++++++++++++++++++++++++++ 3336 src/xz/io.h | 97 +++++ 3337 src/xz/list.c | 477 +++++++++++++++++++++++++ 3338 src/xz/main.c | 402 +++++++++++++++++++++ 3339 src/xz/main.h | 60 ++++ 3340 src/xz/message.c | 892 +++++++++++++++++++++++++++++++++++++++++++++++ 3341 src/xz/message.h | 132 +++++++ 3342 src/xz/options.c | 352 +++++++++++++++++++ 3343 src/xz/options.h | 46 +++ 3344 src/xz/private.h | 52 +++ 3345 src/xz/process.c | 391 +++++++++++++++++++++ 3346 src/xz/process.h | 70 ++++ 3347 src/xz/suffix.c | 213 +++++++++++ 3348 src/xz/suffix.h | 40 +++ 3349 src/xz/util.c | 199 +++++++++++ 3350 src/xz/util.h | 71 ++++ 3351 src/xzdec/Makefile.am | 29 ++ 3352 src/xzdec/xzdec.c | 492 ++++++++++++++++++++++++++ 3353 tests/test_compress.sh | 29 +- 3354 tests/test_files.sh | 4 +- 3355 51 files changed, 5498 insertions(+), 5500 deletions(-) 3356 3357commit e114502b2bc371e4a45449832cb69be036360722 3358Author: Lasse Collin <lasse.collin@tukaani.org> 3359Date: 2008-11-19 20:46:52 +0200 3360 3361 Oh well, big messy commit again. Some highlights: 3362 - Updated to the latest, probably final file format version. 3363 - Command line tool reworked to not use threads anymore. 3364 Threading will probably go into liblzma anyway. 3365 - Memory usage limit is now about 30 % for uncompression 3366 and about 90 % for compression. 3367 - Progress indicator with --verbose 3368 - Simplified --help and full --long-help 3369 - Upgraded to the last LGPLv2.1+ getopt_long from gnulib. 3370 - Some bug fixes 3371 3372 THANKS | 1 + 3373 configure.ac | 48 +- 3374 debug/full_flush.c | 6 +- 3375 debug/known_sizes.c | 2 +- 3376 debug/memusage.c | 2 +- 3377 debug/sync_flush.c | 10 +- 3378 doc/file-format.txt | 260 +++++---- 3379 lib/Makefile.am | 10 +- 3380 lib/getopt.c | 14 +- 3381 lib/getopt.in.h | 226 +++++++ 3382 lib/getopt1.c | 8 +- 3383 lib/getopt_.h | 226 ------- 3384 lib/gettext.h | 240 ------- 3385 m4/getopt.m4 | 64 +-- 3386 src/common/bswap.h | 15 +- 3387 src/common/physmem.h | 4 + 3388 src/common/sysdefs.h | 12 +- 3389 src/liblzma/api/lzma/block.h | 47 +- 3390 src/liblzma/api/lzma/filter.h | 8 + 3391 src/liblzma/api/lzma/index.h | 20 +- 3392 src/liblzma/api/lzma/index_hash.h | 4 +- 3393 src/liblzma/common/block_decoder.c | 59 +- 3394 src/liblzma/common/block_encoder.c | 41 +- 3395 src/liblzma/common/block_header_decoder.c | 31 +- 3396 src/liblzma/common/block_header_encoder.c | 69 +-- 3397 src/liblzma/common/block_util.c | 45 +- 3398 src/liblzma/common/common.h | 8 - 3399 src/liblzma/common/filter_common.c | 4 +- 3400 src/liblzma/common/index.c | 259 ++++---- 3401 src/liblzma/common/index.h | 33 +- 3402 src/liblzma/common/index_decoder.c | 31 +- 3403 src/liblzma/common/index_encoder.c | 16 +- 3404 src/liblzma/common/index_hash.c | 68 +- 3405 src/liblzma/common/stream_decoder.c | 9 +- 3406 src/liblzma/common/stream_encoder.c | 6 +- 3407 src/liblzma/lz/lz_decoder.h | 4 +- 3408 src/liblzma/subblock/subblock_decoder.c | 3 +- 3409 src/lzma/Makefile.am | 9 +- 3410 src/lzma/alloc.c | 106 --- 3411 src/lzma/alloc.h | 42 -- 3412 src/lzma/args.c | 531 +++++++--------- 3413 src/lzma/args.h | 42 +- 3414 src/lzma/error.c | 162 ----- 3415 src/lzma/error.h | 67 -- 3416 src/lzma/hardware.c | 75 ++- 3417 src/lzma/hardware.h | 16 +- 3418 src/lzma/help.c | 170 ----- 3419 src/lzma/help.h | 32 - 3420 src/lzma/io.c | 757 +++++++++++----------- 3421 src/lzma/io.h | 51 ++- 3422 src/lzma/main.c | 392 ++++++++---- 3423 src/lzma/main.h | 60 ++ 3424 src/lzma/message.c | 892 ++++++++++++++++++++++++++ 3425 src/lzma/message.h | 132 ++++ 3426 src/lzma/options.c | 42 +- 3427 src/lzma/options.h | 6 +- 3428 src/lzma/private.h | 28 +- 3429 src/lzma/process.c | 525 +++++++-------- 3430 src/lzma/process.h | 40 ++ 3431 src/lzma/suffix.c | 52 +- 3432 src/lzma/suffix.h | 17 +- 3433 src/lzma/util.c | 100 ++-- 3434 src/lzma/util.h | 43 ++- 3435 src/lzmadec/lzmadec.c | 36 +- 3436 tests/files/README | 12 +- 3437 tests/files/bad-1-block_header-1.xz | Bin 64 -> 64 bytes 3438 tests/files/bad-1-block_header-2.xz | Bin 64 -> 64 bytes 3439 tests/files/bad-1-block_header-3.xz | Bin 68 -> 68 bytes 3440 tests/files/bad-1-block_header-4.xz | Bin 72 -> 76 bytes 3441 tests/files/bad-1-block_header-5.xz | Bin 0 -> 72 bytes 3442 tests/files/bad-1-check-crc32.xz | Bin 68 -> 68 bytes 3443 tests/files/bad-1-check-crc64.xz | Bin 72 -> 72 bytes 3444 tests/files/bad-1-check-sha256.xz | Bin 96 -> 96 bytes 3445 tests/files/bad-1-lzma2-1.xz | Bin 64 -> 64 bytes 3446 tests/files/bad-1-lzma2-2.xz | Bin 424 -> 424 bytes 3447 tests/files/bad-1-lzma2-3.xz | Bin 424 -> 424 bytes 3448 tests/files/bad-1-lzma2-4.xz | Bin 408 -> 408 bytes 3449 tests/files/bad-1-lzma2-5.xz | Bin 408 -> 408 bytes 3450 tests/files/bad-1-lzma2-6.xz | Bin 68 -> 68 bytes 3451 tests/files/bad-1-lzma2-7.xz | Bin 408 -> 408 bytes 3452 tests/files/bad-1-stream_flags-1.xz | Bin 68 -> 68 bytes 3453 tests/files/bad-1-stream_flags-2.xz | Bin 68 -> 68 bytes 3454 tests/files/bad-1-stream_flags-3.xz | Bin 68 -> 68 bytes 3455 tests/files/bad-1-vli-1.xz | Bin 72 -> 72 bytes 3456 tests/files/bad-1-vli-2.xz | Bin 72 -> 76 bytes 3457 tests/files/bad-2-compressed_data_padding.xz | Bin 92 -> 92 bytes 3458 tests/files/bad-2-index-1.xz | Bin 92 -> 92 bytes 3459 tests/files/bad-2-index-2.xz | Bin 92 -> 92 bytes 3460 tests/files/bad-2-index-3.xz | Bin 92 -> 92 bytes 3461 tests/files/bad-2-index-4.xz | Bin 92 -> 92 bytes 3462 tests/files/bad-2-index-5.xz | Bin 0 -> 92 bytes 3463 tests/files/good-1-3delta-lzma2.xz | Bin 528 -> 528 bytes 3464 tests/files/good-1-block_header-1.xz | Bin 72 -> 72 bytes 3465 tests/files/good-1-block_header-2.xz | Bin 68 -> 68 bytes 3466 tests/files/good-1-block_header-3.xz | Bin 68 -> 68 bytes 3467 tests/files/good-1-check-crc32.xz | Bin 68 -> 68 bytes 3468 tests/files/good-1-check-crc64.xz | Bin 72 -> 72 bytes 3469 tests/files/good-1-check-none.xz | Bin 64 -> 64 bytes 3470 tests/files/good-1-check-sha256.xz | Bin 96 -> 96 bytes 3471 tests/files/good-1-delta-lzma2.tiff.xz | Bin 51312 -> 51316 bytes 3472 tests/files/good-1-lzma2-1.xz | Bin 424 -> 424 bytes 3473 tests/files/good-1-lzma2-2.xz | Bin 424 -> 424 bytes 3474 tests/files/good-1-lzma2-3.xz | Bin 408 -> 408 bytes 3475 tests/files/good-1-sparc-lzma2.xz | Bin 2292 -> 2296 bytes 3476 tests/files/good-1-x86-lzma2.xz | Bin 1936 -> 1936 bytes 3477 tests/files/good-2-lzma2.xz | Bin 92 -> 92 bytes 3478 tests/files/unsupported-block_header.xz | Bin 68 -> 68 bytes 3479 tests/files/unsupported-check.xz | Bin 68 -> 68 bytes 3480 tests/files/unsupported-filter_flags-1.xz | Bin 68 -> 68 bytes 3481 tests/files/unsupported-filter_flags-2.xz | Bin 68 -> 68 bytes 3482 tests/files/unsupported-filter_flags-3.xz | Bin 68 -> 68 bytes 3483 tests/test_block_header.c | 16 +- 3484 tests/test_index.c | 42 +- 3485 113 files changed, 3462 insertions(+), 2946 deletions(-) 3486 3487commit 3c3905b53462ae235c9438d86a4dc51086410932 3488Author: Lasse Collin <lasse.collin@tukaani.org> 3489Date: 2008-10-09 11:12:29 +0300 3490 3491 Fixed the test that should have been fixed as part 3492 of 1e8e4fd1f3e50129b4541406ad765d2aa1233943. 3493 3494 tests/test_block_header.c | 2 +- 3495 1 files changed, 1 insertions(+), 1 deletions(-) 3496 3497commit 0f295bf7a3ece01f667caae318cc3e3424085886 3498Author: Lasse Collin <lasse.collin@tukaani.org> 3499Date: 2008-10-07 16:42:18 +0300 3500 3501 Fixed some help messages. 3502 3503 src/lzma/help.c | 6 +++--- 3504 1 files changed, 3 insertions(+), 3 deletions(-) 3505 3506commit 1e8e4fd1f3e50129b4541406ad765d2aa1233943 3507Author: Lasse Collin <lasse.collin@tukaani.org> 3508Date: 2008-10-07 09:40:31 +0300 3509 3510 Made the preset numbering more logical in liblzma API. 3511 3512 src/liblzma/api/lzma/container.h | 20 ++++++++++---------- 3513 src/liblzma/api/lzma/lzma.h | 2 +- 3514 src/liblzma/lzma/lzma_encoder_presets.c | 3 ++- 3515 src/lzma/args.c | 8 ++++---- 3516 src/lzma/args.h | 2 +- 3517 5 files changed, 18 insertions(+), 17 deletions(-) 3518 3519commit 5e4df4c3c09c82bbbb1a916784e3dc717ca4ff81 3520Author: Lasse Collin <lasse.collin@tukaani.org> 3521Date: 2008-10-03 19:36:09 +0300 3522 3523 Removed fi from po/LINGUAS. 3524 3525 po/LINGUAS | 1 - 3526 1 files changed, 0 insertions(+), 1 deletions(-) 3527 3528commit fcfb86c7770328cfffa2e83b176af9a1ba2d9128 3529Author: Lasse Collin <lasse.collin@tukaani.org> 3530Date: 2008-10-03 07:06:48 +0300 3531 3532 Fixed suffix handling with --format=raw. 3533 3534 src/lzma/suffix.c | 28 +++++++++++++++++++--------- 3535 1 files changed, 19 insertions(+), 9 deletions(-) 3536 3537commit bd137524f2f50e30ba054f42f1f6536cd3cee920 3538Author: Lasse Collin <lasse.collin@tukaani.org> 3539Date: 2008-10-02 22:51:46 +0300 3540 3541 Initial changes to change the suffix of the new format to .xz. 3542 This also fixes a bug related to --suffix option. Some issues 3543 with suffixes with --format=raw were not fixed. 3544 3545 src/lzma/args.c | 67 ++++++++++++++++++++++++++++++------------- 3546 src/lzma/args.h | 13 ++++---- 3547 src/lzma/help.c | 4 +- 3548 src/lzma/process.c | 24 +++++++++------ 3549 src/lzma/suffix.c | 74 +++++++++++++++++++++++++++++++++++++++-------- 3550 tests/test_compress.sh | 3 +- 3551 6 files changed, 133 insertions(+), 52 deletions(-) 3552 3553commit 4c321a41c482821aa3c4d64cdf886a6ed904d844 3554Author: Lasse Collin <lasse.collin@tukaani.org> 3555Date: 2008-09-30 17:43:55 +0300 3556 3557 Renamed the test files from .lzma suffix to .xz suffix. 3558 3559 tests/files/README | 128 ++++++++++++------------ 3560 tests/files/bad-0-backward_size.lzma | Bin 32 -> 0 bytes 3561 tests/files/bad-0-backward_size.xz | Bin 0 -> 32 bytes 3562 tests/files/bad-0-empty-truncated.lzma | Bin 31 -> 0 bytes 3563 tests/files/bad-0-empty-truncated.xz | Bin 0 -> 31 bytes 3564 tests/files/bad-0-footer_magic.lzma | Bin 32 -> 0 bytes 3565 tests/files/bad-0-footer_magic.xz | Bin 0 -> 32 bytes 3566 tests/files/bad-0-header_magic.lzma | Bin 32 -> 0 bytes 3567 tests/files/bad-0-header_magic.xz | Bin 0 -> 32 bytes 3568 tests/files/bad-0-nonempty_index.lzma | Bin 32 -> 0 bytes 3569 tests/files/bad-0-nonempty_index.xz | Bin 0 -> 32 bytes 3570 tests/files/bad-0cat-alone.lzma | Bin 55 -> 0 bytes 3571 tests/files/bad-0cat-alone.xz | Bin 0 -> 55 bytes 3572 tests/files/bad-0cat-header_magic.lzma | Bin 64 -> 0 bytes 3573 tests/files/bad-0cat-header_magic.xz | Bin 0 -> 64 bytes 3574 tests/files/bad-0catpad-empty.lzma | Bin 69 -> 0 bytes 3575 tests/files/bad-0catpad-empty.xz | Bin 0 -> 69 bytes 3576 tests/files/bad-0pad-empty.lzma | Bin 37 -> 0 bytes 3577 tests/files/bad-0pad-empty.xz | Bin 0 -> 37 bytes 3578 tests/files/bad-1-block_header-1.lzma | Bin 64 -> 0 bytes 3579 tests/files/bad-1-block_header-1.xz | Bin 0 -> 64 bytes 3580 tests/files/bad-1-block_header-2.lzma | Bin 64 -> 0 bytes 3581 tests/files/bad-1-block_header-2.xz | Bin 0 -> 64 bytes 3582 tests/files/bad-1-block_header-3.lzma | Bin 68 -> 0 bytes 3583 tests/files/bad-1-block_header-3.xz | Bin 0 -> 68 bytes 3584 tests/files/bad-1-block_header-4.lzma | Bin 72 -> 0 bytes 3585 tests/files/bad-1-block_header-4.xz | Bin 0 -> 72 bytes 3586 tests/files/bad-1-check-crc32.lzma | Bin 68 -> 0 bytes 3587 tests/files/bad-1-check-crc32.xz | Bin 0 -> 68 bytes 3588 tests/files/bad-1-check-crc64.lzma | Bin 72 -> 0 bytes 3589 tests/files/bad-1-check-crc64.xz | Bin 0 -> 72 bytes 3590 tests/files/bad-1-check-sha256.lzma | Bin 96 -> 0 bytes 3591 tests/files/bad-1-check-sha256.xz | Bin 0 -> 96 bytes 3592 tests/files/bad-1-lzma2-1.lzma | Bin 64 -> 0 bytes 3593 tests/files/bad-1-lzma2-1.xz | Bin 0 -> 64 bytes 3594 tests/files/bad-1-lzma2-2.lzma | Bin 424 -> 0 bytes 3595 tests/files/bad-1-lzma2-2.xz | Bin 0 -> 424 bytes 3596 tests/files/bad-1-lzma2-3.lzma | Bin 424 -> 0 bytes 3597 tests/files/bad-1-lzma2-3.xz | Bin 0 -> 424 bytes 3598 tests/files/bad-1-lzma2-4.lzma | Bin 408 -> 0 bytes 3599 tests/files/bad-1-lzma2-4.xz | Bin 0 -> 408 bytes 3600 tests/files/bad-1-lzma2-5.lzma | Bin 408 -> 0 bytes 3601 tests/files/bad-1-lzma2-5.xz | Bin 0 -> 408 bytes 3602 tests/files/bad-1-lzma2-6.lzma | Bin 68 -> 0 bytes 3603 tests/files/bad-1-lzma2-6.xz | Bin 0 -> 68 bytes 3604 tests/files/bad-1-lzma2-7.lzma | Bin 408 -> 0 bytes 3605 tests/files/bad-1-lzma2-7.xz | Bin 0 -> 408 bytes 3606 tests/files/bad-1-stream_flags-1.lzma | Bin 68 -> 0 bytes 3607 tests/files/bad-1-stream_flags-1.xz | Bin 0 -> 68 bytes 3608 tests/files/bad-1-stream_flags-2.lzma | Bin 68 -> 0 bytes 3609 tests/files/bad-1-stream_flags-2.xz | Bin 0 -> 68 bytes 3610 tests/files/bad-1-stream_flags-3.lzma | Bin 68 -> 0 bytes 3611 tests/files/bad-1-stream_flags-3.xz | Bin 0 -> 68 bytes 3612 tests/files/bad-1-vli-1.lzma | Bin 72 -> 0 bytes 3613 tests/files/bad-1-vli-1.xz | Bin 0 -> 72 bytes 3614 tests/files/bad-1-vli-2.lzma | Bin 72 -> 0 bytes 3615 tests/files/bad-1-vli-2.xz | Bin 0 -> 72 bytes 3616 tests/files/bad-2-compressed_data_padding.lzma | Bin 92 -> 0 bytes 3617 tests/files/bad-2-compressed_data_padding.xz | Bin 0 -> 92 bytes 3618 tests/files/bad-2-index-1.lzma | Bin 92 -> 0 bytes 3619 tests/files/bad-2-index-1.xz | Bin 0 -> 92 bytes 3620 tests/files/bad-2-index-2.lzma | Bin 92 -> 0 bytes 3621 tests/files/bad-2-index-2.xz | Bin 0 -> 92 bytes 3622 tests/files/bad-2-index-3.lzma | Bin 92 -> 0 bytes 3623 tests/files/bad-2-index-3.xz | Bin 0 -> 92 bytes 3624 tests/files/bad-2-index-4.lzma | Bin 92 -> 0 bytes 3625 tests/files/bad-2-index-4.xz | Bin 0 -> 92 bytes 3626 tests/files/good-0-empty.lzma | Bin 32 -> 0 bytes 3627 tests/files/good-0-empty.xz | Bin 0 -> 32 bytes 3628 tests/files/good-0cat-empty.lzma | Bin 64 -> 0 bytes 3629 tests/files/good-0cat-empty.xz | Bin 0 -> 64 bytes 3630 tests/files/good-0catpad-empty.lzma | Bin 68 -> 0 bytes 3631 tests/files/good-0catpad-empty.xz | Bin 0 -> 68 bytes 3632 tests/files/good-0pad-empty.lzma | Bin 36 -> 0 bytes 3633 tests/files/good-0pad-empty.xz | Bin 0 -> 36 bytes 3634 tests/files/good-1-3delta-lzma2.lzma | Bin 528 -> 0 bytes 3635 tests/files/good-1-3delta-lzma2.xz | Bin 0 -> 528 bytes 3636 tests/files/good-1-block_header-1.lzma | Bin 72 -> 0 bytes 3637 tests/files/good-1-block_header-1.xz | Bin 0 -> 72 bytes 3638 tests/files/good-1-block_header-2.lzma | Bin 68 -> 0 bytes 3639 tests/files/good-1-block_header-2.xz | Bin 0 -> 68 bytes 3640 tests/files/good-1-block_header-3.lzma | Bin 68 -> 0 bytes 3641 tests/files/good-1-block_header-3.xz | Bin 0 -> 68 bytes 3642 tests/files/good-1-check-crc32.lzma | Bin 68 -> 0 bytes 3643 tests/files/good-1-check-crc32.xz | Bin 0 -> 68 bytes 3644 tests/files/good-1-check-crc64.lzma | Bin 72 -> 0 bytes 3645 tests/files/good-1-check-crc64.xz | Bin 0 -> 72 bytes 3646 tests/files/good-1-check-none.lzma | Bin 64 -> 0 bytes 3647 tests/files/good-1-check-none.xz | Bin 0 -> 64 bytes 3648 tests/files/good-1-check-sha256.lzma | Bin 96 -> 0 bytes 3649 tests/files/good-1-check-sha256.xz | Bin 0 -> 96 bytes 3650 tests/files/good-1-delta-lzma2.tiff.lzma | Bin 51312 -> 0 bytes 3651 tests/files/good-1-delta-lzma2.tiff.xz | Bin 0 -> 51312 bytes 3652 tests/files/good-1-lzma2-1.lzma | Bin 424 -> 0 bytes 3653 tests/files/good-1-lzma2-1.xz | Bin 0 -> 424 bytes 3654 tests/files/good-1-lzma2-2.lzma | Bin 424 -> 0 bytes 3655 tests/files/good-1-lzma2-2.xz | Bin 0 -> 424 bytes 3656 tests/files/good-1-lzma2-3.lzma | Bin 408 -> 0 bytes 3657 tests/files/good-1-lzma2-3.xz | Bin 0 -> 408 bytes 3658 tests/files/good-1-sparc-lzma2.lzma | Bin 2292 -> 0 bytes 3659 tests/files/good-1-sparc-lzma2.xz | Bin 0 -> 2292 bytes 3660 tests/files/good-1-x86-lzma2.lzma | Bin 1936 -> 0 bytes 3661 tests/files/good-1-x86-lzma2.xz | Bin 0 -> 1936 bytes 3662 tests/files/good-2-lzma2.lzma | Bin 92 -> 0 bytes 3663 tests/files/good-2-lzma2.xz | Bin 0 -> 92 bytes 3664 tests/files/unsupported-block_header.lzma | Bin 68 -> 0 bytes 3665 tests/files/unsupported-block_header.xz | Bin 0 -> 68 bytes 3666 tests/files/unsupported-check.lzma | Bin 68 -> 0 bytes 3667 tests/files/unsupported-check.xz | Bin 0 -> 68 bytes 3668 tests/files/unsupported-filter_flags-1.lzma | Bin 68 -> 0 bytes 3669 tests/files/unsupported-filter_flags-1.xz | Bin 0 -> 68 bytes 3670 tests/files/unsupported-filter_flags-2.lzma | Bin 68 -> 0 bytes 3671 tests/files/unsupported-filter_flags-2.xz | Bin 0 -> 68 bytes 3672 tests/files/unsupported-filter_flags-3.lzma | Bin 68 -> 0 bytes 3673 tests/files/unsupported-filter_flags-3.xz | Bin 0 -> 68 bytes 3674 tests/test_files.sh | 6 +- 3675 116 files changed, 66 insertions(+), 68 deletions(-) 3676 3677commit 8e60c889a2816a63013a35c99ce26bf28f5b78eb 3678Author: Lasse Collin <lasse.collin@tukaani.org> 3679Date: 2008-09-30 13:57:44 +0300 3680 3681 Fixed Stream decoder to actually use the first_stream variable. 3682 3683 src/liblzma/common/stream_decoder.c | 5 +++++ 3684 1 files changed, 5 insertions(+), 0 deletions(-) 3685 3686commit 3bdbc12c054d1961133ee19802af7dd3c3494543 3687Author: Lasse Collin <lasse.collin@tukaani.org> 3688Date: 2008-09-30 13:56:57 +0300 3689 3690 Added one more test file. 3691 3692 tests/files/README | 15 +++++++++++---- 3693 tests/files/bad-0cat-header_magic.lzma | Bin 0 -> 64 bytes 3694 2 files changed, 11 insertions(+), 4 deletions(-) 3695 3696commit a6639022fdc536e5659b070a465221b4cf7c51fa 3697Author: Lasse Collin <lasse.collin@tukaani.org> 3698Date: 2008-09-30 13:34:07 +0300 3699 3700 Fixed uninitialized variable in Stream decoder. 3701 3702 src/liblzma/common/stream_decoder.c | 1 + 3703 1 files changed, 1 insertions(+), 0 deletions(-) 3704 3705commit ed3709000a3f17ecefab29b2235d7e2221b00003 3706Author: Lasse Collin <lasse.collin@tukaani.org> 3707Date: 2008-09-30 13:27:28 +0300 3708 3709 Added two test files. 3710 3711 tests/files/README | 6 ++++++ 3712 tests/files/bad-0-footer_magic.lzma | Bin 0 -> 32 bytes 3713 tests/files/bad-0-header_magic.lzma | Bin 0 -> 32 bytes 3714 3 files changed, 6 insertions(+), 0 deletions(-) 3715 3716commit ea560b0ea80525752bdcd0074d24f8dc170bbe29 3717Author: Lasse Collin <lasse.collin@tukaani.org> 3718Date: 2008-09-27 23:49:24 +0300 3719 3720 Fix conflicting Subblock helper filter's ID. 3721 3722 src/liblzma/common/common.h | 2 +- 3723 1 files changed, 1 insertions(+), 1 deletions(-) 3724 3725commit ad97483b6e55142fd8d5c041db057017a891cd95 3726Author: Lasse Collin <lasse.collin@tukaani.org> 3727Date: 2008-09-27 23:37:13 +0300 3728 3729 Changed magic bytes to match the updated spec. Filename 3730 suffix wasn't changed yet. 3731 3732 src/liblzma/common/auto_decoder.c | 4 ++-- 3733 src/liblzma/common/stream_flags_common.c | 2 +- 3734 tests/files/bad-0-backward_size.lzma | Bin 32 -> 32 bytes 3735 tests/files/bad-0-empty-truncated.lzma | Bin 31 -> 31 bytes 3736 tests/files/bad-0-nonempty_index.lzma | Bin 32 -> 32 bytes 3737 tests/files/bad-0cat-alone.lzma | Bin 55 -> 55 bytes 3738 tests/files/bad-0catpad-empty.lzma | Bin 69 -> 69 bytes 3739 tests/files/bad-0pad-empty.lzma | Bin 37 -> 37 bytes 3740 tests/files/bad-1-block_header-1.lzma | Bin 64 -> 64 bytes 3741 tests/files/bad-1-block_header-2.lzma | Bin 64 -> 64 bytes 3742 tests/files/bad-1-block_header-3.lzma | Bin 68 -> 68 bytes 3743 tests/files/bad-1-block_header-4.lzma | Bin 72 -> 72 bytes 3744 tests/files/bad-1-check-crc32.lzma | Bin 68 -> 68 bytes 3745 tests/files/bad-1-check-crc64.lzma | Bin 72 -> 72 bytes 3746 tests/files/bad-1-check-sha256.lzma | Bin 96 -> 96 bytes 3747 tests/files/bad-1-lzma2-1.lzma | Bin 64 -> 64 bytes 3748 tests/files/bad-1-lzma2-2.lzma | Bin 424 -> 424 bytes 3749 tests/files/bad-1-lzma2-3.lzma | Bin 424 -> 424 bytes 3750 tests/files/bad-1-lzma2-4.lzma | Bin 408 -> 408 bytes 3751 tests/files/bad-1-lzma2-5.lzma | Bin 408 -> 408 bytes 3752 tests/files/bad-1-lzma2-6.lzma | Bin 68 -> 68 bytes 3753 tests/files/bad-1-lzma2-7.lzma | Bin 408 -> 408 bytes 3754 tests/files/bad-1-stream_flags-1.lzma | Bin 68 -> 68 bytes 3755 tests/files/bad-1-stream_flags-2.lzma | Bin 68 -> 68 bytes 3756 tests/files/bad-1-stream_flags-3.lzma | Bin 68 -> 68 bytes 3757 tests/files/bad-1-vli-1.lzma | Bin 72 -> 72 bytes 3758 tests/files/bad-1-vli-2.lzma | Bin 72 -> 72 bytes 3759 tests/files/bad-2-compressed_data_padding.lzma | Bin 92 -> 92 bytes 3760 tests/files/bad-2-index-1.lzma | Bin 92 -> 92 bytes 3761 tests/files/bad-2-index-2.lzma | Bin 92 -> 92 bytes 3762 tests/files/bad-2-index-3.lzma | Bin 92 -> 92 bytes 3763 tests/files/bad-2-index-4.lzma | Bin 92 -> 92 bytes 3764 tests/files/good-0-empty.lzma | Bin 32 -> 32 bytes 3765 tests/files/good-0cat-empty.lzma | Bin 64 -> 64 bytes 3766 tests/files/good-0catpad-empty.lzma | Bin 68 -> 68 bytes 3767 tests/files/good-0pad-empty.lzma | Bin 36 -> 36 bytes 3768 tests/files/good-1-3delta-lzma2.lzma | Bin 528 -> 528 bytes 3769 tests/files/good-1-block_header-1.lzma | Bin 72 -> 72 bytes 3770 tests/files/good-1-block_header-2.lzma | Bin 68 -> 68 bytes 3771 tests/files/good-1-block_header-3.lzma | Bin 68 -> 68 bytes 3772 tests/files/good-1-check-crc32.lzma | Bin 68 -> 68 bytes 3773 tests/files/good-1-check-crc64.lzma | Bin 72 -> 72 bytes 3774 tests/files/good-1-check-none.lzma | Bin 64 -> 64 bytes 3775 tests/files/good-1-check-sha256.lzma | Bin 96 -> 96 bytes 3776 tests/files/good-1-delta-lzma2.tiff.lzma | Bin 51312 -> 51312 bytes 3777 tests/files/good-1-lzma2-1.lzma | Bin 424 -> 424 bytes 3778 tests/files/good-1-lzma2-2.lzma | Bin 424 -> 424 bytes 3779 tests/files/good-1-lzma2-3.lzma | Bin 408 -> 408 bytes 3780 tests/files/good-1-sparc-lzma2.lzma | Bin 2292 -> 2292 bytes 3781 tests/files/good-1-x86-lzma2.lzma | Bin 1936 -> 1936 bytes 3782 tests/files/good-2-lzma2.lzma | Bin 92 -> 92 bytes 3783 tests/files/unsupported-block_header.lzma | Bin 68 -> 68 bytes 3784 tests/files/unsupported-check.lzma | Bin 68 -> 68 bytes 3785 tests/files/unsupported-filter_flags-1.lzma | Bin 68 -> 68 bytes 3786 tests/files/unsupported-filter_flags-2.lzma | Bin 68 -> 68 bytes 3787 tests/files/unsupported-filter_flags-3.lzma | Bin 68 -> 68 bytes 3788 56 files changed, 3 insertions(+), 3 deletions(-) 3789 3790commit 7a57069167e9e63394e2b095ee3a63253fcb51c7 3791Author: Lasse Collin <lasse.collin@tukaani.org> 3792Date: 2008-09-27 23:16:09 +0300 3793 3794 Remove po/fi.po since I'm not keeping it updated for now. 3795 3796 po/fi.po | 446 -------------------------------------------------------------- 3797 1 files changed, 0 insertions(+), 446 deletions(-) 3798 3799commit 018ae09df8f2fee5a7374f307df4cb42fad0b81e 3800Author: Lasse Collin <lasse.collin@tukaani.org> 3801Date: 2008-09-27 23:13:54 +0300 3802 3803 Fix also test_compress.sh. 3804 3805 tests/test_compress.sh | 6 +++--- 3806 1 files changed, 3 insertions(+), 3 deletions(-) 3807 3808commit 3a62a5fb85d2eebd8666e64ed5d364d095062858 3809Author: Lasse Collin <lasse.collin@tukaani.org> 3810Date: 2008-09-27 23:01:15 +0300 3811 3812 Fixed compilation of test_filter_flags.c, which was broken by 3813 1dcecfb09b55157b8653d747963069c8bed74f04. 3814 3815 tests/test_filter_flags.c | 16 ++++++++-------- 3816 1 files changed, 8 insertions(+), 8 deletions(-) 3817 3818commit c6ca26eef7cd07eba449035514e2b8f9ac3111c0 3819Author: Lasse Collin <lasse.collin@tukaani.org> 3820Date: 2008-09-27 19:11:02 +0300 3821 3822 Updated file format specification. It changes the suffix 3823 of the new format to .xz and removes the recently added 3824 LZMA filter. 3825 3826 doc/file-format.txt | 125 +++++++++++++-------------------------------------- 3827 1 files changed, 32 insertions(+), 93 deletions(-) 3828 3829commit 1dcecfb09b55157b8653d747963069c8bed74f04 3830Author: Lasse Collin <lasse.collin@tukaani.org> 3831Date: 2008-09-27 19:09:21 +0300 3832 3833 Some API changes, bug fixes, cleanups etc. 3834 3835 configure.ac | 18 +- 3836 debug/full_flush.c | 7 +- 3837 debug/known_sizes.c | 6 +- 3838 debug/memusage.c | 22 ++-- 3839 debug/sync_flush.c | 18 +- 3840 src/liblzma/Makefile.am | 2 +- 3841 src/liblzma/api/lzma/delta.h | 8 +- 3842 src/liblzma/api/lzma/lzma.h | 230 +++++++++++++++--------- 3843 src/liblzma/common/alignment.c | 7 +- 3844 src/liblzma/common/alone_decoder.c | 11 +- 3845 src/liblzma/common/alone_encoder.c | 9 +- 3846 src/liblzma/common/chunk_size.c | 2 +- 3847 src/liblzma/common/easy.c | 20 ++- 3848 src/liblzma/common/filter_common.c | 4 +- 3849 src/liblzma/common/filter_decoder.c | 4 +- 3850 src/liblzma/common/filter_encoder.c | 4 +- 3851 src/liblzma/common/init_encoder.c | 2 +- 3852 src/liblzma/delta/delta_common.c | 12 +- 3853 src/liblzma/delta/delta_common.h | 2 +- 3854 src/liblzma/delta/delta_decoder.c | 2 +- 3855 src/liblzma/delta/delta_encoder.c | 6 +- 3856 src/liblzma/lz/lz_encoder.c | 30 ++-- 3857 src/liblzma/lz/lz_encoder.h | 26 ++-- 3858 src/liblzma/lz/lz_encoder_mf.c | 30 ++-- 3859 src/liblzma/lzma/Makefile.am | 4 +- 3860 src/liblzma/lzma/lzma2_decoder.c | 10 +- 3861 src/liblzma/lzma/lzma2_encoder.c | 27 +-- 3862 src/liblzma/lzma/lzma_common.h | 26 +-- 3863 src/liblzma/lzma/lzma_decoder.c | 37 ++-- 3864 src/liblzma/lzma/lzma_encoder.c | 51 +++--- 3865 src/liblzma/lzma/lzma_encoder_optimum_fast.c | 10 +- 3866 src/liblzma/lzma/lzma_encoder_optimum_normal.c | 20 +- 3867 src/liblzma/lzma/lzma_encoder_presets.c | 50 ++++-- 3868 src/liblzma/rangecoder/Makefile.am | 4 +- 3869 src/liblzma/subblock/subblock_decoder.c | 2 +- 3870 src/lzma/args.c | 33 +++-- 3871 src/lzma/help.c | 17 +- 3872 src/lzma/options.c | 92 ++++++---- 3873 tests/test_block_header.c | 9 +- 3874 tests/test_compress.sh | 4 +- 3875 tests/test_filter_flags.c | 2 +- 3876 41 files changed, 482 insertions(+), 398 deletions(-) 3877 3878commit 5cc5064cae603b649c64c40125c7dd365de54c9d 3879Author: Lasse Collin <lasse.collin@tukaani.org> 3880Date: 2008-09-27 11:28:49 +0300 3881 3882 Added 7z2lzma.bash. 3883 3884 extra/7z2lzma/7z2lzma.bash | 114 ++++++++++++++++++++++++++++++++++++++++++++ 3885 1 files changed, 114 insertions(+), 0 deletions(-) 3886 3887commit f147666a5cd15542d4e427da58629f4a71cc38e1 3888Author: Lasse Collin <lasse.collin@tukaani.org> 3889Date: 2008-09-17 22:11:39 +0300 3890 3891 Miscellaneous LZ and LZMA encoder cleanups 3892 3893 src/liblzma/api/lzma/lzma.h | 14 ------ 3894 src/liblzma/lz/lz_encoder.c | 8 +++- 3895 src/liblzma/lzma/Makefile.am | 1 - 3896 src/liblzma/lzma/lzma_encoder.c | 64 +++++++++++------------------- 3897 src/liblzma/lzma/lzma_encoder_features.c | 59 --------------------------- 3898 5 files changed, 29 insertions(+), 117 deletions(-) 3899 3900commit 13d68b069849e19c33822cd8996cd6447890abb1 3901Author: Lasse Collin <lasse.collin@tukaani.org> 3902Date: 2008-09-13 13:54:00 +0300 3903 3904 LZ decoder cleanup 3905 3906 src/liblzma/lz/lz_decoder.c | 5 ++--- 3907 1 files changed, 2 insertions(+), 3 deletions(-) 3908 3909commit 13a74b78e37f16c9096ba5fe1859cc04eaa2f9f7 3910Author: Lasse Collin <lasse.collin@tukaani.org> 3911Date: 2008-09-13 12:10:43 +0300 3912 3913 Renamed constants: 3914 - LZMA_VLI_VALUE_MAX -> LZMA_VLI_MAX 3915 - LZMA_VLI_VALUE_UNKNOWN -> LZMA_VLI_UNKNOWN 3916 - LZMA_HEADER_ERRRO -> LZMA_OPTIONS_ERROR 3917 3918 debug/full_flush.c | 2 +- 3919 debug/known_sizes.c | 2 +- 3920 debug/sync_flush.c | 2 +- 3921 src/liblzma/api/lzma/alignment.h | 2 +- 3922 src/liblzma/api/lzma/base.h | 4 +- 3923 src/liblzma/api/lzma/block.h | 28 +++++++++++++------------- 3924 src/liblzma/api/lzma/container.h | 12 +++++----- 3925 src/liblzma/api/lzma/filter.h | 28 +++++++++++++------------- 3926 src/liblzma/api/lzma/index.h | 2 +- 3927 src/liblzma/api/lzma/lzma.h | 4 +- 3928 src/liblzma/api/lzma/simple.h | 2 +- 3929 src/liblzma/api/lzma/stream_flags.h | 20 +++++++++--------- 3930 src/liblzma/api/lzma/vli.h | 16 +++++++------- 3931 src/liblzma/common/alignment.c | 6 ++-- 3932 src/liblzma/common/alone_decoder.c | 2 +- 3933 src/liblzma/common/auto_decoder.c | 2 +- 3934 src/liblzma/common/block_decoder.c | 12 +++++----- 3935 src/liblzma/common/block_encoder.c | 6 ++-- 3936 src/liblzma/common/block_header_decoder.c | 16 +++++++------- 3937 src/liblzma/common/block_header_encoder.c | 24 +++++++++++----------- 3938 src/liblzma/common/block_util.c | 8 +++--- 3939 src/liblzma/common/chunk_size.c | 2 +- 3940 src/liblzma/common/easy.c | 4 +- 3941 src/liblzma/common/filter_common.c | 22 ++++++++++---------- 3942 src/liblzma/common/filter_decoder.c | 6 ++-- 3943 src/liblzma/common/filter_encoder.c | 14 ++++++------ 3944 src/liblzma/common/index.c | 24 ++++++++++------------ 3945 src/liblzma/common/index.h | 2 +- 3946 src/liblzma/common/index_hash.c | 13 +++++------ 3947 src/liblzma/common/stream_decoder.c | 4 +- 3948 src/liblzma/common/stream_encoder.c | 4 +- 3949 src/liblzma/common/stream_flags_common.c | 6 ++-- 3950 src/liblzma/common/stream_flags_decoder.c | 6 ++-- 3951 src/liblzma/common/stream_flags_encoder.c | 4 +- 3952 src/liblzma/common/vli_encoder.c | 2 +- 3953 src/liblzma/common/vli_size.c | 2 +- 3954 src/liblzma/delta/delta_common.c | 2 +- 3955 src/liblzma/delta/delta_decoder.c | 2 +- 3956 src/liblzma/delta/delta_encoder.c | 2 +- 3957 src/liblzma/lz/lz_decoder.c | 2 +- 3958 src/liblzma/lz/lz_encoder.c | 2 +- 3959 src/liblzma/lzma/lzma2_decoder.c | 6 ++-- 3960 src/liblzma/lzma/lzma_decoder.c | 14 ++++++------ 3961 src/liblzma/lzma/lzma_encoder.c | 8 +++--- 3962 src/liblzma/simple/simple_coder.c | 2 +- 3963 src/liblzma/simple/simple_decoder.c | 2 +- 3964 src/liblzma/subblock/subblock_decoder.c | 6 ++-- 3965 src/liblzma/subblock/subblock_encoder.c | 17 +++++++-------- 3966 src/lzma/args.c | 2 +- 3967 src/lzma/error.c | 2 +- 3968 src/lzma/list.c | 6 ++-- 3969 src/lzmadec/lzmadec.c | 2 +- 3970 tests/test_block.c | 8 +++--- 3971 tests/test_block_header.c | 30 ++++++++++++++-------------- 3972 tests/test_filter_flags.c | 2 +- 3973 tests/test_index.c | 2 +- 3974 tests/test_stream_flags.c | 8 +++--- 3975 tests/tests.h | 2 +- 3976 58 files changed, 220 insertions(+), 224 deletions(-) 3977 3978commit 320601b2c7b08fc7da9da18d5bf7c3c1a189b080 3979Author: Lasse Collin <lasse.collin@tukaani.org> 3980Date: 2008-09-12 22:41:40 +0300 3981 3982 Improved the Stream Flags handling API. 3983 3984 src/liblzma/api/lzma/stream_flags.h | 84 +++++++++++++++++++++++++++-- 3985 src/liblzma/common/stream_decoder.c | 5 +- 3986 src/liblzma/common/stream_encoder.c | 2 + 3987 src/liblzma/common/stream_flags_common.c | 28 +++++++--- 3988 src/liblzma/common/stream_flags_common.h | 9 +++ 3989 src/liblzma/common/stream_flags_decoder.c | 3 +- 3990 src/liblzma/common/stream_flags_encoder.c | 10 +++- 3991 tests/test_stream_flags.c | 8 ++- 3992 8 files changed, 129 insertions(+), 20 deletions(-) 3993 3994commit ec490da5228263b25bf786bb23d1008468f55b30 3995Author: Lasse Collin <lasse.collin@tukaani.org> 3996Date: 2008-09-11 23:10:44 +0300 3997 3998 Simplified debug/known_sizes.c to match the relaxed 3999 requirements of Block encoder. 4000 4001 debug/known_sizes.c | 14 +++++--------- 4002 1 files changed, 5 insertions(+), 9 deletions(-) 4003 4004commit 16e8b98f2659347edfa74afdbbb9e73311153cb9 4005Author: Lasse Collin <lasse.collin@tukaani.org> 4006Date: 2008-09-11 23:09:24 +0300 4007 4008 Remove a check from Block encoder that should have already 4009 been removed in 2ba01bfa755e47ff6af84a978e3c8d63d7d2775e. 4010 4011 src/liblzma/common/block_encoder.c | 5 ----- 4012 1 files changed, 0 insertions(+), 5 deletions(-) 4013 4014commit 5a710c3805bdf6d7e3c92e954e4e4565b27bcb13 4015Author: Lasse Collin <lasse.collin@tukaani.org> 4016Date: 2008-09-11 20:02:38 +0300 4017 4018 Remove bogus #includes. 4019 4020 src/liblzma/common/Makefile.am | 1 - 4021 src/liblzma/common/stream_decoder.c | 3 -- 4022 src/liblzma/common/stream_encoder.c | 1 - 4023 src/liblzma/common/stream_flags_decoder.h | 31 ----------------------------- 4024 4 files changed, 0 insertions(+), 36 deletions(-) 4025 4026commit 01892b2ca5f69bed0ea746e04b604030d57806bb 4027Author: Lasse Collin <lasse.collin@tukaani.org> 4028Date: 2008-09-11 10:49:14 +0300 4029 4030 Updated THANKS. 4031 4032 THANKS | 1 + 4033 1 files changed, 1 insertions(+), 0 deletions(-) 4034 4035commit 962f2231d49409fe6852e44ffe8c5dbabb04bc7d 4036Author: Lasse Collin <lasse.collin@tukaani.org> 4037Date: 2008-09-11 10:48:12 +0300 4038 4039 Fix a compiler error on big endian systems that don't 4040 support unaligned memory access. 4041 4042 src/common/integer.h | 32 ++++++++++++++++++-------------- 4043 1 files changed, 18 insertions(+), 14 deletions(-) 4044 4045commit fa3ab0df8ae7a8a1ad55b52266dc0fd387458671 4046Author: Lasse Collin <lasse.collin@tukaani.org> 4047Date: 2008-09-11 10:46:14 +0300 4048 4049 Silence a compiler warning. 4050 4051 src/lzma/process.c | 2 +- 4052 1 files changed, 1 insertions(+), 1 deletions(-) 4053 4054commit 9373e81e18822db4972819442ea4c2cb9955470b 4055Author: Lasse Collin <lasse.collin@tukaani.org> 4056Date: 2008-09-10 19:16:32 +0300 4057 4058 Bumped version to 4.999.6alpha. 4059 4060 configure.ac | 2 +- 4061 src/liblzma/api/lzma/version.h | 2 +- 4062 2 files changed, 2 insertions(+), 2 deletions(-) 4063 4064commit cb072b7c8442ba68bb0c62c0abbbe939794887a3 4065Author: Lasse Collin <lasse.collin@tukaani.org> 4066Date: 2008-09-10 17:02:00 +0300 4067 4068 Check for LZMA_FILTER_RESERVED_START in filter_flags_encoder.c. 4069 Use LZMA_PROG_ERROR instead of LZMA_HEADER_ERROR if the Filter ID 4070 is in the reserved range. This allows Block Header encoder to 4071 detect unallowed Filter IDs, which is good for Stream encoder. 4072 4073 src/liblzma/common/filter_flags_encoder.c | 7 ++++--- 4074 1 files changed, 4 insertions(+), 3 deletions(-) 4075 4076commit 123ab0acec435c9e9866a99e30482116cfbd9ba5 4077Author: Lasse Collin <lasse.collin@tukaani.org> 4078Date: 2008-09-10 16:44:32 +0300 4079 4080 Filter handling cleanups 4081 4082 src/liblzma/api/lzma/filter.h | 133 +++++++++++++++++++++++++++-------- 4083 src/liblzma/common/filter_common.h | 3 + 4084 src/liblzma/common/filter_decoder.c | 80 +++++++-------------- 4085 src/liblzma/common/filter_decoder.h | 5 -- 4086 src/liblzma/common/filter_encoder.c | 82 +++++++--------------- 4087 src/liblzma/common/filter_encoder.h | 4 - 4088 6 files changed, 156 insertions(+), 151 deletions(-) 4089 4090commit 9cfcd0c4f2f865d8fbbb46ea28344a9be0dd8ad1 4091Author: Lasse Collin <lasse.collin@tukaani.org> 4092Date: 2008-09-10 00:33:00 +0300 4093 4094 Comments 4095 4096 src/liblzma/common/stream_encoder.c | 6 +++++- 4097 1 files changed, 5 insertions(+), 1 deletions(-) 4098 4099commit 2ba01bfa755e47ff6af84a978e3c8d63d7d2775e 4100Author: Lasse Collin <lasse.collin@tukaani.org> 4101Date: 2008-09-10 00:27:02 +0300 4102 4103 Cleaned up Block encoder and moved the no longer shared 4104 code from block_private.h to block_decoder.c. Now the Block 4105 encoder doesn't need compressed_size and uncompressed_size 4106 from lzma_block structure to be initialized. 4107 4108 src/liblzma/api/lzma/block.h | 3 - 4109 src/liblzma/common/Makefile.am | 1 - 4110 src/liblzma/common/block_decoder.c | 23 +++++++++- 4111 src/liblzma/common/block_encoder.c | 92 +++++++++++++++++------------------- 4112 src/liblzma/common/block_private.h | 47 ------------------ 4113 5 files changed, 66 insertions(+), 100 deletions(-) 4114 4115commit 07efcb5a6bc5d7018798ebd728586f84183e7d64 4116Author: Lasse Collin <lasse.collin@tukaani.org> 4117Date: 2008-09-07 10:23:13 +0300 4118 4119 Changed Filter ID of LZMA to 0x20. 4120 4121 doc/file-format.txt | 4 ++-- 4122 src/liblzma/api/lzma/lzma.h | 2 +- 4123 2 files changed, 3 insertions(+), 3 deletions(-) 4124 4125commit 32fe5fa541e82c08e054086279079ae5016bd8d8 4126Author: Lasse Collin <lasse.collin@tukaani.org> 4127Date: 2008-09-06 23:42:50 +0300 4128 4129 Comments 4130 4131 src/liblzma/api/lzma/base.h | 81 +++++++++++++++++++++++++------------- 4132 src/liblzma/api/lzma/container.h | 6 ++- 4133 src/liblzma/lz/lz_encoder.c | 3 +- 4134 src/liblzma/lz/lz_encoder.h | 12 +++--- 4135 src/liblzma/lz/lz_encoder_mf.c | 2 +- 4136 5 files changed, 65 insertions(+), 39 deletions(-) 4137 4138commit 0a31ed9d5e3cde4feb094b66f3a8b2c074605d84 4139Author: Lasse Collin <lasse.collin@tukaani.org> 4140Date: 2008-09-06 15:14:30 +0300 4141 4142 Some API cleanups 4143 4144 src/liblzma/api/lzma/base.h | 314 ++++++++++++++++++++++------------- 4145 src/liblzma/api/lzma/check.h | 10 + 4146 src/liblzma/api/lzma/container.h | 40 +++-- 4147 src/liblzma/common/auto_decoder.c | 18 +- 4148 src/liblzma/common/common.c | 7 + 4149 src/liblzma/common/common.h | 18 +- 4150 src/liblzma/common/easy.c | 2 +- 4151 src/liblzma/common/stream_decoder.c | 31 ++-- 4152 src/lzma/process.c | 2 +- 4153 src/lzmadec/lzmadec.c | 6 +- 4154 tests/tests.h | 72 ++------ 4155 11 files changed, 301 insertions(+), 219 deletions(-) 4156 4157commit da98df54400998be2a6c3876f9655a3c51b93c10 4158Author: Lasse Collin <lasse.collin@tukaani.org> 4159Date: 2008-09-04 11:53:06 +0300 4160 4161 Added support for raw encoding and decoding to the command 4162 line tool, and made various cleanups. --lzma was renamed to 4163 --lzma1 to prevent people from accidentally using LZMA when 4164 they want LZMA2. 4165 4166 src/lzma/args.c | 17 +++++++++-------- 4167 src/lzma/args.h | 1 + 4168 src/lzma/help.c | 24 ++++++------------------ 4169 src/lzma/process.c | 42 ++++++++++++++++++++++++++++++++++-------- 4170 4 files changed, 50 insertions(+), 34 deletions(-) 4171 4172commit 2496aee8a7741a8a0d42987db41ff2cf1a4bdabd 4173Author: Lasse Collin <lasse.collin@tukaani.org> 4174Date: 2008-09-04 10:39:15 +0300 4175 4176 Don't allow LZMA_SYNC_FLUSH with decoders anymore. There's 4177 simply nothing that would use it. Allow LZMA_FINISH to the 4178 decoders, which will usually ignore it (auto decoder and 4179 Stream decoder being exceptions). 4180 4181 src/liblzma/common/alone_decoder.c | 1 - 4182 src/liblzma/common/block_decoder.c | 2 +- 4183 src/liblzma/common/filter_decoder.c | 2 +- 4184 3 files changed, 2 insertions(+), 3 deletions(-) 4185 4186commit bea301c26d5d52675e11e0236faec0492af98f60 4187Author: Lasse Collin <lasse.collin@tukaani.org> 4188Date: 2008-09-03 17:06:25 +0300 4189 4190 Minor updates to the file format specification. 4191 4192 doc/file-format.txt | 105 +++++++++++++++++++++++++++++++++++++++++---------- 4193 1 files changed, 85 insertions(+), 20 deletions(-) 4194 4195commit 9c75b089b4a9e0edcf4cf7970a4383768707d6c8 4196Author: Lasse Collin <lasse.collin@tukaani.org> 4197Date: 2008-09-02 19:33:32 +0300 4198 4199 Command line tool fixes 4200 4201 src/lzma/process.c | 21 +++++++++++++-------- 4202 1 files changed, 13 insertions(+), 8 deletions(-) 4203 4204commit bab0590504b5aeff460ab4ca8c964dd7c1bad9e4 4205Author: Lasse Collin <lasse.collin@tukaani.org> 4206Date: 2008-09-02 19:31:42 +0300 4207 4208 Auto decoder cleanup 4209 4210 src/liblzma/common/auto_decoder.c | 2 +- 4211 1 files changed, 1 insertions(+), 1 deletions(-) 4212 4213commit 689602336d126a46b60d791a67decab65e1e81f5 4214Author: Lasse Collin <lasse.collin@tukaani.org> 4215Date: 2008-09-02 19:12:12 +0300 4216 4217 Updated auto decoder to handle LZMA_CONCATENATED when decoding 4218 LZMA_Alone files. Decoding of concatenated LZMA_Alone files is 4219 intentionally not supported, so it is better to put this in 4220 auto decoder than LZMA_Alone decoder. 4221 4222 src/liblzma/common/auto_decoder.c | 87 ++++++++++++++++++++++++++++++------- 4223 1 files changed, 71 insertions(+), 16 deletions(-) 4224 4225commit 80c4158f19904026433eb6f5d5ca98a0ecd4f66c 4226Author: Lasse Collin <lasse.collin@tukaani.org> 4227Date: 2008-09-02 14:56:52 +0300 4228 4229 Stream decoder cleanups 4230 4231 src/liblzma/common/stream_decoder.c | 57 +++++++++++++++++++--------------- 4232 1 files changed, 32 insertions(+), 25 deletions(-) 4233 4234commit fc681657450ce57be1fe08f7a15d31dcc705e514 4235Author: Lasse Collin <lasse.collin@tukaani.org> 4236Date: 2008-09-02 11:45:39 +0300 4237 4238 Some fixes to LZ encoder. 4239 4240 src/liblzma/lz/lz_encoder.c | 56 +++++++++++++++++++---- 4241 src/liblzma/lz/lz_encoder.h | 18 ++++--- 4242 src/liblzma/lz/lz_encoder_mf.c | 95 ++++++++++++++++------------------------ 4243 3 files changed, 94 insertions(+), 75 deletions(-) 4244 4245commit ede675f9ac1ca82a7d7c290324adba672118bc8d 4246Author: Lasse Collin <lasse.collin@tukaani.org> 4247Date: 2008-08-31 11:47:01 +0300 4248 4249 Fix wrong pointer calculation in LZMA encoder. 4250 4251 src/liblzma/lzma/lzma_encoder.c | 4 +++- 4252 1 files changed, 3 insertions(+), 1 deletions(-) 4253 4254commit 3b34851de1eaf358cf9268922fa0eeed8278d680 4255Author: Lasse Collin <lasse.collin@tukaani.org> 4256Date: 2008-08-28 22:53:15 +0300 4257 4258 Sort of garbage collection commit. :-| Many things are still 4259 broken. API has changed a lot and it will still change a 4260 little more here and there. The command line tool doesn't 4261 have all the required changes to reflect the API changes, so 4262 it's easy to get "internal error" or trigger assertions. 4263 4264 configure.ac | 356 +++--- 4265 debug/Makefile.am | 5 +- 4266 debug/crc32.c | 45 + 4267 debug/full_flush.c | 14 +- 4268 debug/hex2bin.c | 54 + 4269 debug/known_sizes.c | 135 ++ 4270 debug/memusage.c | 8 +- 4271 debug/sync_flush.c | 20 +- 4272 src/common/integer.h | 26 +- 4273 src/common/sysdefs.h | 42 +- 4274 src/liblzma/Makefile.am | 17 +- 4275 src/liblzma/api/Makefile.am | 6 +- 4276 src/liblzma/api/lzma.h | 161 ++- 4277 src/liblzma/api/lzma/alignment.h | 6 +- 4278 src/liblzma/api/lzma/alone.h | 52 - 4279 src/liblzma/api/lzma/auto.h | 36 - 4280 src/liblzma/api/lzma/base.h | 61 +- 4281 src/liblzma/api/lzma/block.h | 38 +- 4282 src/liblzma/api/lzma/check.h | 41 +- 4283 src/liblzma/api/lzma/container.h | 252 ++++ 4284 src/liblzma/api/lzma/delta.h | 36 +- 4285 src/liblzma/api/lzma/easy.h | 121 -- 4286 src/liblzma/api/lzma/filter.h | 74 +- 4287 src/liblzma/api/lzma/index.h | 40 +- 4288 src/liblzma/api/lzma/index_hash.h | 12 +- 4289 src/liblzma/api/lzma/lzma.h | 222 ++-- 4290 src/liblzma/api/lzma/memlimit.h | 15 +- 4291 src/liblzma/api/lzma/raw.h | 60 - 4292 src/liblzma/api/lzma/simple.h | 2 +- 4293 src/liblzma/api/lzma/stream.h | 53 - 4294 src/liblzma/api/lzma/stream_flags.h | 17 +- 4295 src/liblzma/api/lzma/subblock.h | 4 +- 4296 src/liblzma/api/lzma/version.h | 10 +- 4297 src/liblzma/api/lzma/vli.h | 131 +-- 4298 src/liblzma/check/check.c | 128 +-- 4299 src/liblzma/check/check.h | 67 +- 4300 src/liblzma/check/sha256.c | 29 +- 4301 src/liblzma/common/Makefile.am | 51 +- 4302 src/liblzma/common/alignment.c | 4 +- 4303 src/liblzma/common/allocator.c | 58 - 4304 src/liblzma/common/alone_decoder.c | 49 +- 4305 src/liblzma/common/alone_decoder.h | 9 +- 4306 src/liblzma/common/alone_encoder.c | 13 +- 4307 src/liblzma/common/auto_decoder.c | 38 +- 4308 src/liblzma/common/block_decoder.c | 67 +- 4309 src/liblzma/common/block_decoder.h | 2 +- 4310 src/liblzma/common/block_encoder.c | 42 +- 4311 src/liblzma/common/block_encoder.h | 2 +- 4312 src/liblzma/common/block_header_decoder.c | 6 +- 4313 src/liblzma/common/block_header_encoder.c | 9 +- 4314 src/liblzma/common/block_util.c | 10 +- 4315 src/liblzma/common/code.c | 203 --- 4316 src/liblzma/common/common.c | 298 +++++ 4317 src/liblzma/common/common.h | 237 ++-- 4318 src/liblzma/common/delta_common.c | 66 - 4319 src/liblzma/common/delta_common.h | 44 - 4320 src/liblzma/common/delta_decoder.c | 61 - 4321 src/liblzma/common/delta_decoder.h | 28 - 4322 src/liblzma/common/delta_encoder.c | 98 -- 4323 src/liblzma/common/delta_encoder.h | 28 - 4324 src/liblzma/common/easy.c | 18 +- 4325 src/liblzma/common/features.c | 66 - 4326 src/liblzma/common/filter_common.c | 262 ++++ 4327 src/liblzma/common/filter_common.h | 52 + 4328 src/liblzma/common/filter_decoder.c | 236 ++++ 4329 src/liblzma/common/filter_decoder.h | 35 + 4330 src/liblzma/common/filter_encoder.c | 308 +++++ 4331 src/liblzma/common/filter_encoder.h | 38 + 4332 src/liblzma/common/filter_flags_decoder.c | 185 +--- 4333 src/liblzma/common/filter_flags_encoder.c | 261 +---- 4334 src/liblzma/common/index_decoder.c | 14 +- 4335 src/liblzma/common/index_encoder.c | 16 +- 4336 src/liblzma/common/index_hash.c | 8 +- 4337 src/liblzma/common/init_encoder.c | 2 +- 4338 src/liblzma/common/memory_usage.c | 112 -- 4339 src/liblzma/common/next_coder.c | 65 - 4340 src/liblzma/common/raw_common.c | 127 -- 4341 src/liblzma/common/raw_common.h | 30 - 4342 src/liblzma/common/raw_decoder.c | 116 -- 4343 src/liblzma/common/raw_decoder.h | 29 - 4344 src/liblzma/common/raw_encoder.c | 111 -- 4345 src/liblzma/common/raw_encoder.h | 29 - 4346 src/liblzma/common/stream_common.c | 23 - 4347 src/liblzma/common/stream_common.h | 31 - 4348 src/liblzma/common/stream_decoder.c | 238 +++- 4349 src/liblzma/common/stream_decoder.h | 4 +- 4350 src/liblzma/common/stream_encoder.c | 35 +- 4351 src/liblzma/common/stream_encoder.h | 2 +- 4352 src/liblzma/common/stream_flags_common.c | 40 + 4353 src/liblzma/common/stream_flags_common.h | 31 + 4354 src/liblzma/common/stream_flags_decoder.c | 2 +- 4355 src/liblzma/common/stream_flags_encoder.c | 2 +- 4356 src/liblzma/common/stream_flags_equal.c | 36 - 4357 src/liblzma/common/version.c | 25 - 4358 src/liblzma/common/vli_decoder.c | 29 +- 4359 src/liblzma/common/vli_encoder.c | 23 +- 4360 src/liblzma/common/vli_size.c | 37 + 4361 src/liblzma/delta/Makefile.am | 34 + 4362 src/liblzma/delta/delta_common.c | 66 + 4363 src/liblzma/delta/delta_common.h | 44 + 4364 src/liblzma/delta/delta_decoder.c | 82 ++ 4365 src/liblzma/delta/delta_decoder.h | 32 + 4366 src/liblzma/delta/delta_encoder.c | 119 ++ 4367 src/liblzma/delta/delta_encoder.h | 30 + 4368 src/liblzma/lz/Makefile.am | 35 +- 4369 src/liblzma/lz/bt2.c | 27 - 4370 src/liblzma/lz/bt2.h | 31 - 4371 src/liblzma/lz/bt3.c | 29 - 4372 src/liblzma/lz/bt3.h | 31 - 4373 src/liblzma/lz/bt4.c | 30 - 4374 src/liblzma/lz/bt4.h | 31 - 4375 src/liblzma/lz/hc3.c | 30 - 4376 src/liblzma/lz/hc3.h | 31 - 4377 src/liblzma/lz/hc4.c | 31 - 4378 src/liblzma/lz/hc4.h | 31 - 4379 src/liblzma/lz/lz_decoder.c | 547 +++------ 4380 src/liblzma/lz/lz_decoder.h | 308 +++--- 4381 src/liblzma/lz/lz_encoder.c | 780 ++++++------ 4382 src/liblzma/lz/lz_encoder.h | 334 ++++-- 4383 src/liblzma/lz/lz_encoder_hash.h | 104 ++ 4384 src/liblzma/lz/lz_encoder_mf.c | 780 ++++++++++++ 4385 src/liblzma/lz/lz_encoder_private.h | 40 - 4386 src/liblzma/lz/match_c.h | 412 ------ 4387 src/liblzma/lz/match_h.h | 69 - 4388 src/liblzma/lzma/Makefile.am | 37 +- 4389 src/liblzma/lzma/fastpos.h | 8 +- 4390 src/liblzma/lzma/lzma2_decoder.c | 318 +++++ 4391 src/liblzma/lzma/lzma2_decoder.h | 35 + 4392 src/liblzma/lzma/lzma2_encoder.c | 406 ++++++ 4393 src/liblzma/lzma/lzma2_encoder.h | 34 + 4394 src/liblzma/lzma/lzma_common.h | 208 +++- 4395 src/liblzma/lzma/lzma_decoder.c | 1306 ++++++++++++-------- 4396 src/liblzma/lzma/lzma_decoder.h | 21 +- 4397 src/liblzma/lzma/lzma_encoder.c | 576 +++++++-- 4398 src/liblzma/lzma/lzma_encoder.h | 38 +- 4399 src/liblzma/lzma/lzma_encoder_features.c | 2 +- 4400 src/liblzma/lzma/lzma_encoder_getoptimum.c | 925 -------------- 4401 src/liblzma/lzma/lzma_encoder_getoptimumfast.c | 201 --- 4402 src/liblzma/lzma/lzma_encoder_init.c | 228 ---- 4403 src/liblzma/lzma/lzma_encoder_optimum_fast.c | 193 +++ 4404 src/liblzma/lzma/lzma_encoder_optimum_normal.c | 875 +++++++++++++ 4405 src/liblzma/lzma/lzma_encoder_presets.c | 52 +- 4406 src/liblzma/lzma/lzma_encoder_private.h | 174 +-- 4407 src/liblzma/lzma/lzma_literal.c | 51 - 4408 src/liblzma/lzma/lzma_literal.h | 71 -- 4409 src/liblzma/rangecoder/Makefile.am | 10 +- 4410 src/liblzma/rangecoder/price.h | 111 ++ 4411 src/liblzma/rangecoder/price_table.c | 84 +- 4412 src/liblzma/rangecoder/price_table_gen.c | 55 - 4413 src/liblzma/rangecoder/price_table_init.c | 33 +- 4414 src/liblzma/rangecoder/price_tablegen.c | 56 + 4415 src/liblzma/rangecoder/range_common.h | 17 +- 4416 src/liblzma/rangecoder/range_decoder.h | 209 ++-- 4417 src/liblzma/rangecoder/range_encoder.h | 92 +-- 4418 src/liblzma/simple/Makefile.am | 12 + 4419 src/liblzma/simple/simple_coder.c | 8 +- 4420 src/liblzma/simple/simple_decoder.c | 47 + 4421 src/liblzma/simple/simple_decoder.h | 29 + 4422 src/liblzma/simple/simple_encoder.c | 45 + 4423 src/liblzma/simple/simple_encoder.h | 30 + 4424 src/liblzma/subblock/Makefile.am | 4 +- 4425 src/liblzma/subblock/subblock_decoder.c | 20 +- 4426 src/liblzma/subblock/subblock_decoder_helper.c | 2 +- 4427 src/liblzma/subblock/subblock_encoder.c | 28 +- 4428 src/lzma/args.c | 35 +- 4429 src/lzma/args.h | 4 +- 4430 src/lzma/options.c | 14 +- 4431 src/lzma/process.c | 88 +- 4432 src/lzmadec/lzmadec.c | 157 +-- 4433 tests/Makefile.am | 1 + 4434 tests/files/README | 303 ++--- 4435 tests/files/bad-0-backward_size.lzma | Bin 0 -> 32 bytes 4436 tests/files/bad-0-empty-truncated.lzma | Bin 0 -> 31 bytes 4437 tests/files/bad-0-nonempty_index.lzma | Bin 0 -> 32 bytes 4438 tests/files/bad-0cat-alone.lzma | Bin 0 -> 55 bytes 4439 tests/files/bad-0catpad-empty.lzma | Bin 0 -> 69 bytes 4440 tests/files/bad-0pad-empty.lzma | Bin 0 -> 37 bytes 4441 tests/files/bad-1-block_header-1.lzma | Bin 0 -> 64 bytes 4442 tests/files/bad-1-block_header-2.lzma | Bin 0 -> 64 bytes 4443 tests/files/bad-1-block_header-3.lzma | Bin 0 -> 68 bytes 4444 tests/files/bad-1-block_header-4.lzma | Bin 0 -> 72 bytes 4445 tests/files/bad-1-check-crc32.lzma | Bin 0 -> 68 bytes 4446 tests/files/bad-1-check-crc64.lzma | Bin 0 -> 72 bytes 4447 tests/files/bad-1-check-sha256.lzma | Bin 0 -> 96 bytes 4448 tests/files/bad-1-lzma2-1.lzma | Bin 0 -> 64 bytes 4449 tests/files/bad-1-lzma2-2.lzma | Bin 0 -> 424 bytes 4450 tests/files/bad-1-lzma2-3.lzma | Bin 0 -> 424 bytes 4451 tests/files/bad-1-lzma2-4.lzma | Bin 0 -> 408 bytes 4452 tests/files/bad-1-lzma2-5.lzma | Bin 0 -> 408 bytes 4453 tests/files/bad-1-lzma2-6.lzma | Bin 0 -> 68 bytes 4454 tests/files/bad-1-lzma2-7.lzma | Bin 0 -> 408 bytes 4455 tests/files/bad-1-stream_flags-1.lzma | Bin 0 -> 68 bytes 4456 tests/files/bad-1-stream_flags-2.lzma | Bin 0 -> 68 bytes 4457 tests/files/bad-1-stream_flags-3.lzma | Bin 0 -> 68 bytes 4458 tests/files/bad-1-vli-1.lzma | Bin 0 -> 72 bytes 4459 tests/files/bad-1-vli-2.lzma | Bin 0 -> 72 bytes 4460 tests/files/bad-2-compressed_data_padding.lzma | Bin 0 -> 92 bytes 4461 tests/files/bad-2-index-1.lzma | Bin 0 -> 92 bytes 4462 tests/files/bad-2-index-2.lzma | Bin 0 -> 92 bytes 4463 tests/files/bad-2-index-3.lzma | Bin 0 -> 92 bytes 4464 tests/files/bad-2-index-4.lzma | Bin 0 -> 92 bytes 4465 tests/files/bad-cat-single-none-pad_garbage_1.lzma | Bin 65 -> 0 bytes 4466 tests/files/bad-cat-single-none-pad_garbage_2.lzma | Bin 65 -> 0 bytes 4467 tests/files/bad-cat-single-none-pad_garbage_3.lzma | Bin 65 -> 0 bytes 4468 tests/files/bad-multi-none-1.lzma | Bin 54 -> 0 bytes 4469 tests/files/bad-multi-none-2.lzma | Bin 53 -> 0 bytes 4470 tests/files/bad-multi-none-3.lzma | Bin 53 -> 0 bytes 4471 tests/files/bad-multi-none-block_1.lzma | Bin 66 -> 0 bytes 4472 tests/files/bad-multi-none-block_2.lzma | Bin 66 -> 0 bytes 4473 tests/files/bad-multi-none-block_3.lzma | Bin 58 -> 0 bytes 4474 tests/files/bad-multi-none-extra_1.lzma | Bin 54 -> 0 bytes 4475 tests/files/bad-multi-none-extra_2.lzma | Bin 54 -> 0 bytes 4476 tests/files/bad-multi-none-extra_3.lzma | Bin 55 -> 0 bytes 4477 tests/files/bad-multi-none-header_1.lzma | Bin 57 -> 0 bytes 4478 tests/files/bad-multi-none-header_2.lzma | Bin 61 -> 0 bytes 4479 tests/files/bad-multi-none-header_3.lzma | Bin 59 -> 0 bytes 4480 tests/files/bad-multi-none-header_4.lzma | Bin 59 -> 0 bytes 4481 tests/files/bad-multi-none-header_5.lzma | Bin 58 -> 0 bytes 4482 tests/files/bad-multi-none-header_6.lzma | Bin 59 -> 0 bytes 4483 tests/files/bad-multi-none-header_7.lzma | Bin 59 -> 0 bytes 4484 tests/files/bad-multi-none-index_1.lzma | Bin 51 -> 0 bytes 4485 tests/files/bad-multi-none-index_2.lzma | Bin 49 -> 0 bytes 4486 tests/files/bad-multi-none-index_3.lzma | Bin 51 -> 0 bytes 4487 tests/files/bad-multi-none-index_4.lzma | Bin 51 -> 0 bytes 4488 tests/files/bad-single-data_after_eopm_1.lzma | Bin 55 -> 0 bytes 4489 tests/files/bad-single-data_after_eopm_2.lzma | Bin 56 -> 0 bytes 4490 tests/files/bad-single-lzma-flush_beginning.lzma | Bin 53 -> 0 bytes 4491 tests/files/bad-single-lzma-flush_twice.lzma | Bin 63 -> 0 bytes 4492 tests/files/bad-single-none-empty.lzma | Bin 19 -> 0 bytes 4493 .../files/bad-single-none-footer_filter_flags.lzma | Bin 30 -> 0 bytes 4494 tests/files/bad-single-none-too_long_vli.lzma | Bin 39 -> 0 bytes 4495 tests/files/bad-single-none-truncated.lzma | Bin 29 -> 0 bytes 4496 tests/files/bad-single-subblock-padding_loop.lzma | Bin 43 -> 0 bytes 4497 tests/files/bad-single-subblock1023-slow.lzma | Bin 7886 -> 0 bytes 4498 tests/files/bad-single-subblock_subblock.lzma | Bin 26 -> 0 bytes 4499 tests/files/good-0-empty.lzma | Bin 0 -> 32 bytes 4500 tests/files/good-0cat-empty.lzma | Bin 0 -> 64 bytes 4501 tests/files/good-0catpad-empty.lzma | Bin 0 -> 68 bytes 4502 tests/files/good-0pad-empty.lzma | Bin 0 -> 36 bytes 4503 tests/files/good-1-3delta-lzma2.lzma | Bin 0 -> 528 bytes 4504 tests/files/good-1-block_header-1.lzma | Bin 0 -> 72 bytes 4505 tests/files/good-1-block_header-2.lzma | Bin 0 -> 68 bytes 4506 tests/files/good-1-block_header-3.lzma | Bin 0 -> 68 bytes 4507 tests/files/good-1-check-crc32.lzma | Bin 0 -> 68 bytes 4508 tests/files/good-1-check-crc64.lzma | Bin 0 -> 72 bytes 4509 tests/files/good-1-check-none.lzma | Bin 0 -> 64 bytes 4510 tests/files/good-1-check-sha256.lzma | Bin 0 -> 96 bytes 4511 tests/files/good-1-delta-lzma2.tiff.lzma | Bin 0 -> 51312 bytes 4512 tests/files/good-1-lzma2-1.lzma | Bin 0 -> 424 bytes 4513 tests/files/good-1-lzma2-2.lzma | Bin 0 -> 424 bytes 4514 tests/files/good-1-lzma2-3.lzma | Bin 0 -> 408 bytes 4515 tests/files/good-1-sparc-lzma2.lzma | Bin 0 -> 2292 bytes 4516 tests/files/good-1-x86-lzma2.lzma | Bin 0 -> 1936 bytes 4517 tests/files/good-2-lzma2.lzma | Bin 0 -> 92 bytes 4518 tests/files/good-cat-single-none-pad.lzma | Bin 64 -> 0 bytes 4519 tests/files/good-multi-none-1.lzma | Bin 75 -> 0 bytes 4520 tests/files/good-multi-none-2.lzma | Bin 53 -> 0 bytes 4521 tests/files/good-multi-none-block_1.lzma | Bin 66 -> 0 bytes 4522 tests/files/good-multi-none-block_2.lzma | Bin 58 -> 0 bytes 4523 tests/files/good-multi-none-extra_1.lzma | Bin 51 -> 0 bytes 4524 tests/files/good-multi-none-extra_2.lzma | Bin 79 -> 0 bytes 4525 tests/files/good-multi-none-extra_3.lzma | Bin 55 -> 0 bytes 4526 tests/files/good-multi-none-header_1.lzma | Bin 58 -> 0 bytes 4527 tests/files/good-multi-none-header_2.lzma | Bin 66 -> 0 bytes 4528 tests/files/good-multi-none-header_3.lzma | Bin 59 -> 0 bytes 4529 tests/files/good-single-delta-lzma.tiff.lzma | Bin 51409 -> 0 bytes 4530 tests/files/good-single-lzma-empty.lzma | Bin 21 -> 0 bytes 4531 tests/files/good-single-lzma-flush_1.lzma | Bin 48 -> 0 bytes 4532 tests/files/good-single-lzma-flush_2.lzma | Bin 63 -> 0 bytes 4533 tests/files/good-single-lzma.lzma | Bin 44 -> 0 bytes 4534 tests/files/good-single-none-empty_1.lzma | Bin 18 -> 0 bytes 4535 tests/files/good-single-none-empty_2.lzma | Bin 26 -> 0 bytes 4536 tests/files/good-single-none-empty_3.lzma | Bin 19 -> 0 bytes 4537 tests/files/good-single-none-pad.lzma | Bin 32 -> 0 bytes 4538 tests/files/good-single-none.lzma | Bin 30 -> 0 bytes 4539 tests/files/good-single-sparc-lzma.lzma | Bin 2263 -> 0 bytes 4540 tests/files/good-single-subblock-lzma.lzma | Bin 50 -> 0 bytes 4541 tests/files/good-single-subblock_implicit.lzma | Bin 35 -> 0 bytes 4542 tests/files/good-single-subblock_rle.lzma | Bin 118 -> 0 bytes 4543 tests/files/good-single-x86-lzma.lzma | Bin 1909 -> 0 bytes 4544 tests/files/malicious-multi-metadata-64PiB.lzma | Bin 51 -> 0 bytes 4545 tests/files/malicious-single-subblock-256MiB.lzma | Bin 30 -> 0 bytes 4546 tests/files/malicious-single-subblock-64PiB.lzma | Bin 45 -> 0 bytes 4547 tests/files/malicious-single-subblock31-slow.lzma | Bin 1233 -> 0 bytes 4548 tests/files/unsupported-block_header.lzma | Bin 0 -> 68 bytes 4549 tests/files/unsupported-check.lzma | Bin 0 -> 68 bytes 4550 tests/files/unsupported-filter_flags-1.lzma | Bin 0 -> 68 bytes 4551 tests/files/unsupported-filter_flags-2.lzma | Bin 0 -> 68 bytes 4552 tests/files/unsupported-filter_flags-3.lzma | Bin 0 -> 68 bytes 4553 tests/test_block_header.c | 28 +- 4554 tests/test_compress.sh | 4 +- 4555 tests/test_filter_flags.c | 51 +- 4556 tests/test_stream_flags.c | 4 +- 4557 tests/tests.h | 8 + 4558 294 files changed, 9768 insertions(+), 8195 deletions(-) 4559 4560commit 57b9a145a527f0716822615e5ed536d33aebd3fc 4561Author: Lasse Collin <lasse.collin@tukaani.org> 4562Date: 2008-06-20 17:16:32 +0300 4563 4564 Fix test_filter_flags to match the new restriction of lc+lp. 4565 4566 tests/test_filter_flags.c | 3 +++ 4567 1 files changed, 3 insertions(+), 0 deletions(-) 4568 4569commit eaafc4367c77ec1d910e16d11b4da293969d97a3 4570Author: Lasse Collin <lasse.collin@tukaani.org> 4571Date: 2008-06-20 16:19:54 +0300 4572 4573 Remove some redundant code from LZMA encoder. 4574 4575 src/liblzma/lzma/lzma_encoder.c | 15 +-------------- 4576 1 files changed, 1 insertions(+), 14 deletions(-) 4577 4578commit 0809c46534fa5664fe35d9e98d95e87312ed130e 4579Author: Lasse Collin <lasse.collin@tukaani.org> 4580Date: 2008-06-19 16:35:08 +0300 4581 4582 Add limit of lc + lp <= 4. Now we can allocate the 4583 literal coder as part of the main LZMA encoder or 4584 decoder structure. 4585 4586 Make the LZMA decoder to rely on the current internal API 4587 to free the allocated memory in case an error occurs. 4588 4589 src/liblzma/api/lzma/lzma.h | 10 +++++- 4590 src/liblzma/lzma/lzma_decoder.c | 57 +++++++----------------------- 4591 src/liblzma/lzma/lzma_encoder_init.c | 13 +++---- 4592 src/liblzma/lzma/lzma_encoder_private.h | 2 +- 4593 src/liblzma/lzma/lzma_literal.c | 39 ++++----------------- 4594 src/liblzma/lzma/lzma_literal.h | 13 +++---- 4595 6 files changed, 43 insertions(+), 91 deletions(-) 4596 4597commit d25ab1b96178f06a0e724f58e3cd68300b2b1275 4598Author: Lasse Collin <lasse.collin@tukaani.org> 4599Date: 2008-06-18 21:45:19 +0300 4600 4601 Comments 4602 4603 src/liblzma/lzma/lzma_encoder.c | 7 ++----- 4604 1 files changed, 2 insertions(+), 5 deletions(-) 4605 4606commit 6368a2fa5901c75864be5171dd57a50af7adbb41 4607Author: Lasse Collin <lasse.collin@tukaani.org> 4608Date: 2008-06-18 19:19:02 +0300 4609 4610 Delete old code that was supposed to be already deleted 4611 from test_block_header.c. 4612 4613 tests/test_block_header.c | 30 ------------------------------ 4614 1 files changed, 0 insertions(+), 30 deletions(-) 4615 4616commit 7d17818cec8597f847b0a2537fde991bbc3d9e96 4617Author: Lasse Collin <lasse.collin@tukaani.org> 4618Date: 2008-06-18 18:02:10 +0300 4619 4620 Update the code to mostly match the new simpler file format 4621 specification. Simplify things by removing most of the 4622 support for known uncompressed size in most places. 4623 There are some miscellaneous changes here and there too. 4624 4625 The API of liblzma has got many changes and still some 4626 more will be done soon. While most of the code has been 4627 updated, some things are not fixed (the command line tool 4628 will choke with invalid filter chain, if nothing else). 4629 4630 Subblock filter is somewhat broken for now. It will be 4631 updated once the encoded format of the Subblock filter 4632 has been decided. 4633 4634 configure.ac | 41 +- 4635 debug/full_flush.c | 16 +- 4636 debug/sync_flush.c | 15 +- 4637 src/common/bswap.h | 44 ++ 4638 src/common/integer.h | 167 +++++ 4639 src/liblzma/api/Makefile.am | 5 +- 4640 src/liblzma/api/lzma.h | 9 +- 4641 src/liblzma/api/lzma/alone.h | 32 +- 4642 src/liblzma/api/lzma/auto.h | 7 +- 4643 src/liblzma/api/lzma/base.h | 15 + 4644 src/liblzma/api/lzma/block.h | 304 +++------- 4645 src/liblzma/api/lzma/check.h | 18 +- 4646 src/liblzma/api/lzma/copy.h | 29 - 4647 src/liblzma/api/lzma/easy.h | 61 +-- 4648 src/liblzma/api/lzma/extra.h | 114 ---- 4649 src/liblzma/api/lzma/filter.h | 5 +- 4650 src/liblzma/api/lzma/index.h | 204 +++++- 4651 src/liblzma/api/lzma/index_hash.h | 94 +++ 4652 src/liblzma/api/lzma/info.h | 315 --------- 4653 src/liblzma/api/lzma/lzma.h | 2 +- 4654 src/liblzma/api/lzma/metadata.h | 100 --- 4655 src/liblzma/api/lzma/raw.h | 20 +- 4656 src/liblzma/api/lzma/stream.h | 157 +---- 4657 src/liblzma/api/lzma/stream_flags.h | 146 ++--- 4658 src/liblzma/api/lzma/version.h | 2 +- 4659 src/liblzma/api/lzma/vli.h | 83 ++-- 4660 src/liblzma/check/Makefile.am | 1 - 4661 src/liblzma/check/check.c | 55 ++- 4662 src/liblzma/check/check.h | 47 +- 4663 src/liblzma/check/check_byteswap.h | 43 -- 4664 src/liblzma/check/crc32_init.c | 2 +- 4665 src/liblzma/check/crc64_init.c | 2 +- 4666 src/liblzma/check/crc_macros.h | 2 +- 4667 src/liblzma/check/sha256.c | 53 +- 4668 src/liblzma/common/Makefile.am | 31 +- 4669 src/liblzma/common/alignment.c | 5 +- 4670 src/liblzma/common/alone_decoder.c | 77 ++- 4671 src/liblzma/common/alone_encoder.c | 99 ++-- 4672 src/liblzma/common/auto_decoder.c | 18 +- 4673 src/liblzma/common/block_decoder.c | 298 +++------- 4674 src/liblzma/common/block_encoder.c | 228 ++----- 4675 src/liblzma/common/block_header_decoder.c | 400 +++---------- 4676 src/liblzma/common/block_header_encoder.c | 207 +++---- 4677 src/liblzma/common/block_private.h | 51 +-- 4678 src/liblzma/common/block_util.c | 73 +++ 4679 src/liblzma/common/common.h | 44 +- 4680 src/liblzma/common/copy_coder.c | 144 ----- 4681 src/liblzma/common/copy_coder.h | 31 - 4682 src/liblzma/common/delta_common.c | 4 - 4683 src/liblzma/common/delta_common.h | 4 - 4684 src/liblzma/common/delta_decoder.c | 55 +-- 4685 src/liblzma/common/delta_encoder.c | 7 +- 4686 src/liblzma/common/easy.c | 122 ++++ 4687 src/liblzma/common/easy_common.c | 54 -- 4688 src/liblzma/common/easy_common.h | 28 - 4689 src/liblzma/common/easy_multi.c | 103 --- 4690 src/liblzma/common/easy_single.c | 37 -- 4691 src/liblzma/common/extra.c | 34 - 4692 src/liblzma/common/features.c | 4 - 4693 src/liblzma/common/filter_flags_decoder.c | 384 +++-------- 4694 src/liblzma/common/filter_flags_encoder.c | 120 +--- 4695 src/liblzma/common/index.c | 773 ++++++++++++++++++++--- 4696 src/liblzma/common/index.h | 67 ++ 4697 src/liblzma/common/index_decoder.c | 252 ++++++++ 4698 src/liblzma/common/index_encoder.c | 222 +++++++ 4699 src/liblzma/common/index_encoder.h | 30 + 4700 src/liblzma/common/index_hash.c | 340 ++++++++++ 4701 src/liblzma/common/info.c | 814 ------------------------ 4702 src/liblzma/common/memory_usage.c | 1 - 4703 src/liblzma/common/metadata_decoder.c | 578 ----------------- 4704 src/liblzma/common/metadata_decoder.h | 31 - 4705 src/liblzma/common/metadata_encoder.c | 435 ------------- 4706 src/liblzma/common/metadata_encoder.h | 30 - 4707 src/liblzma/common/raw_common.c | 178 ++---- 4708 src/liblzma/common/raw_common.h | 5 +- 4709 src/liblzma/common/raw_decoder.c | 19 +- 4710 src/liblzma/common/raw_decoder.h | 3 +- 4711 src/liblzma/common/raw_encoder.c | 101 +--- 4712 src/liblzma/common/raw_encoder.h | 3 +- 4713 src/liblzma/common/stream_common.h | 3 + 4714 src/liblzma/common/stream_decoder.c | 458 ++++---------- 4715 src/liblzma/common/stream_decoder.h | 28 + 4716 src/liblzma/common/stream_encoder.c | 282 ++++++++ 4717 src/liblzma/common/stream_encoder.h | 30 + 4718 src/liblzma/common/stream_encoder_multi.c | 445 ------------- 4719 src/liblzma/common/stream_encoder_multi.h | 26 - 4720 src/liblzma/common/stream_encoder_single.c | 219 ------- 4721 src/liblzma/common/stream_flags_decoder.c | 260 ++------- 4722 src/liblzma/common/stream_flags_encoder.c | 56 +- 4723 src/liblzma/common/stream_flags_equal.c | 36 + 4724 src/liblzma/common/vli_decoder.c | 68 ++- 4725 src/liblzma/common/vli_encoder.c | 59 +- 4726 src/liblzma/common/vli_reverse_decoder.c | 55 -- 4727 src/liblzma/lz/lz_decoder.c | 6 +- 4728 src/liblzma/lz/lz_decoder.h | 10 +- 4729 src/liblzma/lzma/lzma_decoder.c | 13 +- 4730 src/liblzma/lzma/lzma_decoder.h | 10 +- 4731 src/liblzma/simple/simple_coder.c | 29 +- 4732 src/liblzma/simple/simple_private.h | 4 - 4733 src/liblzma/subblock/subblock_decoder.c | 106 +--- 4734 src/liblzma/subblock/subblock_decoder_helper.c | 5 +- 4735 src/liblzma/subblock/subblock_encoder.c | 8 +- 4736 src/lzma/args.c | 22 +- 4737 src/lzma/args.h | 2 - 4738 src/lzma/error.c | 6 + 4739 src/lzma/process.c | 26 +- 4740 src/lzmadec/lzmadec.c | 8 +- 4741 tests/Makefile.am | 5 +- 4742 tests/test_block_header.c | 411 +++++-------- 4743 tests/test_compress.sh | 65 +-- 4744 tests/test_filter_flags.c | 116 ++--- 4745 tests/test_index.c | 504 ++++++++++++++- 4746 tests/test_info.c | 717 --------------------- 4747 tests/test_stream_flags.c | 134 ++-- 4748 tests/tests.h | 14 +- 4749 115 files changed, 4845 insertions(+), 8155 deletions(-) 4750 4751commit bf6348d1a3ff09fdc06940468f318f75ffa6af11 4752Author: Lasse Collin <lasse.collin@tukaani.org> 4753Date: 2008-06-17 15:03:46 +0300 4754 4755 Update the file format specification draft. The new one is 4756 a lot simpler than the previous versions, but it also means 4757 that the existing code will change a lot. 4758 4759 doc/file-format.txt | 1794 +++++++++++++++------------------------------------ 4760 1 files changed, 508 insertions(+), 1286 deletions(-) 4761 4762commit 803194ddd26f01ff60ba4e9924c6087a56b29827 4763Author: Lasse Collin <lasse.collin@tukaani.org> 4764Date: 2008-06-11 21:42:47 +0300 4765 4766 Fix uninitialized variable in LZMA encoder. This was 4767 introduced in 369f72fd656f537a9a8e06f13e6d0d4c242be22f. 4768 4769 src/liblzma/lzma/lzma_encoder_init.c | 2 ++ 4770 1 files changed, 2 insertions(+), 0 deletions(-) 4771 4772commit 0ea98e52ba87453497b1355c51f13bad55c8924a 4773Author: Lasse Collin <lasse.collin@tukaani.org> 4774Date: 2008-06-11 15:08:44 +0300 4775 4776 Improve command line integer parsing a little in lzma and 4777 lzmadec to make them accept also KiB in addition Ki etc. 4778 Fix also memory usage information in lzmadec --help. 4779 4780 src/lzma/util.c | 23 ++++++++++++++--------- 4781 src/lzmadec/lzmadec.c | 31 ++++++++++++++++++------------- 4782 2 files changed, 32 insertions(+), 22 deletions(-) 4783 4784commit 436fa5fae96d4e35759aed33066060f09ee8c6ef 4785Author: Lasse Collin <lasse.collin@tukaani.org> 4786Date: 2008-06-10 20:36:12 +0300 4787 4788 s/decompressed/compressed/ in the command line tool's 4789 error message. 4790 4791 src/lzma/main.c | 2 +- 4792 1 files changed, 1 insertions(+), 1 deletions(-) 4793 4794commit 369f72fd656f537a9a8e06f13e6d0d4c242be22f 4795Author: Lasse Collin <lasse.collin@tukaani.org> 4796Date: 2008-06-01 12:48:17 +0300 4797 4798 Fix a buffer overflow in the LZMA encoder. It was due to my 4799 misunderstanding of the code. There's no tiny fix for this 4800 problem, so I also cleaned up the code in general. 4801 4802 This reduces the speed of the encoder 2-5 % in the fastest 4803 compression mode ("lzma -1"). High compression modes should 4804 have no noticeable performance difference. 4805 4806 This commit breaks things (especially LZMA_SYNC_FLUSH) but I 4807 will fix them once the new format and LZMA2 has been roughly 4808 implemented. Plain LZMA won't support LZMA_SYNC_FLUSH at all 4809 and won't be supported in the new .lzma format. This may 4810 change still but this is what it looks like now. 4811 4812 Support for known uncompressed size (that is, LZMA or LZMA2 4813 without EOPM) is likely to go away. This means there will 4814 be API changes. 4815 4816 src/liblzma/lz/lz_encoder.c | 113 +----- 4817 src/liblzma/lz/lz_encoder.h | 18 +- 4818 src/liblzma/lzma/lzma_encoder.c | 551 +++++++++++------------- 4819 src/liblzma/lzma/lzma_encoder_getoptimum.c | 59 ++- 4820 src/liblzma/lzma/lzma_encoder_getoptimumfast.c | 4 +- 4821 src/liblzma/lzma/lzma_encoder_init.c | 9 +- 4822 src/liblzma/lzma/lzma_encoder_private.h | 15 +- 4823 src/liblzma/rangecoder/range_encoder.h | 383 +++++++++-------- 4824 8 files changed, 532 insertions(+), 620 deletions(-) 4825 4826commit e55e0e873ce2511325749d415ae547d62ab5f00d 4827Author: Lasse Collin <lasse.collin@tukaani.org> 4828Date: 2008-05-30 11:53:41 +0300 4829 4830 Typo fixes from meyering. 4831 4832 doc/faq.txt | 4 ++-- 4833 doc/liblzma-advanced.txt | 2 +- 4834 2 files changed, 3 insertions(+), 3 deletions(-) 4835 4836commit ed6664146fcbe9cc4a3b23b31632182ed812ea93 4837Author: Lasse Collin <lasse.collin@tukaani.org> 4838Date: 2008-05-11 14:24:42 +0300 4839 4840 Remove support for pre-C89 libc versions that lack memcpy, 4841 memmove, and memset. 4842 4843 configure.ac | 2 +- 4844 src/common/sysdefs.h | 15 ++------------- 4845 src/liblzma/common/allocator.c | 2 +- 4846 3 files changed, 4 insertions(+), 15 deletions(-) 4847 4848commit b09464bf9ae694afc2d1dc26188ac4e2e8af0a63 4849Author: Lasse Collin <lasse.collin@tukaani.org> 4850Date: 2008-05-11 14:17:21 +0300 4851 4852 Improved C99 compiler detection in configure.ac. It will 4853 pass -std=gnu99 instead of -std=c99 to GCC now, but -pedantic 4854 should still give warnings about GNU extensions like before 4855 except with some special keywords like asm(). 4856 4857 configure.ac | 24 ++++++++++++------------ 4858 1 files changed, 12 insertions(+), 12 deletions(-) 4859 4860commit 11de5d5267f7a0a7f0a4d34eec147e65eaf9f9cf 4861Author: Lasse Collin <lasse.collin@tukaani.org> 4862Date: 2008-05-06 15:15:07 +0300 4863 4864 Bunch of grammar fixes from meyering. 4865 4866 doc/liblzma-security.txt | 8 ++++---- 4867 src/liblzma/api/lzma/memlimit.h | 6 +++--- 4868 src/lzma/help.c | 2 +- 4869 tests/files/README | 2 +- 4870 4 files changed, 9 insertions(+), 9 deletions(-) 4871 4872commit dc192b6343ae36276c85fcf7ef6006147816eadc 4873Author: Lasse Collin <lasse.collin@tukaani.org> 4874Date: 2008-05-06 13:41:05 +0300 4875 4876 Typo fix 4877 4878 src/liblzma/api/lzma/init.h | 2 +- 4879 1 files changed, 1 insertions(+), 1 deletions(-) 4880 4881commit 944b62b93239b27b338d117f2668c0e95849659b 4882Author: Lasse Collin <lasse.collin@tukaani.org> 4883Date: 2008-05-04 22:29:27 +0300 4884 4885 Don't print an error message on broken pipe unless --verbose 4886 is used. 4887 4888 src/lzma/io.c | 15 ++++++++++++++- 4889 1 files changed, 14 insertions(+), 1 deletions(-) 4890 4891commit 8e074349e47ea6832b8fdf9244e581d453733433 4892Author: Lasse Collin <lasse.collin@tukaani.org> 4893Date: 2008-04-30 22:16:17 +0300 4894 4895 Fix a crash with --format=alone if other filters than LZMA 4896 are specified on the command line. 4897 4898 src/lzma/args.c | 9 +++++++++ 4899 1 files changed, 9 insertions(+), 0 deletions(-) 4900 4901commit 2f361ac19b7fd3abcd362de4d470e6a9eb495b73 4902Author: Lasse Collin <lasse.collin@tukaani.org> 4903Date: 2008-04-28 17:08:27 +0300 4904 4905 Updated THANKS. 4906 4907 THANKS | 1 + 4908 1 files changed, 1 insertions(+), 0 deletions(-) 4909 4910commit 3be21fb12f4cec2cf07799e8960382f4cb375369 4911Author: Lasse Collin <lasse.collin@tukaani.org> 4912Date: 2008-04-28 17:06:34 +0300 4913 4914 Fixed wrong spelling "limitter" to "limiter". This affects 4915 liblzma's API. 4916 4917 doc/liblzma-security.txt | 14 +- 4918 src/liblzma/api/lzma/base.h | 4 +- 4919 src/liblzma/api/lzma/memlimit.h | 10 +- 4920 src/liblzma/api/lzma/stream.h | 4 +- 4921 src/liblzma/common/Makefile.am | 2 +- 4922 src/liblzma/common/memory_limiter.c | 288 ++++++++++++++++++++++++++++++++++ 4923 src/liblzma/common/memory_limitter.c | 288 ---------------------------------- 4924 src/lzma/list.c | 6 +- 4925 src/lzmadec/lzmadec.c | 12 +- 4926 tests/test_memlimit.c | 4 +- 4927 10 files changed, 316 insertions(+), 316 deletions(-) 4928 4929commit beeb81060821dfec4e7898e0d44b7900dcb2215e 4930Author: Lasse Collin <lasse.collin@tukaani.org> 4931Date: 2008-04-25 15:39:50 +0300 4932 4933 Prevent LZ encoder from hanging with known uncompressed 4934 size. The "fix" breaks LZMA_SYNC_FLUSH at end of stream 4935 with known uncompressed size, but since it currently seems 4936 likely that support for encoding with known uncompressed 4937 size will go away anyway, I'm not fixing this problem now. 4938 4939 src/liblzma/lz/lz_encoder.c | 9 +++++++-- 4940 1 files changed, 7 insertions(+), 2 deletions(-) 4941 4942commit c324325f9f13cdeb92153c5d00962341ba070ca2 4943Author: Lasse Collin <lasse.collin@tukaani.org> 4944Date: 2008-04-25 13:58:56 +0300 4945 4946 Removed src/liblzma/common/sysdefs.h symlink, which was 4947 annoying, because "make dist" put two copies of sysdefs.h 4948 into the tarball instead of the symlink. 4949 4950 src/liblzma/check/crc32_table.c | 2 +- 4951 src/liblzma/check/crc64_table.c | 2 +- 4952 src/liblzma/common/Makefile.am | 1 - 4953 src/liblzma/common/common.h | 2 +- 4954 src/liblzma/common/sysdefs.h | 1 - 4955 5 files changed, 3 insertions(+), 5 deletions(-) 4956 4957commit d3ba30243c75c13d094de1793f9c58acdbacc692 4958Author: Lasse Collin <lasse.collin@tukaani.org> 4959Date: 2008-04-25 13:41:29 +0300 4960 4961 Added memusage.c to debug directory. 4962 4963 debug/Makefile.am | 3 +- 4964 debug/memusage.c | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 4965 2 files changed, 57 insertions(+), 1 deletions(-) 4966 4967commit 8f804c29aa8471ccd6438ddca254092b8869ca52 4968Author: Lasse Collin <lasse.collin@tukaani.org> 4969Date: 2008-04-25 13:32:35 +0300 4970 4971 Bumped version number to 4.999.3alpha. It will become 5.0.0 4972 once we have a stable release (won't be very soon). The 4973 version number is no longer related to version of LZMA SDK. 4974 4975 Made some small Automake-related changes to toplevel 4976 Makefile.am and configure.ac. 4977 4978 Makefile.am | 7 +++++-- 4979 README | 29 +++++++++++++++++++++++++++++ 4980 configure.ac | 4 ++-- 4981 src/liblzma/api/lzma/version.h | 22 ++++++++++------------ 4982 4 files changed, 46 insertions(+), 16 deletions(-) 4983 4984commit c99037ea10f121cbacf60c37a36c29768ae53447 4985Author: Lasse Collin <lasse.collin@tukaani.org> 4986Date: 2008-04-24 20:25:39 +0300 4987 4988 Fix a memory leak by calling free(extra->data) in 4989 lzma_extra_free(). 4990 4991 src/liblzma/common/extra.c | 1 + 4992 1 files changed, 1 insertions(+), 0 deletions(-) 4993 4994commit 22ba3b0b5043fa481903482ce85015fe775939e5 4995Author: Lasse Collin <lasse.collin@tukaani.org> 4996Date: 2008-04-24 20:23:05 +0300 4997 4998 Make unlzma and lzcat symlinks. 4999 5000 src/lzma/Makefile.am | 12 ++++++++++++ 5001 1 files changed, 12 insertions(+), 0 deletions(-) 5002 5003commit 17c36422d4cbc2c70d5c83ec389406f92cd9e85e 5004Author: Lasse Collin <lasse.collin@tukaani.org> 5005Date: 2008-04-24 20:20:27 +0300 5006 5007 Fixed a bug in command line option parsing. 5008 5009 src/lzma/options.c | 2 +- 5010 1 files changed, 1 insertions(+), 1 deletions(-) 5011 5012commit 283f939974c32c47f05d495e8dea455ec646ed64 5013Author: Lasse Collin <lasse.collin@tukaani.org> 5014Date: 2008-04-24 20:19:20 +0300 5015 5016 Added two assert()s. 5017 5018 src/liblzma/lzma/lzma_encoder.c | 4 +++- 5019 1 files changed, 3 insertions(+), 1 deletions(-) 5020 5021commit eb348a60b6e19a7c093f892434f23c4756973ffd 5022Author: Lasse Collin <lasse.collin@tukaani.org> 5023Date: 2008-04-24 19:22:53 +0300 5024 5025 Switch to uint16_t as the type of range coder probabilities. 5026 5027 src/liblzma/rangecoder/range_common.h | 25 +++++++++++++++++++------ 5028 1 files changed, 19 insertions(+), 6 deletions(-) 5029 5030commit 6c5306e312bcfd254cf654f88c04e34ba786df3d 5031Author: Lasse Collin <lasse.collin@tukaani.org> 5032Date: 2008-04-24 18:39:57 +0300 5033 5034 Fix wrong return type (uint32_t -> bool). 5035 5036 src/liblzma/lz/lz_encoder.c | 2 +- 5037 src/liblzma/lz/lz_encoder.h | 2 +- 5038 2 files changed, 2 insertions(+), 2 deletions(-) 5039 5040commit 712cfe3ebfd24df24d8896b1315c53c3bc4369c8 5041Author: Lasse Collin <lasse.collin@tukaani.org> 5042Date: 2008-04-24 18:38:00 +0300 5043 5044 Fix data corruption in LZ encoder with LZMA_SYNC_FLUSH. 5045 5046 src/liblzma/lz/lz_encoder.c | 16 ++++++++++++++++ 5047 src/liblzma/lz/lz_encoder.h | 4 ++++ 5048 src/liblzma/lz/match_c.h | 23 ++++++++++++++++++----- 5049 3 files changed, 38 insertions(+), 5 deletions(-) 5050 5051commit bc04486e368d20b3027cde625267762aae063965 5052Author: Lasse Collin <lasse.collin@tukaani.org> 5053Date: 2008-04-24 17:33:01 +0300 5054 5055 Fix fastpos problem in Makefile.am when built with --enable-small. 5056 5057 src/liblzma/lzma/Makefile.am | 5 ++++- 5058 1 files changed, 4 insertions(+), 1 deletions(-) 5059 5060commit 7ab493924e0ed590a5121a15ee54038d238880d3 5061Author: Lasse Collin <lasse.collin@tukaani.org> 5062Date: 2008-04-24 17:30:51 +0300 5063 5064 Use 64-bit integer as range encoder's cache size. This fixes a 5065 theoretical data corruption, which should be very hard to trigger 5066 even intentionally. 5067 5068 src/liblzma/rangecoder/range_encoder.h | 2 +- 5069 1 files changed, 1 insertions(+), 1 deletions(-) 5070 5071commit 641998c3e1ecc8b598fe0eb051fab8b9535c291b 5072Author: Lasse Collin <lasse.collin@tukaani.org> 5073Date: 2008-03-24 16:38:40 +0200 5074 5075 Replaced the range decoder optimization that used arithmetic 5076 right shift with as fast version that doesn't need 5077 arithmetic right shift. Removed the related check from 5078 configure.ac. 5079 5080 configure.ac | 1 - 5081 m4/ax_c_arithmetic_rshift.m4 | 36 --------------------- 5082 src/liblzma/rangecoder/range_decoder.h | 53 +++++++++---------------------- 5083 3 files changed, 16 insertions(+), 74 deletions(-) 5084 5085commit ad999efd279d95f1e7ac555b14170e8e9020488c 5086Author: Lasse Collin <lasse.collin@tukaani.org> 5087Date: 2008-03-22 14:39:34 +0200 5088 5089 Take advantage of arithmetic right shift in range decoder. 5090 5091 src/liblzma/rangecoder/range_decoder.h | 52 ++++++++++++++++++++++--------- 5092 1 files changed, 37 insertions(+), 15 deletions(-) 5093 5094commit 03e0e8a0d7228b6ff1f0af39e2c040a4e425973d 5095Author: Lasse Collin <lasse.collin@tukaani.org> 5096Date: 2008-03-22 14:18:29 +0200 5097 5098 Added autoconf check to detect if we can use arithmetic 5099 right shift for optimizations. 5100 5101 configure.ac | 1 + 5102 m4/ax_c_arithmetic_rshift.m4 | 36 ++++++++++++++++++++++++++++++++++++ 5103 2 files changed, 37 insertions(+), 0 deletions(-) 5104 5105commit 7521bbdc83acab834594a22bec50c8e1bd836298 5106Author: Lasse Collin <lasse.collin@tukaani.org> 5107Date: 2008-03-22 01:26:36 +0200 5108 5109 Update a comment to use the variable name rep_len_decoder. 5110 5111 (And BTW, the previous commit actually did change the 5112 program logic slightly.) 5113 5114 src/liblzma/lzma/lzma_decoder.c | 2 +- 5115 1 files changed, 1 insertions(+), 1 deletions(-) 5116 5117commit 63b74d000eedaebb8485f623e56864ff5ab71064 5118Author: Lasse Collin <lasse.collin@tukaani.org> 5119Date: 2008-03-22 00:57:33 +0200 5120 5121 Demystified the "state" variable in LZMA code. Use the 5122 word literal instead of char for better consistency. 5123 There are still some names with _char instead of _literal 5124 in lzma_optimum, these may be changed later. 5125 5126 Renamed length coder variables. 5127 5128 This commit doesn't change the program logic. 5129 5130 src/liblzma/lzma/lzma_common.h | 69 +++++++++++++++++++++------- 5131 src/liblzma/lzma/lzma_decoder.c | 47 ++++++++++--------- 5132 src/liblzma/lzma/lzma_encoder.c | 14 +++--- 5133 src/liblzma/lzma/lzma_encoder_getoptimum.c | 34 +++++++------- 5134 src/liblzma/lzma/lzma_encoder_init.c | 5 +- 5135 src/liblzma/lzma/lzma_encoder_private.h | 8 ++-- 5136 6 files changed, 107 insertions(+), 70 deletions(-) 5137 5138commit e6eb0a26757e851cef62b9440319a8e73b015cb9 5139Author: Lasse Collin <lasse.collin@tukaani.org> 5140Date: 2008-03-14 23:16:11 +0200 5141 5142 Fix data corruption in LZMA encoder. Note that this bug was 5143 specific to liblzma and was *not* present in LZMA SDK. 5144 5145 src/liblzma/lzma/lzma_encoder.c | 4 ++++ 5146 1 files changed, 4 insertions(+), 0 deletions(-) 5147 5148commit 7d516f5129e4373a6d57249d7f608c634c66bf12 5149Author: Lasse Collin <lasse.collin@tukaani.org> 5150Date: 2008-03-14 21:32:37 +0200 5151 5152 Fix a comment API header. 5153 5154 src/liblzma/api/lzma/lzma.h | 2 +- 5155 1 files changed, 1 insertions(+), 1 deletions(-) 5156 5157commit 748d6e4274921a350bd0a317380309717441ef9c 5158Author: Lasse Collin <lasse.collin@tukaani.org> 5159Date: 2008-03-12 23:14:50 +0200 5160 5161 Make lzma_stream.next_in const. Let's see if anyone complains. 5162 5163 src/liblzma/api/lzma/base.h | 2 +- 5164 1 files changed, 1 insertions(+), 1 deletions(-) 5165 5166commit bfde3b24a5ae25ce53c854762b6148952386b025 5167Author: Lasse Collin <lasse.collin@tukaani.org> 5168Date: 2008-03-11 15:35:34 +0200 5169 5170 Apply a minor speed optimization to LZMA decoder. 5171 5172 src/liblzma/lzma/lzma_decoder.c | 85 ++++++++++++++++++++------------------- 5173 1 files changed, 43 insertions(+), 42 deletions(-) 5174 5175commit f310c50286d9e4e9c6170bb65348c9bb430a65b4 5176Author: Lasse Collin <lasse.collin@tukaani.org> 5177Date: 2008-03-11 15:17:16 +0200 5178 5179 Initialize the last byte of the dictionary to zero so that 5180 lz_get_byte(lz, 0) returns zero. This was broken by 5181 1a3b21859818e4d8e89a1da99699233c1bfd197d. 5182 5183 src/liblzma/lz/lz_decoder.c | 1 + 5184 1 files changed, 1 insertions(+), 0 deletions(-) 5185 5186commit 5ead36cf7f823093672a4e43c3180b38c9abbaff 5187Author: Lasse Collin <lasse.collin@tukaani.org> 5188Date: 2008-03-10 15:57:55 +0200 5189 5190 Really fix the price count initialization. 5191 5192 src/liblzma/lzma/lzma_encoder_init.c | 4 ++-- 5193 1 files changed, 2 insertions(+), 2 deletions(-) 5194 5195commit d4d7feb83d1a1ded8f662a82e21e053841ca726c 5196Author: Lasse Collin <lasse.collin@tukaani.org> 5197Date: 2008-03-10 13:47:17 +0200 5198 5199 Updated THANKS. 5200 5201 THANKS | 1 + 5202 1 files changed, 1 insertions(+), 0 deletions(-) 5203 5204commit 0541c5ea63ef3c0ff85eeddb0a420e56b0c65258 5205Author: Lasse Collin <lasse.collin@tukaani.org> 5206Date: 2008-03-10 13:46:48 +0200 5207 5208 Initialize align_price_count and match_price_count in 5209 lzma_encoder_init.c. While we don't call 5210 fill_distances_prices() and fill_align_prices() in 5211 lzma_lzma_encoder_init(), we still need to initialize 5212 these two variables so that the fill functions get 5213 called in lzma_encoder_getoptimum.c in the beginning 5214 of a stream. 5215 5216 src/liblzma/lzma/lzma_encoder_init.c | 2 ++ 5217 1 files changed, 2 insertions(+), 0 deletions(-) 5218 5219commit 596fa1fac72823e4ef5bc26bb53f9090445bf748 5220Author: Lasse Collin <lasse.collin@tukaani.org> 5221Date: 2008-03-10 13:44:29 +0200 5222 5223 Always initialize lz->temp_size in lz_decoder.c. temp_size did 5224 get initialized as a side-effect after allocating a new decoder, 5225 but not when the decoder was reused. 5226 5227 src/liblzma/lz/lz_decoder.c | 11 ++++++----- 5228 1 files changed, 6 insertions(+), 5 deletions(-) 5229 5230commit 45e43e169527e7a98a8c8a821d37bf25822b764d 5231Author: Lasse Collin <lasse.collin@tukaani.org> 5232Date: 2008-03-10 13:41:25 +0200 5233 5234 Don't fill allocated memory with 0xFD when debugging is 5235 enabled. It hides errors from Valgrind. 5236 5237 src/liblzma/common/allocator.c | 7 ++++--- 5238 1 files changed, 4 insertions(+), 3 deletions(-) 5239 5240commit c0e19e0662205f81a86da8903cdc325d50635870 5241Author: Lasse Collin <lasse.collin@tukaani.org> 5242Date: 2008-02-28 10:24:31 +0200 5243 5244 Remove two redundant validity checks from the LZMA decoder. 5245 These are already checked elsewhere, so omitting these 5246 gives (very) tiny speed up. 5247 5248 src/liblzma/lzma/lzma_decoder.c | 23 ++++------------------- 5249 1 files changed, 4 insertions(+), 19 deletions(-) 5250 5251commit de7485806284d1614095ae8cb2ebbb5d74c9ac45 5252Author: Lasse Collin <lasse.collin@tukaani.org> 5253Date: 2008-02-06 13:25:32 +0200 5254 5255 Tiny clean up to file-format.txt. 5256 5257 doc/file-format.txt | 6 +++--- 5258 1 files changed, 3 insertions(+), 3 deletions(-) 5259 5260commit 1a3b21859818e4d8e89a1da99699233c1bfd197d 5261Author: Lasse Collin <lasse.collin@tukaani.org> 5262Date: 2008-02-02 14:51:06 +0200 5263 5264 Don't memzero() the history buffer when initializing LZ 5265 decoder. There's no danger of information leak here, so 5266 it isn't required. Doing memzero() takes a lot of time 5267 with large dictionaries, which could make it easier to 5268 construct DoS attack to consume too much CPU time. 5269 5270 src/liblzma/lz/lz_decoder.c | 7 +++---- 5271 1 files changed, 3 insertions(+), 4 deletions(-) 5272 5273commit 7e796e312bf644ea95aea0ff85480f47cfa30fc0 5274Author: Lasse Collin <lasse.collin@tukaani.org> 5275Date: 2008-02-01 08:39:26 +0200 5276 5277 Do uncompressed size validation in raw encoder. This way 5278 it gets done for not only raw encoder, but also Block 5279 and LZMA_Alone encoders. 5280 5281 src/liblzma/common/raw_encoder.c | 90 ++++++++++++++++++++++++++++++------- 5282 1 files changed, 73 insertions(+), 17 deletions(-) 5283 5284commit 7dd48578a3853e0cfab9f1830bc30927173ec4bc 5285Author: Lasse Collin <lasse.collin@tukaani.org> 5286Date: 2008-02-01 08:32:05 +0200 5287 5288 Avoid unneeded function call in raw_common.c. 5289 5290 src/liblzma/common/raw_common.c | 20 +++++++++++--------- 5291 1 files changed, 11 insertions(+), 9 deletions(-) 5292 5293commit b596fac963c3ff96f615d4d9b427a213ec341211 5294Author: Lasse Collin <lasse.collin@tukaani.org> 5295Date: 2008-01-26 21:42:38 +0200 5296 5297 Updated THANKS. 5298 5299 THANKS | 1 + 5300 1 files changed, 1 insertions(+), 0 deletions(-) 5301 5302commit e9f6e9c075ad93141a568d94f7d4eb0f2edbd6c2 5303Author: Lasse Collin <lasse.collin@tukaani.org> 5304Date: 2008-01-26 21:40:23 +0200 5305 5306 Added note.GNU-stack to x86 assembler files. It is needed 5307 when using non-executable stack. 5308 5309 src/liblzma/check/crc32_x86.S | 9 +++++++++ 5310 src/liblzma/check/crc64_x86.S | 9 +++++++++ 5311 2 files changed, 18 insertions(+), 0 deletions(-) 5312 5313commit 4c7ad179c78f97f68ad548cb40a9dfa6871655ae 5314Author: Lasse Collin <lasse.collin@tukaani.org> 5315Date: 2008-01-26 19:12:50 +0200 5316 5317 Added api/lzma/easy.h. I had forgot to add this to the 5318 git repo. Thanks to Stephan Kulow. 5319 5320 src/liblzma/api/lzma/easy.h | 174 +++++++++++++++++++++++++++++++++++++++++++ 5321 1 files changed, 174 insertions(+), 0 deletions(-) 5322 5323commit 288b232f54c3692cd36f471d4042f51daf3ea79f 5324Author: Lasse Collin <lasse.collin@tukaani.org> 5325Date: 2008-01-26 11:09:17 +0200 5326 5327 Added more test files. 5328 5329 tests/files/README | 11 +++++++++++ 5330 tests/files/bad-multi-none-header_7.lzma | Bin 0 -> 59 bytes 5331 tests/files/good-single-sparc-lzma.lzma | Bin 0 -> 2263 bytes 5332 tests/files/good-single-x86-lzma.lzma | Bin 0 -> 1909 bytes 5333 4 files changed, 11 insertions(+), 0 deletions(-) 5334 5335commit c467b0defccf233d0c79234407bc38d7d09574d3 5336Author: Lasse Collin <lasse.collin@tukaani.org> 5337Date: 2008-01-26 10:47:55 +0200 5338 5339 Added more test files. 5340 5341 tests/files/README | 6 ++++++ 5342 tests/files/bad-multi-none-block_3.lzma | Bin 0 -> 58 bytes 5343 tests/files/good-multi-none-block_2.lzma | Bin 0 -> 58 bytes 5344 3 files changed, 6 insertions(+), 0 deletions(-) 5345 5346commit f9842f712732c482f2def9f24437851e57dd83f8 5347Author: Lasse Collin <lasse.collin@tukaani.org> 5348Date: 2008-01-26 00:25:34 +0200 5349 5350 Return LZMA_HEADER_ERROR if LZMA_SYNC_FLUSH is used with any 5351 of the so called simple filters. If there is demand, limited 5352 support for LZMA_SYNC_FLUSH may be added in future. 5353 5354 After this commit, using LZMA_SYNC_FLUSH shouldn't cause 5355 undefined behavior in any situation. 5356 5357 src/liblzma/api/lzma/simple.h | 9 +++++++++ 5358 src/liblzma/simple/simple_coder.c | 8 ++++++++ 5359 2 files changed, 17 insertions(+), 0 deletions(-) 5360 5361commit e988ea1d1a286dd0f27af0657f9665d5cd8573aa 5362Author: Lasse Collin <lasse.collin@tukaani.org> 5363Date: 2008-01-25 23:50:35 +0200 5364 5365 Added more Multi-Block test files. Improved some 5366 descriptions in the test files' README. 5367 5368 tests/files/README | 34 ++++++++++++++++++++++++----- 5369 tests/files/bad-multi-none-block_1.lzma | Bin 0 -> 66 bytes 5370 tests/files/bad-multi-none-block_2.lzma | Bin 0 -> 66 bytes 5371 tests/files/good-multi-none-block_1.lzma | Bin 0 -> 66 bytes 5372 4 files changed, 28 insertions(+), 6 deletions(-) 5373 5374commit 4441e004185cd4c61bda184010eca5924c9dec87 5375Author: Lasse Collin <lasse.collin@tukaani.org> 5376Date: 2008-01-25 23:12:36 +0200 5377 5378 Combine lzma_options_block validation needed by both Block 5379 encoder and decoder, and put the shared things to 5380 block_private.h. Improved the checks a little so that 5381 they may detect too big Compressed Size at initialization 5382 time if lzma_options_block.total_size or .total_limit is 5383 known. 5384 5385 Allow encoding and decoding Blocks with combinations of 5386 fields that are not allowed by the file format specification. 5387 Doing this requires that the application passes such a 5388 combination in lzma_options_lzma; liblzma doesn't do that, 5389 but it's not impossible that someone could find them useful 5390 in some custom file format. 5391 5392 src/liblzma/common/block_decoder.c | 37 +++++++++++---------------- 5393 src/liblzma/common/block_encoder.c | 32 ++++------------------ 5394 src/liblzma/common/block_private.h | 50 ++++++++++++++++++++++++++++++++++++ 5395 3 files changed, 71 insertions(+), 48 deletions(-) 5396 5397commit bf4200c818fcf9102e56328d39cde91bfa13cfb6 5398Author: Lasse Collin <lasse.collin@tukaani.org> 5399Date: 2008-01-25 19:21:22 +0200 5400 5401 Added test_memlimit.c. 5402 5403 tests/Makefile.am | 2 + 5404 tests/test_memlimit.c | 114 +++++++++++++++++++++++++++++++++++++++++++++++++ 5405 2 files changed, 116 insertions(+), 0 deletions(-) 5406 5407commit 7b8fc7e6b501a32a36636dac79ecb57099269005 5408Author: Lasse Collin <lasse.collin@tukaani.org> 5409Date: 2008-01-25 19:20:28 +0200 5410 5411 Improved the memory limitter: 5412 - Added lzma_memlimit_max() and lzma_memlimit_reached() 5413 API functions. 5414 - Added simple estimation of malloc()'s memory usage 5415 overhead. 5416 - Fixed integer overflow detection in lzma_memlimit_alloc(). 5417 - Made some white space cleanups and added more comments. 5418 5419 The description of lzma_memlimit_max() in memlimit.h is bad 5420 and should be improved. 5421 5422 src/liblzma/api/lzma/memlimit.h | 35 ++++++++++++ 5423 src/liblzma/common/memory_limitter.c | 97 +++++++++++++++++++++++++++++----- 5424 2 files changed, 118 insertions(+), 14 deletions(-) 5425 5426commit e0c3d0043da2f670cfdb1abbb3223d5a594ad8db 5427Author: Lasse Collin <lasse.collin@tukaani.org> 5428Date: 2008-01-25 13:55:52 +0200 5429 5430 Use more parenthesis in succeed() macro in tests/tests.h. 5431 5432 tests/tests.h | 2 +- 5433 1 files changed, 1 insertions(+), 1 deletions(-) 5434 5435commit 1fd76d488179580d37f31ee11948f4932aed31fd 5436Author: Lasse Collin <lasse.collin@tukaani.org> 5437Date: 2008-01-24 14:49:34 +0200 5438 5439 Added more Multi-Block Stream test files. 5440 5441 tests/files/README | 23 +++++++++++++++++++++++ 5442 tests/files/bad-multi-none-header_2.lzma | Bin 0 -> 61 bytes 5443 tests/files/bad-multi-none-header_3.lzma | Bin 0 -> 59 bytes 5444 tests/files/bad-multi-none-header_4.lzma | Bin 0 -> 59 bytes 5445 tests/files/bad-multi-none-header_5.lzma | Bin 0 -> 58 bytes 5446 tests/files/bad-multi-none-header_6.lzma | Bin 0 -> 59 bytes 5447 tests/files/good-multi-none-header_3.lzma | Bin 0 -> 59 bytes 5448 7 files changed, 23 insertions(+), 0 deletions(-) 5449 5450commit 6e27b1098a28f4ce09bfa6df68ad94182dfc2936 5451Author: Lasse Collin <lasse.collin@tukaani.org> 5452Date: 2008-01-24 00:46:05 +0200 5453 5454 Added bunch of test files containing Multi-Block Streams. 5455 5456 tests/files/README | 53 +++++++++++++++++++++++++++++ 5457 tests/files/bad-multi-none-1.lzma | Bin 0 -> 54 bytes 5458 tests/files/bad-multi-none-2.lzma | Bin 0 -> 53 bytes 5459 tests/files/bad-multi-none-3.lzma | Bin 0 -> 53 bytes 5460 tests/files/bad-multi-none-extra_1.lzma | Bin 0 -> 54 bytes 5461 tests/files/bad-multi-none-extra_2.lzma | Bin 0 -> 54 bytes 5462 tests/files/bad-multi-none-extra_3.lzma | Bin 0 -> 55 bytes 5463 tests/files/bad-multi-none-header_1.lzma | Bin 0 -> 57 bytes 5464 tests/files/bad-multi-none-index_1.lzma | Bin 0 -> 51 bytes 5465 tests/files/bad-multi-none-index_2.lzma | Bin 0 -> 49 bytes 5466 tests/files/bad-multi-none-index_3.lzma | Bin 0 -> 51 bytes 5467 tests/files/bad-multi-none-index_4.lzma | Bin 0 -> 51 bytes 5468 tests/files/good-multi-none-1.lzma | Bin 0 -> 75 bytes 5469 tests/files/good-multi-none-2.lzma | Bin 0 -> 53 bytes 5470 tests/files/good-multi-none-extra_1.lzma | Bin 0 -> 51 bytes 5471 tests/files/good-multi-none-extra_2.lzma | Bin 0 -> 79 bytes 5472 tests/files/good-multi-none-extra_3.lzma | Bin 0 -> 55 bytes 5473 tests/files/good-multi-none-header_1.lzma | Bin 0 -> 58 bytes 5474 tests/files/good-multi-none-header_2.lzma | Bin 0 -> 66 bytes 5475 19 files changed, 53 insertions(+), 0 deletions(-) 5476 5477commit db9df0a9609c01a00a227329fb96e983971040f5 5478Author: Lasse Collin <lasse.collin@tukaani.org> 5479Date: 2008-01-23 23:43:00 +0200 5480 5481 Fix decoding of empty Metadata Blocks, that don't have 5482 even the Metadata Flags field. Earlier the code allowed 5483 such files; now they are prohibited as the file format 5484 specification requires. 5485 5486 src/liblzma/common/metadata_decoder.c | 4 +++- 5487 1 files changed, 3 insertions(+), 1 deletions(-) 5488 5489commit 765f0b05f6e95ed9194fb90819cee189ebbac36b 5490Author: Lasse Collin <lasse.collin@tukaani.org> 5491Date: 2008-01-23 23:38:18 +0200 5492 5493 Fix a bug related to 99e12af4e2b866c011fe0106cd1e0bfdcc8fe9c6. 5494 lzma_metadata.header_metadata_size was not properly set to 5495 zero if the Metadata had only the Metadata Flags field. 5496 5497 src/liblzma/common/metadata_decoder.c | 13 +++++++------ 5498 1 files changed, 7 insertions(+), 6 deletions(-) 5499 5500commit 3a7cc5c3dec7b078941f961b0393b86c418883b6 5501Author: Lasse Collin <lasse.collin@tukaani.org> 5502Date: 2008-01-23 23:35:49 +0200 5503 5504 Fix decoding of Extra Records that have empty Data. 5505 5506 src/liblzma/common/metadata_decoder.c | 13 ++++++++++++- 5507 1 files changed, 12 insertions(+), 1 deletions(-) 5508 5509commit e5fdec93e273855c1bcc2579b83cfb481a9a1492 5510Author: Lasse Collin <lasse.collin@tukaani.org> 5511Date: 2008-01-23 22:02:38 +0200 5512 5513 Add the trailing '\0' to lzma_extra.data as the API header 5514 already documents. 5515 5516 src/liblzma/common/metadata_decoder.c | 4 +++- 5517 1 files changed, 3 insertions(+), 1 deletions(-) 5518 5519commit ed40dc5a2c28a8dfccab8c165b3780738eeef93e 5520Author: Lasse Collin <lasse.collin@tukaani.org> 5521Date: 2008-01-23 21:21:21 +0200 5522 5523 Added debug/full_flush.c. 5524 5525 debug/Makefile.am | 3 +- 5526 debug/full_flush.c | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 5527 2 files changed, 107 insertions(+), 1 deletions(-) 5528 5529commit ae0cd09a666a1682da8fc09487322227679e218d 5530Author: Lasse Collin <lasse.collin@tukaani.org> 5531Date: 2008-01-23 21:05:33 +0200 5532 5533 Return LZMA_STREAM_END instead of LZMA_OK if 5534 LZMA_SYNC_FLUSH or LZMA_FULL_FLUSH is used when 5535 there's no unfinished Block open. 5536 5537 src/liblzma/common/stream_encoder_multi.c | 6 +++++- 5538 1 files changed, 5 insertions(+), 1 deletions(-) 5539 5540commit 0e80ded13dfceb98f9494cbb5381a95eb44d03db 5541Author: Lasse Collin <lasse.collin@tukaani.org> 5542Date: 2008-01-23 20:05:01 +0200 5543 5544 Added bad-single-none-footer_filter_flags.lzma and 5545 bad-single-none-too_long_vli.lzma. 5546 5547 tests/files/README | 5 +++++ 5548 .../files/bad-single-none-footer_filter_flags.lzma | Bin 0 -> 30 bytes 5549 tests/files/bad-single-none-too_long_vli.lzma | Bin 0 -> 39 bytes 5550 3 files changed, 5 insertions(+), 0 deletions(-) 5551 5552commit 8c8eb14055d8dd536b1b1c58fb284d34bb8ed1dd 5553Author: Lasse Collin <lasse.collin@tukaani.org> 5554Date: 2008-01-23 13:42:35 +0200 5555 5556 Fixed a typo. 5557 5558 src/liblzma/subblock/subblock_decoder_helper.c | 2 +- 5559 1 files changed, 1 insertions(+), 1 deletions(-) 5560 5561commit 980f65a9a10160c4d105767871e3002b9aaba3e0 5562Author: Lasse Collin <lasse.collin@tukaani.org> 5563Date: 2008-01-23 13:40:45 +0200 5564 5565 Fix a memory leak in the Subblock encoder. 5566 5567 src/liblzma/subblock/subblock_encoder.c | 1 + 5568 1 files changed, 1 insertions(+), 0 deletions(-) 5569 5570commit 99e12af4e2b866c011fe0106cd1e0bfdcc8fe9c6 5571Author: Lasse Collin <lasse.collin@tukaani.org> 5572Date: 2008-01-23 13:36:07 +0200 5573 5574 Fix Size of Header Metadata Block handling. Now 5575 lzma_metadata.header_metadata_size == LZMA_VLI_VALUE_UNKNOWN 5576 is not allowed at all. To indicate missing Header Metadata 5577 Block, header_metadata_size must be set to zero. This is 5578 what Metadata decoder does after this patch too. 5579 5580 Note that other missing fields in lzma_metadata are still 5581 indicated with LZMA_VLI_VALUE_UNKNOWN. This isn't as 5582 illogical as it sounds at first, because missing Size of 5583 Header Metadata Block means that Header Metadata Block is 5584 not present in the Stream. With other Metadata fields, 5585 a missing field means only that the value is unknown. 5586 5587 src/liblzma/common/info.c | 13 ++++--------- 5588 src/liblzma/common/metadata_decoder.c | 6 ++++++ 5589 src/liblzma/common/metadata_encoder.c | 11 +++++------ 5590 tests/test_info.c | 4 ++-- 5591 4 files changed, 17 insertions(+), 17 deletions(-) 5592 5593commit 58b78ab20c1bcced45cf71ae6684868fc90b4b81 5594Author: Lasse Collin <lasse.collin@tukaani.org> 5595Date: 2008-01-23 13:15:55 +0200 5596 5597 Fix a memory leak in metadata_decoder.c. 5598 5599 src/liblzma/common/metadata_decoder.c | 1 + 5600 1 files changed, 1 insertions(+), 0 deletions(-) 5601 5602commit 4d8cdbdab44400fd98f0f18a0f701e27cd1acdae 5603Author: Lasse Collin <lasse.collin@tukaani.org> 5604Date: 2008-01-23 13:13:58 +0200 5605 5606 Fix the fix 863028cb7ad6d8d0455fa69348f56b376d7b908f which 5607 just moved to problem. Now it's really fixed. 5608 5609 src/liblzma/common/info.c | 5 ++++- 5610 1 files changed, 4 insertions(+), 1 deletions(-) 5611 5612commit 67321de963ccf69410b3868b8e31534fe18a90de 5613Author: Lasse Collin <lasse.collin@tukaani.org> 5614Date: 2008-01-23 00:21:04 +0200 5615 5616 Take advantage of return_if_error() macro in 5617 lzma_info_metadata_set() in info.c. 5618 5619 src/liblzma/common/info.c | 24 ++++++++---------------- 5620 1 files changed, 8 insertions(+), 16 deletions(-) 5621 5622commit 863028cb7ad6d8d0455fa69348f56b376d7b908f 5623Author: Lasse Collin <lasse.collin@tukaani.org> 5624Date: 2008-01-23 00:18:32 +0200 5625 5626 Fixed a dangling pointer that caused invalid free(). 5627 5628 src/liblzma/common/info.c | 1 + 5629 1 files changed, 1 insertions(+), 0 deletions(-) 5630 5631commit cf49f42a6bd40143f54a6b10d6e605599e958c0b 5632Author: Lasse Collin <lasse.collin@tukaani.org> 5633Date: 2008-01-22 22:49:24 +0200 5634 5635 Added lzma_easy_* functions. These should make using 5636 liblzma as easy as using zlib, because the easy API 5637 don't require developers to know any fancy LZMA options. 5638 5639 Note that Multi-Block Stream encoding is currently broken. 5640 The easy API should be OK, the bug(s) are elsewhere. 5641 5642 src/liblzma/api/Makefile.am | 1 + 5643 src/liblzma/api/lzma.h | 1 + 5644 src/liblzma/common/Makefile.am | 5 ++ 5645 src/liblzma/common/easy_common.c | 54 +++++++++++++++ 5646 src/liblzma/common/easy_common.h | 28 ++++++++ 5647 src/liblzma/common/easy_multi.c | 103 +++++++++++++++++++++++++++++ 5648 src/liblzma/common/easy_single.c | 37 ++++++++++ 5649 src/liblzma/common/stream_encoder_multi.c | 3 +- 5650 src/liblzma/common/stream_encoder_multi.h | 26 +++++++ 5651 9 files changed, 256 insertions(+), 2 deletions(-) 5652 5653commit 1747b85a43abc1c3f152dbd349be2ef4089ecf6a 5654Author: Lasse Collin <lasse.collin@tukaani.org> 5655Date: 2008-01-22 21:16:22 +0200 5656 5657 Fix Multi-Block Stream encoder's EOPM usage. 5658 5659 src/liblzma/common/stream_encoder_multi.c | 2 +- 5660 1 files changed, 1 insertions(+), 1 deletions(-) 5661 5662commit 0ed6f1adcea540fb9593ca115d36de537f7f0dc6 5663Author: Lasse Collin <lasse.collin@tukaani.org> 5664Date: 2008-01-22 00:15:11 +0200 5665 5666 Made lzma_extra pointers const in lzma_options_stream. 5667 5668 src/liblzma/api/lzma/stream.h | 4 ++-- 5669 src/liblzma/common/stream_encoder_multi.c | 8 ++++++-- 5670 2 files changed, 8 insertions(+), 4 deletions(-) 5671 5672commit 305afa38f64c75af8e81c4167e2d8fa8d85b53a4 5673Author: Lasse Collin <lasse.collin@tukaani.org> 5674Date: 2008-01-20 20:15:21 +0200 5675 5676 Updated debug/sync_flush.c. 5677 5678 debug/sync_flush.c | 26 ++++++++++++++++++++++++-- 5679 1 files changed, 24 insertions(+), 2 deletions(-) 5680 5681commit d53e9b77054cfade6a643e77d085273a348b189c 5682Author: Lasse Collin <lasse.collin@tukaani.org> 5683Date: 2008-01-20 20:14:26 +0200 5684 5685 Added debug/repeat.c. 5686 5687 debug/Makefile.am | 1 + 5688 debug/repeat.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 5689 2 files changed, 44 insertions(+), 0 deletions(-) 5690 5691commit 107259e306bcfc2336a0fb870fb58034c28faa52 5692Author: Lasse Collin <lasse.collin@tukaani.org> 5693Date: 2008-01-20 20:12:58 +0200 5694 5695 Fix alignment handling bugs in Subblock encoder. 5696 5697 This leaves one known alignment bug unfixed: If repeat count 5698 doesn't fit into 28-bit integer, the encoder has to split 5699 this to multiple Subblocks with Subblock Type `Repeating Data'. 5700 The extra Subblocks may have wrong alignment. Correct alignment 5701 is restored after the split Repeating Data has been completely 5702 written out. 5703 5704 Since the encoder doesn't even try to fix the alignment unless 5705 the size of Data is at least 4 bytes, to trigger this bug you 5706 need at least 4 GiB of repeating data with sequence length of 5707 4 or more bytes. Since the worst thing done by this bug is 5708 misaligned data (no data corruption), this bug simply isn't 5709 worth fixing, because a proper fix isn't simple. 5710 5711 src/liblzma/subblock/subblock_encoder.c | 170 +++++++++++++++++++++--------- 5712 1 files changed, 119 insertions(+), 51 deletions(-) 5713 5714commit e141fe18950400faaa3503ff88ac20eacd73e88c 5715Author: Lasse Collin <lasse.collin@tukaani.org> 5716Date: 2008-01-19 21:16:33 +0200 5717 5718 Implemented LZMA_SYNC_FLUSH support to the Subblock encoder. 5719 The API for handing Subfilters was changed to make it 5720 consistent with LZMA_SYNC_FLUSH. 5721 5722 A few sanity checks were added for Subfilter handling. Some 5723 small bugs were fixed. More comments were added. 5724 5725 src/liblzma/api/lzma/subblock.h | 29 ++-- 5726 src/liblzma/subblock/subblock_encoder.c | 263 +++++++++++++++++++++++-------- 5727 2 files changed, 214 insertions(+), 78 deletions(-) 5728 5729commit 23c227a864a3b69f38c6a74306161d4e6918d1cc 5730Author: Lasse Collin <lasse.collin@tukaani.org> 5731Date: 2008-01-19 15:19:21 +0200 5732 5733 Revised the Delta filter implementation. The initialization 5734 function is still shared between encoder and decoder, but the 5735 actual coding is in separate files for encoder and decoder. 5736 5737 There are now separate functions for the actual delta 5738 calculation depending on if Delta is the last filter in the 5739 chain or not. If it is the last, the new code copies the 5740 data from input to output buffer and does the delta 5741 calculation at the same time. The old code first copied the 5742 data, then did the delta in the target buffer, which required 5743 reading through the data twice. 5744 5745 Support for LZMA_SYNC_FLUSH was added to the Delta encoder. 5746 This doesn't change anything in the file format. 5747 5748 src/liblzma/common/Makefile.am | 14 +++- 5749 src/liblzma/common/delta_coder.c | 189 ------------------------------------ 5750 src/liblzma/common/delta_coder.h | 31 ------ 5751 src/liblzma/common/delta_common.c | 70 +++++++++++++ 5752 src/liblzma/common/delta_common.h | 48 +++++++++ 5753 src/liblzma/common/delta_decoder.c | 102 +++++++++++++++++++ 5754 src/liblzma/common/delta_decoder.h | 28 ++++++ 5755 src/liblzma/common/delta_encoder.c | 97 ++++++++++++++++++ 5756 src/liblzma/common/delta_encoder.h | 28 ++++++ 5757 src/liblzma/common/raw_decoder.c | 2 +- 5758 src/liblzma/common/raw_encoder.c | 2 +- 5759 11 files changed, 387 insertions(+), 224 deletions(-) 5760 5761commit 61dc82f3e306b25ce3cd3d529df9ec7a0ec04b73 5762Author: Lasse Collin <lasse.collin@tukaani.org> 5763Date: 2008-01-18 20:18:08 +0200 5764 5765 Added the debug directory and the first debug tool 5766 (sync_flush). These tools are not built unless the 5767 user runs "make" in the debug directory. 5768 5769 Makefile.am | 1 + 5770 configure.ac | 1 + 5771 debug/Makefile.am | 30 +++++++++++++ 5772 debug/README | 17 ++++++++ 5773 debug/sync_flush.c | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 5774 5 files changed, 165 insertions(+), 0 deletions(-) 5775 5776commit 0ae3208db94585eb8294b97ded387de0a3a07646 5777Author: Lasse Collin <lasse.collin@tukaani.org> 5778Date: 2008-01-18 20:13:00 +0200 5779 5780 Added test files to test usage of flush marker in LZMA. 5781 5782 tests/files/README | 12 ++++++++++++ 5783 tests/files/bad-single-lzma-flush_beginning.lzma | Bin 0 -> 53 bytes 5784 tests/files/bad-single-lzma-flush_twice.lzma | Bin 0 -> 63 bytes 5785 tests/files/good-single-lzma-flush_1.lzma | Bin 0 -> 48 bytes 5786 tests/files/good-single-lzma-flush_2.lzma | Bin 0 -> 63 bytes 5787 5 files changed, 12 insertions(+), 0 deletions(-) 5788 5789commit ab5feaf1fcc146ef9fd39360c53c290bec39524e 5790Author: Lasse Collin <lasse.collin@tukaani.org> 5791Date: 2008-01-18 20:02:52 +0200 5792 5793 Fix LZMA_SYNC_FLUSH handling in LZ and LZMA encoders. 5794 That code is now almost completely in LZ coder, where 5795 it can be shared with other LZ77-based algorithms in 5796 future. 5797 5798 src/liblzma/lz/lz_encoder.c | 34 ++++++++++++++++++++++++++-------- 5799 src/liblzma/lz/lz_encoder.h | 1 + 5800 src/liblzma/lzma/lzma_encoder.c | 27 ++------------------------- 5801 3 files changed, 29 insertions(+), 33 deletions(-) 5802 5803commit 079c4f7fc26b3d0b33d9ae7536697b45f3b73585 5804Author: Lasse Collin <lasse.collin@tukaani.org> 5805Date: 2008-01-18 17:21:24 +0200 5806 5807 Don't add -g to CFLAGS when --enable-debug is specified. 5808 It's the job of the user to put that in CFLAGS. 5809 5810 configure.ac | 1 - 5811 1 files changed, 0 insertions(+), 1 deletions(-) 5812 5813commit 61d1784d8f1761d979a6da6e223e279ca33815e6 5814Author: Lasse Collin <lasse.collin@tukaani.org> 5815Date: 2008-01-18 14:17:37 +0200 5816 5817 Set stdin and stdout to binary mode on Windows. This patch is 5818 a forward port of b7b22fcb979a16d3a47c8001f058c9f7d4416068 5819 from lzma-utils-legacy.git. I don't know if the new code base 5820 builds on Windows, but this is a start. 5821 5822 src/lzmadec/lzmadec.c | 9 +++++++++ 5823 1 files changed, 9 insertions(+), 0 deletions(-) 5824 5825commit c9cba976913e55ff9aac8a8133cc94416c7c1c9c 5826Author: Lasse Collin <lasse.collin@tukaani.org> 5827Date: 2008-01-18 00:50:29 +0200 5828 5829 Added test_compress.sh and bunch of files needed by it. 5830 This new set of tests compress and decompress several 5831 test files with many different compression options. 5832 This set of tests will be extended later. 5833 5834 tests/Makefile.am | 30 ++++-- 5835 tests/bcj_test.c | 66 +++++++++++++ 5836 tests/compress_prepared_bcj_sparc | Bin 0 -> 6804 bytes 5837 tests/compress_prepared_bcj_x86 | Bin 0 -> 4649 bytes 5838 tests/create_compress_files.c | 164 +++++++++++++++++++++++++++++++++ 5839 tests/test_compress.sh | 183 +++++++++++++++++++++++++++++++++++++ 5840 6 files changed, 433 insertions(+), 10 deletions(-) 5841 5842commit 33be3c0e24d8f43376ccf71cc77d53671e792f07 5843Author: Lasse Collin <lasse.collin@tukaani.org> 5844Date: 2008-01-17 18:56:53 +0200 5845 5846 Subblock decoder: Don't exit the main loop in decode_buffer() 5847 too early if we hit End of Input while decoding a Subblock of 5848 type Repeating Data. To keep the loop termination condition 5849 elegant, the order of enumerations in coder->sequence were 5850 changed. 5851 5852 To keep the case-labels in roughly the same order as the 5853 enumerations in coder->sequence, large chunks of code was 5854 moved around. This made the diff big and ugly compared to 5855 the amount of the actual changes made. 5856 5857 src/liblzma/subblock/subblock_decoder.c | 272 ++++++++++++++++--------------- 5858 1 files changed, 139 insertions(+), 133 deletions(-) 5859 5860commit b254bd97b1cdb68d127523d91ca9e054ed89c4fd 5861Author: Lasse Collin <lasse.collin@tukaani.org> 5862Date: 2008-01-17 17:39:42 +0200 5863 5864 Fix wrong too small size of argument unfiltered_max 5865 in ia64_coder_init(). It triggered assert() in 5866 simple_coder.c, and could have caused a buffer overflow. 5867 5868 This error was probably a copypaste mistake, since most 5869 of the simple filters use unfiltered_max = 4. 5870 5871 src/liblzma/simple/ia64.c | 2 +- 5872 1 files changed, 1 insertions(+), 1 deletions(-) 5873 5874commit 8f5794c8f1a30e8e3b524b415bbe81af2e04c64a 5875Author: Lasse Collin <lasse.collin@tukaani.org> 5876Date: 2008-01-17 17:27:45 +0200 5877 5878 Added --delta to the output of "lzma --help". 5879 5880 src/lzma/help.c | 4 ++++ 5881 1 files changed, 4 insertions(+), 0 deletions(-) 5882 5883commit f88590e0014b38d40465937c19f25f05f16c79ae 5884Author: Lasse Collin <lasse.collin@tukaani.org> 5885Date: 2008-01-17 13:14:20 +0200 5886 5887 Fix Subblock docoder: If Subblock filter was used with known 5888 Uncompressed Size, and the last output byte was from RLE, 5889 the code didn't stop decoding as it should have done. 5890 5891 src/liblzma/subblock/subblock_decoder.c | 6 ++++++ 5892 1 files changed, 6 insertions(+), 0 deletions(-) 5893 5894commit bc0b945ca376e333077644d2f7fd54c2848aab8a 5895Author: Lasse Collin <lasse.collin@tukaani.org> 5896Date: 2008-01-16 16:33:37 +0200 5897 5898 Tiny non-technical edits to file-format.txt. 5899 5900 doc/file-format.txt | 6 +++--- 5901 1 files changed, 3 insertions(+), 3 deletions(-) 5902 5903commit 7599bb7064ccf007f054595dedda7927af868252 5904Author: Lasse Collin <lasse.collin@tukaani.org> 5905Date: 2008-01-16 14:48:04 +0200 5906 5907 Plugged a memory leak in stream_decoder.c. 5908 5909 src/liblzma/common/stream_decoder.c | 20 ++++++++++++++++++++ 5910 1 files changed, 20 insertions(+), 0 deletions(-) 5911 5912commit 0b581539311f3712946e81e747839f8fb5f441a7 5913Author: Lasse Collin <lasse.collin@tukaani.org> 5914Date: 2008-01-16 14:47:27 +0200 5915 5916 Added memory leak detection to lzmadec.c. 5917 5918 src/lzmadec/lzmadec.c | 3 +++ 5919 1 files changed, 3 insertions(+), 0 deletions(-) 5920 5921commit 5b5b13c7bb8fde6331064d21f3ebde41072480c4 5922Author: Lasse Collin <lasse.collin@tukaani.org> 5923Date: 2008-01-16 14:46:50 +0200 5924 5925 Added lzma_memlimit_count(). 5926 5927 src/liblzma/api/lzma/memlimit.h | 10 ++++++++++ 5928 src/liblzma/common/memory_limitter.c | 19 +++++++++++++++++++ 5929 2 files changed, 29 insertions(+), 0 deletions(-) 5930 5931commit 19389f2b82ec54fd4c847a18f16482e7be4c9887 5932Author: Lasse Collin <lasse.collin@tukaani.org> 5933Date: 2008-01-16 14:31:44 +0200 5934 5935 Added ARRAY_SIZE(array) macro. 5936 5937 src/common/sysdefs.h | 4 ++++ 5938 1 files changed, 4 insertions(+), 0 deletions(-) 5939 5940commit 9bc33a54cbf83952130adbcb1be32c6882485416 5941Author: Lasse Collin <lasse.collin@tukaani.org> 5942Date: 2008-01-16 13:27:03 +0200 5943 5944 Make Uncompresed Size validation more strict 5945 in alone_decoder.c. 5946 5947 src/liblzma/common/alone_decoder.c | 3 ++- 5948 1 files changed, 2 insertions(+), 1 deletions(-) 5949 5950commit 01d71d60b79027e1ce3eb9c79ae5191e1407c883 5951Author: Lasse Collin <lasse.collin@tukaani.org> 5952Date: 2008-01-15 17:46:59 +0200 5953 5954 Free the allocated memory in lzmadec if debugging is 5955 enabled. This should make it possible to detect possible 5956 memory leaks with Valgrind. 5957 5958 src/lzmadec/lzmadec.c | 7 +++++++ 5959 1 files changed, 7 insertions(+), 0 deletions(-) 5960 5961commit 8235e6e5b2878f76633afcda9a334640db503ef5 5962Author: Lasse Collin <lasse.collin@tukaani.org> 5963Date: 2008-01-15 16:25:38 +0200 5964 5965 Fix memory leaks from test_block_header.c. 5966 5967 tests/test_block_header.c | 19 +++++++++++++++++-- 5968 1 files changed, 17 insertions(+), 2 deletions(-) 5969 5970commit f10fc6a69d40b6d5c9cfbf8d3746f49869c2e2f6 5971Author: Lasse Collin <lasse.collin@tukaani.org> 5972Date: 2008-01-15 14:23:35 +0200 5973 5974 Use fastpos.h when encoding LZMA dictionary size in 5975 Filter Flags encoder. 5976 5977 src/liblzma/common/filter_flags_encoder.c | 40 +++++++++++++--------------- 5978 1 files changed, 19 insertions(+), 21 deletions(-) 5979 5980commit e5728142a2048979f5c0c2149ce71ae952a092e1 5981Author: Lasse Collin <lasse.collin@tukaani.org> 5982Date: 2008-01-15 14:02:22 +0200 5983 5984 Revised the fastpos code. It now uses the slightly faster 5985 table-based version from LZMA SDK 4.57. This should be 5986 fast on most systems. 5987 5988 A simpler and smaller alternative version is also provided. 5989 On some CPUs this can be even a little faster than the 5990 default table-based version (see comments in fastpos.h), 5991 but on most systems the table-based code is faster. 5992 5993 src/liblzma/common/init_encoder.c | 3 - 5994 src/liblzma/lzma/Makefile.am | 4 + 5995 src/liblzma/lzma/fastpos.h | 156 +++++++++ 5996 src/liblzma/lzma/fastpos_table.c | 519 ++++++++++++++++++++++++++++ 5997 src/liblzma/lzma/fastpos_tablegen.c | 63 ++++ 5998 src/liblzma/lzma/lzma_common.h | 3 +- 5999 src/liblzma/lzma/lzma_encoder.c | 1 + 6000 src/liblzma/lzma/lzma_encoder_getoptimum.c | 1 + 6001 src/liblzma/lzma/lzma_encoder_init.c | 22 -- 6002 src/liblzma/lzma/lzma_encoder_private.h | 21 -- 6003 10 files changed, 746 insertions(+), 47 deletions(-) 6004 6005commit 10437b5b567f6a025ff16c45a572e417a0a9cc26 6006Author: Lasse Collin <lasse.collin@tukaani.org> 6007Date: 2008-01-15 13:32:13 +0200 6008 6009 Added bsr.h. 6010 6011 src/liblzma/common/Makefile.am | 1 + 6012 src/liblzma/common/bsr.h | 61 ++++++++++++++++++++++++++++++++++++++++ 6013 2 files changed, 62 insertions(+), 0 deletions(-) 6014 6015commit f3c88e8b8d8dd57f4bba5f0921eebf276437c244 6016Author: Lasse Collin <lasse.collin@tukaani.org> 6017Date: 2008-01-15 13:29:14 +0200 6018 6019 Fixed assembler detection in configure.ac, and added 6020 detection for x86_64. 6021 6022 configure.ac | 32 ++++++++++++++++---------------- 6023 1 files changed, 16 insertions(+), 16 deletions(-) 6024 6025commit 54ec204f58287f50d3976288295da4188a19192b 6026Author: Lasse Collin <lasse.collin@tukaani.org> 6027Date: 2008-01-15 12:20:41 +0200 6028 6029 Omit invalid space from printf() format string 6030 in price_table_gen.c. 6031 6032 src/liblzma/rangecoder/price_table_gen.c | 2 +- 6033 1 files changed, 1 insertions(+), 1 deletions(-) 6034 6035commit 01b4b19f49f00e17a0f9cb8754c672ac0847b6e1 6036Author: Lasse Collin <lasse.collin@tukaani.org> 6037Date: 2008-01-15 09:54:34 +0200 6038 6039 Removed a few unused macros from lzma_common.h. 6040 6041 src/liblzma/lzma/lzma_common.h | 8 ++------ 6042 1 files changed, 2 insertions(+), 6 deletions(-) 6043 6044commit 19bd7f3cf25e4ff8487ef7098ca4a7b58681961d 6045Author: Lasse Collin <lasse.collin@tukaani.org> 6046Date: 2008-01-15 08:37:42 +0200 6047 6048 Fix a typo in lzma_encoder.c. 6049 6050 src/liblzma/lzma/lzma_encoder.c | 2 +- 6051 1 files changed, 1 insertions(+), 1 deletions(-) 6052 6053commit 9f9b1983013048f2142e8bc7e240149d2687bedc 6054Author: Lasse Collin <lasse.collin@tukaani.org> 6055Date: 2008-01-15 08:36:25 +0200 6056 6057 Convert bittree_get_price() and bittree_reverse_get_price() 6058 from macros to inline functions. 6059 6060 src/liblzma/lzma/lzma_encoder.c | 19 +++---- 6061 src/liblzma/lzma/lzma_encoder_getoptimum.c | 16 ++---- 6062 src/liblzma/rangecoder/range_encoder.h | 76 ++++++++++++++++------------ 6063 3 files changed, 56 insertions(+), 55 deletions(-) 6064 6065commit 78e85cb1a7667c54853670d2eb09d754bcbda87d 6066Author: Lasse Collin <lasse.collin@tukaani.org> 6067Date: 2008-01-15 07:44:59 +0200 6068 6069 Fix CRC code in case --enable-small is used. 6070 6071 src/liblzma/check/crc32_init.c | 2 +- 6072 src/liblzma/check/crc64_init.c | 2 +- 6073 src/liblzma/common/init_decoder.c | 2 -- 6074 src/liblzma/common/init_encoder.c | 2 -- 6075 tests/test_check.c | 2 ++ 6076 5 files changed, 4 insertions(+), 6 deletions(-) 6077 6078commit 949d4346e2d75bcd9dcb66c394d8d851d8db3aa0 6079Author: Lasse Collin <lasse.collin@tukaani.org> 6080Date: 2008-01-15 07:41:39 +0200 6081 6082 Fix typo in test_index.c. 6083 6084 tests/test_index.c | 2 +- 6085 1 files changed, 1 insertions(+), 1 deletions(-) 6086 6087commit d13d693155c176fc9e9ad5c50d48ccba27c2d9c6 6088Author: Lasse Collin <lasse.collin@tukaani.org> 6089Date: 2008-01-15 07:40:21 +0200 6090 6091 Added precomputed range coder probability price table. 6092 6093 src/liblzma/common/init_encoder.c | 5 +- 6094 src/liblzma/rangecoder/Makefile.am | 9 +++- 6095 src/liblzma/rangecoder/price_table.c | 70 +++++++++++++++++++++++++++++ 6096 src/liblzma/rangecoder/price_table_gen.c | 55 ++++++++++++++++++++++ 6097 src/liblzma/rangecoder/price_table_init.c | 48 ++++++++++++++++++++ 6098 src/liblzma/rangecoder/range_common.h | 4 +- 6099 src/liblzma/rangecoder/range_encoder.c | 46 ------------------- 6100 src/liblzma/rangecoder/range_encoder.h | 21 ++++----- 6101 8 files changed, 197 insertions(+), 61 deletions(-) 6102 6103commit 362dc3843b373c1007a50a4719f378981f18ae03 6104Author: Lasse Collin <lasse.collin@tukaani.org> 6105Date: 2008-01-14 13:42:43 +0200 6106 6107 Remove RC_BUFFER_SIZE from lzma_encoder_private.h 6108 and replace it with a sanity check. 6109 6110 src/liblzma/lzma/lzma_encoder_private.h | 6 ++++-- 6111 1 files changed, 4 insertions(+), 2 deletions(-) 6112 6113commit e22b37968d153683fec61ad37b6b160cb7ca4ddc 6114Author: Lasse Collin <lasse.collin@tukaani.org> 6115Date: 2008-01-14 13:39:54 +0200 6116 6117 Major changes to LZ encoder, LZMA encoder, and range encoder. 6118 These changes implement support for LZMA_SYNC_FLUSH in LZMA 6119 encoder, and move the temporary buffer needed by range encoder 6120 from lzma_range_encoder structure to lzma_lz_encoder. 6121 6122 src/liblzma/lz/lz_encoder.c | 138 +++++++++++++++++++++++++++----- 6123 src/liblzma/lz/lz_encoder.h | 17 +++- 6124 src/liblzma/lzma/lzma_encoder.c | 74 ++++++++++------- 6125 src/liblzma/rangecoder/range_encoder.h | 117 ++++++++------------------- 6126 4 files changed, 206 insertions(+), 140 deletions(-) 6127 6128commit b59ef3973781f892c0a72b5e5934194567100be5 6129Author: Lasse Collin <lasse.collin@tukaani.org> 6130Date: 2008-01-14 13:34:29 +0200 6131 6132 Added one assert() to process.c of the command line tool. 6133 6134 src/lzma/process.c | 1 + 6135 1 files changed, 1 insertions(+), 0 deletions(-) 6136 6137commit 9547e734a00ddb64c851fa3f116e4f9e7d763ea7 6138Author: Lasse Collin <lasse.collin@tukaani.org> 6139Date: 2008-01-14 12:09:52 +0200 6140 6141 Don't use coder->lz.stream_end_was_reached in assertions 6142 in match_c.h. 6143 6144 src/liblzma/lz/match_c.h | 2 -- 6145 1 files changed, 0 insertions(+), 2 deletions(-) 6146 6147commit 3e09e1c05871f3757f759b801890ccccc9286608 6148Author: Lasse Collin <lasse.collin@tukaani.org> 6149Date: 2008-01-14 12:08:02 +0200 6150 6151 In lzma_read_match_distances(), don't use 6152 coder->lz.stream_end_was_reached. That variable 6153 will be removed, and the check isn't required anyway. 6154 Rearrange the check so that it doesn't make one to 6155 think that there could be an integer overflow. 6156 6157 src/liblzma/lzma/lzma_encoder_private.h | 6 +++--- 6158 1 files changed, 3 insertions(+), 3 deletions(-) 6159 6160commit a670fec8021e5962429689c194148a04c3418872 6161Author: Lasse Collin <lasse.collin@tukaani.org> 6162Date: 2008-01-14 11:56:41 +0200 6163 6164 Small LZMA_SYNC_FLUSH fixes to Block and Single-Stream encoders. 6165 6166 src/liblzma/common/block_encoder.c | 4 ++-- 6167 src/liblzma/common/stream_encoder_single.c | 1 + 6168 2 files changed, 3 insertions(+), 2 deletions(-) 6169 6170commit 3599dba9570a6972a16b6398d6c838e9b420e985 6171Author: Lasse Collin <lasse.collin@tukaani.org> 6172Date: 2008-01-14 11:54:56 +0200 6173 6174 More fixes to LZMA decoder's flush marker handling. 6175 6176 src/liblzma/lzma/lzma_decoder.c | 52 ++++++++++++++++++++++---------------- 6177 1 files changed, 30 insertions(+), 22 deletions(-) 6178 6179commit f73c2ab6079ed5675a42b39d584a567befbd4624 6180Author: Lasse Collin <lasse.collin@tukaani.org> 6181Date: 2008-01-10 17:13:42 +0200 6182 6183 Eliminate lzma_lz_encoder.must_move_pos. It's needed 6184 only in one place which isn't performance criticial. 6185 6186 src/liblzma/lz/lz_encoder.c | 6 ++---- 6187 src/liblzma/lz/lz_encoder.h | 4 ---- 6188 2 files changed, 2 insertions(+), 8 deletions(-) 6189 6190commit 382808514a42b2f4b4a64515e2dfb3fc1bc48ecd 6191Author: Lasse Collin <lasse.collin@tukaani.org> 6192Date: 2008-01-09 20:05:57 +0200 6193 6194 Define HAVE_ASM_X86 when x86 assembler optimizations are 6195 used. This #define will be useful for inline assembly. 6196 6197 configure.ac | 5 ++++- 6198 1 files changed, 4 insertions(+), 1 deletions(-) 6199 6200commit 0e70fbe4032351aab13a1cd8e5deced105c0b276 6201Author: Lasse Collin <lasse.collin@tukaani.org> 6202Date: 2008-01-09 12:06:46 +0200 6203 6204 Added good-single-none-empty_3.lzma and 6205 bad-single-none-empty.lzma. 6206 6207 tests/files/README | 6 ++++++ 6208 tests/files/bad-single-none-empty.lzma | Bin 0 -> 19 bytes 6209 tests/files/good-single-none-empty_3.lzma | Bin 0 -> 19 bytes 6210 3 files changed, 6 insertions(+), 0 deletions(-) 6211 6212commit 379fbbe84d922c7cc00afa65c6f0c095da596b19 6213Author: Lasse Collin <lasse.collin@tukaani.org> 6214Date: 2008-01-08 23:11:59 +0200 6215 6216 Take advantage of return_if_error() in block_decoder.c. 6217 6218 src/liblzma/common/block_decoder.c | 23 +++++++---------------- 6219 1 files changed, 7 insertions(+), 16 deletions(-) 6220 6221commit 97d5fa82077e57815dfad995dc393c2809a78539 6222Author: Lasse Collin <lasse.collin@tukaani.org> 6223Date: 2008-01-08 23:10:57 +0200 6224 6225 Updated tests/files/README. 6226 6227 tests/files/README | 15 +++++++++------ 6228 1 files changed, 9 insertions(+), 6 deletions(-) 6229 6230commit 3bb9bb310936cba6a743b4f06739a397dec7c28f 6231Author: Lasse Collin <lasse.collin@tukaani.org> 6232Date: 2008-01-08 23:05:40 +0200 6233 6234 Added test files with empty Compressed Data. 6235 6236 tests/files/README | 6 ++++++ 6237 tests/files/good-single-lzma-empty.lzma | Bin 0 -> 21 bytes 6238 tests/files/good-single-none-empty_1.lzma | Bin 0 -> 18 bytes 6239 tests/files/good-single-none-empty_2.lzma | Bin 0 -> 26 bytes 6240 4 files changed, 6 insertions(+), 0 deletions(-) 6241 6242commit 7054c5f5888ac6a7178cd43dc9583ce6c7e78c9f 6243Author: Lasse Collin <lasse.collin@tukaani.org> 6244Date: 2008-01-08 22:58:42 +0200 6245 6246 Fix decoding of Blocks that have only Block Header. 6247 6248 src/liblzma/common/block_decoder.c | 37 +++++++++++++---------------------- 6249 1 files changed, 14 insertions(+), 23 deletions(-) 6250 6251commit 753e4d95cd1cf29c632dfe1a670af7c67aeffbf4 6252Author: Lasse Collin <lasse.collin@tukaani.org> 6253Date: 2008-01-08 22:27:46 +0200 6254 6255 Added good-single-subblock_implicit.lzma. 6256 6257 tests/files/README | 2 ++ 6258 tests/files/good-single-subblock_implicit.lzma | Bin 0 -> 35 bytes 6259 2 files changed, 2 insertions(+), 0 deletions(-) 6260 6261commit faeac7b7aca75f86afed1e7cc06279d9d497c627 6262Author: Lasse Collin <lasse.collin@tukaani.org> 6263Date: 2008-01-08 18:50:30 +0200 6264 6265 Disable CRC32 from Block Headers when --check=none 6266 has been specified. 6267 6268 src/lzma/process.c | 2 +- 6269 1 files changed, 1 insertions(+), 1 deletions(-) 6270 6271commit a751126dbb656767ed4666cf0e5d3e17349d93d1 6272Author: Lasse Collin <lasse.collin@tukaani.org> 6273Date: 2008-01-08 13:36:29 +0200 6274 6275 Fixed encoding of empty files. Arguments to is_size_valid() 6276 were in wrong order in block_encoder.c. 6277 6278 src/liblzma/common/block_encoder.c | 2 +- 6279 1 files changed, 1 insertions(+), 1 deletions(-) 6280 6281commit 9080267603b1006c4867c823307dca9df8be0d20 6282Author: Lasse Collin <lasse.collin@tukaani.org> 6283Date: 2008-01-08 13:35:36 +0200 6284 6285 Added a few test files. 6286 6287 tests/files/README | 21 +++++++++++++++++-- 6288 tests/files/bad-cat-single-none-pad_garbage_1.lzma | Bin 0 -> 65 bytes 6289 tests/files/bad-cat-single-none-pad_garbage_2.lzma | Bin 0 -> 65 bytes 6290 tests/files/bad-cat-single-none-pad_garbage_3.lzma | Bin 0 -> 65 bytes 6291 tests/files/bad-single-data_after_eopm.lzma | Bin 55 -> 0 bytes 6292 tests/files/bad-single-data_after_eopm_1.lzma | Bin 0 -> 55 bytes 6293 tests/files/bad-single-none-truncated.lzma | Bin 0 -> 29 bytes 6294 7 files changed, 18 insertions(+), 3 deletions(-) 6295 6296commit b4943ccf73b64fc93a90a23474509c316f55eb2b 6297Author: Lasse Collin <lasse.collin@tukaani.org> 6298Date: 2008-01-08 12:29:58 +0200 6299 6300 Avoid using ! in test_files.sh, because that doesn't work 6301 with some ancient /bin/sh versions. 6302 6303 tests/test_files.sh | 4 +++- 6304 1 files changed, 3 insertions(+), 1 deletions(-) 6305 6306commit e2417b2b9134f3f65e14b61e23cd3644d8954353 6307Author: Lasse Collin <lasse.collin@tukaani.org> 6308Date: 2008-01-08 00:48:30 +0200 6309 6310 More pre-C99 inttypes.h compatibility fixes. Now the code 6311 should work even if the system has no inttypes.h. 6312 6313 src/common/physmem.h | 11 ----------- 6314 src/liblzma/check/crc32_init.c | 5 +---- 6315 src/liblzma/check/crc32_tablegen.c | 7 ++----- 6316 src/liblzma/check/crc64_init.c | 5 +---- 6317 src/liblzma/check/crc64_tablegen.c | 7 ++----- 6318 5 files changed, 6 insertions(+), 29 deletions(-) 6319 6320commit 5d227e51c23639423f4ade06aabb54e131f8505e 6321Author: Lasse Collin <lasse.collin@tukaani.org> 6322Date: 2008-01-07 23:25:32 +0200 6323 6324 Updated fi.po although it's currently pretty much crap. 6325 6326 po/fi.po | 12 ++++++------ 6327 1 files changed, 6 insertions(+), 6 deletions(-) 6328 6329commit c7189d981a1b27c63da0c1ee80d9b5cd8ce1733d 6330Author: Lasse Collin <lasse.collin@tukaani.org> 6331Date: 2008-01-07 23:14:25 +0200 6332 6333 Test for $GCC = yes instead of if it is non-empty. This 6334 way it is possible to use ac_cv_c_compiler_gnu=no to 6335 force configure to think it is using non-GNU C compiler. 6336 6337 configure.ac | 2 +- 6338 1 files changed, 1 insertions(+), 1 deletions(-) 6339 6340commit 3dbbea82b74bb841c995ad332a3aeca613015e10 6341Author: Lasse Collin <lasse.collin@tukaani.org> 6342Date: 2008-01-07 21:49:41 +0200 6343 6344 Added test_files.sh to tests/Makefile.am so it gets 6345 included in the tarball with "make dist". 6346 6347 tests/Makefile.am | 2 +- 6348 1 files changed, 1 insertions(+), 1 deletions(-) 6349 6350commit 2fd2d181543feab1b4003f3ac6e85625fbee04f0 6351Author: Lasse Collin <lasse.collin@tukaani.org> 6352Date: 2008-01-07 18:22:24 +0200 6353 6354 Cosmetic edit to test_files.sh. 6355 6356 tests/test_files.sh | 4 ++-- 6357 1 files changed, 2 insertions(+), 2 deletions(-) 6358 6359commit 9a71d573100a990ceb30ce0bec6a9a15d795605f 6360Author: Lasse Collin <lasse.collin@tukaani.org> 6361Date: 2008-01-07 18:09:44 +0200 6362 6363 Added tests/files/README. 6364 6365 tests/files/README | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 6366 1 files changed, 108 insertions(+), 0 deletions(-) 6367 6368commit 47f48fe9936ed72617a60fbd015df7e0e47a1e43 6369Author: Lasse Collin <lasse.collin@tukaani.org> 6370Date: 2008-01-07 14:20:57 +0200 6371 6372 Tell in COPYING that everything in tests/files is 6373 public domain. 6374 6375 COPYING | 3 ++- 6376 1 files changed, 2 insertions(+), 1 deletions(-) 6377 6378commit 3502b3e1d00251d3c8dda96079440705c28d8225 6379Author: Lasse Collin <lasse.collin@tukaani.org> 6380Date: 2008-01-07 14:19:05 +0200 6381 6382 Cleaned up the tests/files directory. 6383 6384 tests/files/bad-single-subblock-padding_loop.lzma | Bin 0 -> 43 bytes 6385 tests/files/bad-single-subblock1023-slow.lzma | Bin 0 -> 7886 bytes 6386 tests/files/malicious-single-subblock-loop.lzma | Bin 43 -> 0 bytes 6387 tests/files/malicious-single-subblock-lzma.lzma | Bin 505 -> 0 bytes 6388 .../files/malicious-single-subblock1023-slow.lzma | Bin 7886 -> 0 bytes 6389 5 files changed, 0 insertions(+), 0 deletions(-) 6390 6391commit 908b2ac604b9940369d7fe8a45e9eb6da5d2a24c 6392Author: Lasse Collin <lasse.collin@tukaani.org> 6393Date: 2008-01-07 13:49:19 +0200 6394 6395 Added test_files.sh to test decoding of the files in 6396 the tests/files directory. It doesn't test the malicious 6397 files yet. 6398 6399 tests/Makefile.am | 4 +++- 6400 tests/test_files.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 6401 2 files changed, 43 insertions(+), 1 deletions(-) 6402 6403commit ecb2a6548f5978022a8fa931719dc575f5fd3bf6 6404Author: Lasse Collin <lasse.collin@tukaani.org> 6405Date: 2008-01-07 11:23:13 +0200 6406 6407 Updated README regarding the assembler optimizations. 6408 6409 README | 10 +++++----- 6410 1 files changed, 5 insertions(+), 5 deletions(-) 6411 6412commit eacb8050438d3e6146c86eb9732d3fb1ef1825cb 6413Author: Lasse Collin <lasse.collin@tukaani.org> 6414Date: 2008-01-07 10:58:00 +0200 6415 6416 Updated THANKS. 6417 6418 THANKS | 1 + 6419 1 files changed, 1 insertions(+), 0 deletions(-) 6420 6421commit 1239649f96132b18e3b7e2dd152ecf53a195caa8 6422Author: Lasse Collin <lasse.collin@tukaani.org> 6423Date: 2008-01-06 21:47:17 +0200 6424 6425 Cosmetic changes to configure.ac. 6426 6427 configure.ac | 14 ++++++-------- 6428 1 files changed, 6 insertions(+), 8 deletions(-) 6429 6430commit 88ee301ec2e4506a30ec7ac9aaa2288e2dcadd0e 6431Author: Lasse Collin <lasse.collin@tukaani.org> 6432Date: 2008-01-06 19:46:38 +0200 6433 6434 Automatically disable assembler code on Darwin x86. 6435 Darwin has different ABI than GNU+Linux and Solaris, 6436 thus the assembler code doesn't assemble on Darwin. 6437 6438 configure.ac | 17 +++++++++++++++-- 6439 1 files changed, 15 insertions(+), 2 deletions(-) 6440 6441commit c15a7abf66e3a70792f7444115e484c7981c8284 6442Author: Lasse Collin <lasse.collin@tukaani.org> 6443Date: 2008-01-06 19:45:27 +0200 6444 6445 With printf(), use PRIu64 with a cast to uint64_t instead 6446 of %zu, because some pre-C99 libc versions don't support %zu. 6447 6448 src/lzma/help.c | 13 +++++++------ 6449 src/lzmadec/lzmadec.c | 6 ++++-- 6450 2 files changed, 11 insertions(+), 8 deletions(-) 6451 6452commit 4e7e54c4c522ab2f6a7abb92cefc4f707e9568fb 6453Author: Lasse Collin <lasse.collin@tukaani.org> 6454Date: 2008-01-06 16:27:41 +0200 6455 6456 Introduced compatibility with systems that have pre-C99 6457 or no inttypes.h. This is useful when the compiler has 6458 good enough support for C99, but libc headers don't. 6459 6460 Changed liblzma API so that sys/types.h and inttypes.h 6461 have to be #included before #including lzma.h. On systems 6462 that don't have C99 inttypes.h, it's the problem of the 6463 applications to provide the required types and macros 6464 before #including lzma.h. 6465 6466 If lzma.h defined the missing types and macros, it could 6467 conflict with third-party applications whose configure 6468 has detected that the types are missing and defined them 6469 in config.h already. An alternative would have been 6470 introducing lzma_uint32 and similar types, but that would 6471 just be an extra pain on modern systems. 6472 6473 configure.ac | 13 +++++++- 6474 doc/liblzma-intro.txt | 10 +++++- 6475 src/common/sysdefs.h | 59 +++++++++++++++++++++++++++++++++++- 6476 src/liblzma/api/lzma.h | 40 ++++++++++++++++-------- 6477 src/liblzma/check/crc32_table.c | 4 +-- 6478 src/liblzma/check/crc32_table_be.h | 2 - 6479 src/liblzma/check/crc32_table_le.h | 2 - 6480 src/liblzma/check/crc32_tablegen.c | 1 - 6481 src/liblzma/check/crc64_table.c | 4 +-- 6482 src/liblzma/check/crc64_table_be.h | 2 - 6483 src/liblzma/check/crc64_table_le.h | 2 - 6484 src/liblzma/check/crc64_tablegen.c | 1 - 6485 src/lzma/private.h | 1 - 6486 13 files changed, 106 insertions(+), 35 deletions(-) 6487 6488commit a71864f77dfb76b5d78a270641539947c312583a 6489Author: Lasse Collin <lasse.collin@tukaani.org> 6490Date: 2008-01-05 19:57:00 +0200 6491 6492 Fix typo in comment (INT64_MAX -> UINT64_MAX). 6493 6494 src/liblzma/api/lzma/vli.h | 2 +- 6495 1 files changed, 1 insertions(+), 1 deletions(-) 6496 6497commit 072927905a3b66281c6311b4b351caa501d8b73a 6498Author: Lasse Collin <lasse.collin@tukaani.org> 6499Date: 2008-01-05 19:42:04 +0200 6500 6501 Rearranged testing of GCC-specific flags. 6502 6503 configure.ac | 33 +++++++++++++++++++++++---------- 6504 1 files changed, 23 insertions(+), 10 deletions(-) 6505 6506commit d160ee32598c6d1cd9054ef019e8c9331208b188 6507Author: Lasse Collin <lasse.collin@tukaani.org> 6508Date: 2008-01-05 01:20:24 +0200 6509 6510 Another bug fix for flush marker detection. 6511 6512 src/liblzma/lzma/lzma_decoder.c | 10 +++++++++- 6513 1 files changed, 9 insertions(+), 1 deletions(-) 6514 6515commit fc67f79f607cbfa78c6f47a69dec098d8659b162 6516Author: Lasse Collin <lasse.collin@tukaani.org> 6517Date: 2008-01-04 21:37:01 +0200 6518 6519 Fix stupid bugs in flush marker detection. 6520 6521 src/liblzma/lzma/lzma_decoder.c | 7 ++++--- 6522 1 files changed, 4 insertions(+), 3 deletions(-) 6523 6524commit 0029cbbabe87d491fc046a55a629a6d556010baa 6525Author: Lasse Collin <lasse.collin@tukaani.org> 6526Date: 2008-01-04 21:30:33 +0200 6527 6528 Added support for flush marker, which will be in files 6529 that use LZMA_SYNC_FLUSH with encoder (not implemented 6530 yet). This is a new feature in the raw LZMA format, 6531 which isn't supported by old decoders. This shouldn't 6532 be a problem in practice, since lzma_alone_encoder() 6533 will not allow LZMA_SYNC_FLUSH, and thus not allow 6534 creating files on decodable with old decoders. 6535 6536 Made lzma_decoder.c to require tab width of 4 characters 6537 if one wants to fit the code in 80 columns. This makes 6538 the code easier to read. 6539 6540 src/liblzma/lzma/lzma_common.h | 4 + 6541 src/liblzma/lzma/lzma_decoder.c | 217 ++++++++++++++++++--------------------- 6542 2 files changed, 104 insertions(+), 117 deletions(-) 6543 6544commit bbfd1f6ab058a7e661545205befcb7f70c5685ab 6545Author: Lasse Collin <lasse.collin@tukaani.org> 6546Date: 2008-01-04 20:45:05 +0200 6547 6548 Moved range decoder initialization (reading the first 6549 five input bytes) from LZMA decoder to range decoder 6550 header. Did the same for decoding of direct bits. 6551 6552 src/liblzma/lzma/lzma_decoder.c | 42 ++------------- 6553 src/liblzma/rangecoder/range_decoder.h | 87 ++++++++++++++++++++++---------- 6554 2 files changed, 66 insertions(+), 63 deletions(-) 6555 6556commit 5db745cd2a74f6ed2e52f5c716c08ed0daf17ebc 6557Author: Lasse Collin <lasse.collin@tukaani.org> 6558Date: 2007-12-14 11:15:21 +0200 6559 6560 Added a note to README that --disable-assembler 6561 must be used on Darwin. 6562 6563 README | 4 ++++ 6564 1 files changed, 4 insertions(+), 0 deletions(-) 6565 6566commit 44b333d4615b5aabc557a0e1b6bb0096da3fae24 6567Author: Lasse Collin <lasse.collin@tukaani.org> 6568Date: 2007-12-14 10:07:10 +0200 6569 6570 Use the filename suffix .S instead of .s for assembler files 6571 so that the preprocessor removes the /* */ style comments, 6572 which are not supported by some non-GNU assemblers (Solaris) 6573 that otherwise work with this code. 6574 6575 src/liblzma/check/Makefile.am | 4 +- 6576 src/liblzma/check/crc32_x86.S | 217 +++++++++++++++++++++++++++++++++++++++++ 6577 src/liblzma/check/crc32_x86.s | 217 ----------------------------------------- 6578 src/liblzma/check/crc64_x86.S | 203 ++++++++++++++++++++++++++++++++++++++ 6579 src/liblzma/check/crc64_x86.s | 203 -------------------------------------- 6580 5 files changed, 422 insertions(+), 422 deletions(-) 6581 6582commit ec1c82b2e82f395f6e8e19ac212a639644330cd7 6583Author: Lasse Collin <lasse.collin@tukaani.org> 6584Date: 2007-12-14 09:59:05 +0200 6585 6586 Fixed wrong symbol name in crc64_x86.s. 6587 6588 src/liblzma/check/crc64_x86.s | 2 +- 6589 1 files changed, 1 insertions(+), 1 deletions(-) 6590 6591commit 2881570df6803eed2fe550af34574e8e61794804 6592Author: Lasse Collin <lasse.collin@tukaani.org> 6593Date: 2007-12-14 09:53:24 +0200 6594 6595 Use .globl instead of .global in x86 assembler code for 6596 better portability. Still needs fixing the commenting. 6597 6598 src/liblzma/check/crc32_x86.s | 2 +- 6599 src/liblzma/check/crc64_x86.s | 2 +- 6600 2 files changed, 2 insertions(+), 2 deletions(-) 6601 6602commit 698470b8f33fc0e5f27dafa93b39b6dd5dde5a66 6603Author: Lasse Collin <lasse.collin@tukaani.org> 6604Date: 2007-12-13 20:14:37 +0200 6605 6606 Fixed a few short options that take an argument. 6607 short_opts[] was missing colons to indicate 6608 required argument. Thanks to Fabio Pedretti for 6609 the bug report. 6610 6611 src/lzma/args.c | 2 +- 6612 1 files changed, 1 insertions(+), 1 deletions(-) 6613 6614commit 918bcb0e0728d2d976621e9f35b56f224f11d989 6615Author: Lasse Collin <lasse.collin@tukaani.org> 6616Date: 2007-12-11 17:08:04 +0200 6617 6618 Removed uncompressed size tracking from Delta encoder too. 6619 6620 src/liblzma/common/delta_coder.c | 21 +++------------------ 6621 1 files changed, 3 insertions(+), 18 deletions(-) 6622 6623commit 3e16d51dd645667b05ff826665b1fc353aa41cd9 6624Author: Lasse Collin <lasse.collin@tukaani.org> 6625Date: 2007-12-11 16:49:19 +0200 6626 6627 Remove uncompressed size tracking from the filter encoders. 6628 It's not strictly needed there, and just complicates the 6629 code. LZ encoder never even had this feature. 6630 6631 The primary reason to have uncompressed size tracking in 6632 filter encoders was validating that the application 6633 doesn't give different amount of input that it had 6634 promised. A side effect was to validate internal workings 6635 of liblzma. 6636 6637 Uncompressed size tracking is still present in the Block 6638 encoder. Maybe it should be added to LZMA_Alone and raw 6639 encoders too. It's simpler to have one coder just to 6640 validate the uncompressed size instead of having it 6641 in every filter. 6642 6643 src/liblzma/common/copy_coder.c | 25 +------------------ 6644 src/liblzma/simple/simple_coder.c | 29 +++-------------------- 6645 src/liblzma/subblock/subblock_encoder.c | 38 +++++-------------------------- 6646 3 files changed, 12 insertions(+), 80 deletions(-) 6647 6648commit 5286723e0d1ac386d5b07f08d78e61becf895a5a 6649Author: Lasse Collin <lasse.collin@tukaani.org> 6650Date: 2007-12-11 14:10:53 +0200 6651 6652 Get rid of no-NLS gnulib. I don't know how to get it 6653 working with Automake. People who want smaller lzmadec 6654 should use --disable-nls on non-GNU systems. 6655 6656 lib/Makefile.am | 10 +--------- 6657 src/lzma/Makefile.am | 2 +- 6658 src/lzmadec/Makefile.am | 4 +++- 6659 3 files changed, 5 insertions(+), 11 deletions(-) 6660 6661commit ce8b036a6c7a43b290356b673d953f6d76b2be64 6662Author: Lasse Collin <lasse.collin@tukaani.org> 6663Date: 2007-12-11 14:09:35 +0200 6664 6665 Fixed a typo in tests/Makefile.am which prevented 6666 building the tests if gnulib was needed. 6667 6668 tests/Makefile.am | 2 +- 6669 1 files changed, 1 insertions(+), 1 deletions(-) 6670 6671commit 7c1ad41eb611ed89e5bb8792a3beb533b7aa59f4 6672Author: Lasse Collin <lasse.collin@tukaani.org> 6673Date: 2007-12-11 11:18:58 +0200 6674 6675 Fixed wrong type of flags_size in Subblock encoder. 6676 6677 src/liblzma/subblock/subblock_encoder.c | 2 +- 6678 1 files changed, 1 insertions(+), 1 deletions(-) 6679 6680commit ce64df716243fdc40359090d1f6541f3a4f5f21a 6681Author: Lasse Collin <lasse.collin@tukaani.org> 6682Date: 2007-12-10 20:44:16 +0200 6683 6684 Bumped version number to 4.42.3alpha. 6685 6686 configure.ac | 2 +- 6687 src/liblzma/api/lzma/version.h | 2 +- 6688 2 files changed, 2 insertions(+), 2 deletions(-) 6689 6690commit b499a0403ea5c41d6a25b40275eb6c57643052ce 6691Author: Lasse Collin <lasse.collin@tukaani.org> 6692Date: 2007-12-10 15:02:50 +0200 6693 6694 Disabled some unneeded warnings and made "make dist" work. 6695 6696 Makefile.am | 9 +++------ 6697 configure.ac | 9 ++++++--- 6698 po/fi.po | 47 ++++++++++++++++++++++++----------------------- 6699 3 files changed, 33 insertions(+), 32 deletions(-) 6700 6701commit 2ab8adb5165a0b77114a7eb21f9ff1e6a266f172 6702Author: Lasse Collin <lasse.collin@tukaani.org> 6703Date: 2007-12-09 21:43:15 +0200 6704 6705 Added LZMA_SYNC_FLUSH support to the Copy filter. 6706 6707 src/liblzma/common/copy_coder.c | 92 ++++++++++++++++++++++++--------------- 6708 1 files changed, 57 insertions(+), 35 deletions(-) 6709 6710commit 329c272d501e88793dda5540358d55c12428d194 6711Author: Lasse Collin <lasse.collin@tukaani.org> 6712Date: 2007-12-09 17:14:07 +0200 6713 6714 Added missing LZMA_API to the C versions of the CRC functions. 6715 The x86 assembler versions were already OK. 6716 6717 src/liblzma/check/crc32.c | 2 +- 6718 src/liblzma/check/crc64.c | 2 +- 6719 2 files changed, 2 insertions(+), 2 deletions(-) 6720 6721commit c90daf86ce683fa8cf80491d624ffb158dfbd9d7 6722Author: Jim Meyering <meyering@redhat.com> 6723Date: 2007-12-09 15:34:25 +0100 6724 6725 * tests/test_block_header.c (test3): Remove duplicate initializer. 6726 6727 autogen.sh | 2 +- 6728 tests/test_block_header.c | 1 - 6729 2 files changed, 1 insertions(+), 2 deletions(-) 6730 6731commit 07ac881779a8477f2c1ab112b91a129e24aa743c 6732Author: Lasse Collin <lasse.collin@tukaani.org> 6733Date: 2007-12-09 17:06:45 +0200 6734 6735 Take advantage of return_if_error() macro in more places. 6736 Cleaned Subblock filter's initialization code too. 6737 6738 src/liblzma/common/block_decoder.c | 22 +++------- 6739 src/liblzma/common/delta_coder.c | 8 +--- 6740 src/liblzma/common/stream_decoder.c | 17 +++----- 6741 src/liblzma/common/stream_encoder_multi.c | 68 +++++++++------------------ 6742 src/liblzma/common/stream_encoder_single.c | 8 +-- 6743 src/liblzma/subblock/subblock_decoder.c | 33 +++++--------- 6744 src/liblzma/subblock/subblock_encoder.c | 45 +++++------------- 6745 7 files changed, 63 insertions(+), 138 deletions(-) 6746 6747commit 41338717964f510ee61d70b25bd4c502ec9f77cf 6748Author: Lasse Collin <lasse.collin@tukaani.org> 6749Date: 2007-12-09 12:13:01 +0200 6750 6751 Added a bunch of .lzma test files. 6752 6753 tests/files/bad-single-data_after_eopm.lzma | Bin 0 -> 55 bytes 6754 tests/files/bad-single-data_after_eopm_2.lzma | Bin 0 -> 56 bytes 6755 tests/files/bad-single-subblock_subblock.lzma | Bin 0 -> 26 bytes 6756 tests/files/good-cat-single-none-pad.lzma | Bin 0 -> 64 bytes 6757 tests/files/good-single-delta-lzma.tiff.lzma | Bin 0 -> 51409 bytes 6758 tests/files/good-single-lzma.lzma | Bin 0 -> 44 bytes 6759 tests/files/good-single-none-pad.lzma | Bin 0 -> 32 bytes 6760 tests/files/good-single-none.lzma | Bin 0 -> 30 bytes 6761 tests/files/good-single-subblock-lzma.lzma | Bin 0 -> 50 bytes 6762 tests/files/good-single-subblock_rle.lzma | Bin 0 -> 118 bytes 6763 tests/files/malicious-multi-metadata-64PiB.lzma | Bin 0 -> 51 bytes 6764 tests/files/malicious-single-subblock-256MiB.lzma | Bin 0 -> 30 bytes 6765 tests/files/malicious-single-subblock-64PiB.lzma | Bin 0 -> 45 bytes 6766 tests/files/malicious-single-subblock-loop.lzma | Bin 0 -> 43 bytes 6767 tests/files/malicious-single-subblock-lzma.lzma | Bin 0 -> 505 bytes 6768 .../files/malicious-single-subblock1023-slow.lzma | Bin 0 -> 7886 bytes 6769 tests/files/malicious-single-subblock31-slow.lzma | Bin 0 -> 1233 bytes 6770 17 files changed, 0 insertions(+), 0 deletions(-) 6771 6772commit ff946ceb7975d4f11950afd33f6315b4d20d1a03 6773Author: Lasse Collin <lasse.collin@tukaani.org> 6774Date: 2007-12-09 11:24:48 +0200 6775 6776 Re-enabled the security checks in Subblock decoder 6777 that were disabled for debugging reasons. 6778 6779 src/liblzma/subblock/subblock_decoder.c | 6 +++--- 6780 1 files changed, 3 insertions(+), 3 deletions(-) 6781 6782commit 2bf36d22d2c24ac3f488e63b35564fa2f6dab8d1 6783Author: Lasse Collin <lasse.collin@tukaani.org> 6784Date: 2007-12-09 11:03:28 +0200 6785 6786 Fixed the tests to build with -Werror. 6787 6788 tests/test_block_header.c | 2 +- 6789 tests/test_check.c | 2 +- 6790 tests/test_filter_flags.c | 2 +- 6791 tests/test_index.c | 14 +++++++------- 6792 tests/test_info.c | 2 +- 6793 tests/test_stream_flags.c | 2 +- 6794 6 files changed, 12 insertions(+), 12 deletions(-) 6795 6796commit 5d018dc03549c1ee4958364712fb0c94e1bf2741 6797Author: Lasse Collin <lasse.collin@tukaani.org> 6798Date: 2007-12-09 00:42:33 +0200 6799 6800 Imported to git. 6801 6802 AUTHORS | 18 + 6803 COPYING | 24 + 6804 COPYING.GPLv2 | 339 +++++ 6805 COPYING.GPLv3 | 674 +++++++++ 6806 COPYING.LGPLv2.1 | 504 +++++++ 6807 ChangeLog | 2 + 6808 Doxyfile.in | 1229 ++++++++++++++++ 6809 Makefile.am | 38 + 6810 README | 151 ++ 6811 THANKS | 23 + 6812 TODO | 109 ++ 6813 autogen.sh | 38 + 6814 configure.ac | 611 ++++++++ 6815 doc/bugs.txt | 46 + 6816 doc/faq.txt | 247 ++++ 6817 doc/file-format.txt | 1861 ++++++++++++++++++++++++ 6818 doc/history.txt | 140 ++ 6819 doc/liblzma-advanced.txt | 324 ++++ 6820 doc/liblzma-hacking.txt | 112 ++ 6821 doc/liblzma-intro.txt | 188 +++ 6822 doc/liblzma-security.txt | 219 +++ 6823 doc/lzma-intro.txt | 107 ++ 6824 extra/scanlzma/scanlzma.c | 85 ++ 6825 lib/Makefile.am | 40 + 6826 lib/getopt.c | 1191 +++++++++++++++ 6827 lib/getopt1.c | 171 +++ 6828 lib/getopt_.h | 226 +++ 6829 lib/getopt_int.h | 131 ++ 6830 lib/gettext.h | 240 +++ 6831 m4/acx_pthread.m4 | 279 ++++ 6832 m4/getopt.m4 | 83 ++ 6833 po/LINGUAS | 1 + 6834 po/Makevars | 46 + 6835 po/POTFILES.in | 13 + 6836 po/fi.po | 445 ++++++ 6837 src/Makefile.am | 16 + 6838 src/common/open_stdxxx.h | 50 + 6839 src/common/physmem.h | 77 + 6840 src/common/sysdefs.h | 100 ++ 6841 src/liblzma/Makefile.am | 47 + 6842 src/liblzma/api/Makefile.am | 39 + 6843 src/liblzma/api/lzma.h | 122 ++ 6844 src/liblzma/api/lzma/alignment.h | 60 + 6845 src/liblzma/api/lzma/alone.h | 82 ++ 6846 src/liblzma/api/lzma/auto.h | 41 + 6847 src/liblzma/api/lzma/base.h | 410 ++++++ 6848 src/liblzma/api/lzma/block.h | 409 ++++++ 6849 src/liblzma/api/lzma/check.h | 128 ++ 6850 src/liblzma/api/lzma/copy.h | 29 + 6851 src/liblzma/api/lzma/delta.h | 49 + 6852 src/liblzma/api/lzma/extra.h | 114 ++ 6853 src/liblzma/api/lzma/filter.h | 166 +++ 6854 src/liblzma/api/lzma/index.h | 84 ++ 6855 src/liblzma/api/lzma/info.h | 315 ++++ 6856 src/liblzma/api/lzma/init.h | 85 ++ 6857 src/liblzma/api/lzma/lzma.h | 312 ++++ 6858 src/liblzma/api/lzma/memlimit.h | 157 ++ 6859 src/liblzma/api/lzma/metadata.h | 100 ++ 6860 src/liblzma/api/lzma/raw.h | 72 + 6861 src/liblzma/api/lzma/simple.h | 85 ++ 6862 src/liblzma/api/lzma/stream.h | 178 +++ 6863 src/liblzma/api/lzma/stream_flags.h | 142 ++ 6864 src/liblzma/api/lzma/subblock.h | 197 +++ 6865 src/liblzma/api/lzma/version.h | 59 + 6866 src/liblzma/api/lzma/vli.h | 244 ++++ 6867 src/liblzma/check/Makefile.am | 64 + 6868 src/liblzma/check/check.c | 160 ++ 6869 src/liblzma/check/check.h | 102 ++ 6870 src/liblzma/check/check_byteswap.h | 43 + 6871 src/liblzma/check/check_init.c | 37 + 6872 src/liblzma/check/crc32.c | 88 ++ 6873 src/liblzma/check/crc32_init.c | 58 + 6874 src/liblzma/check/crc32_table.c | 22 + 6875 src/liblzma/check/crc32_table_be.h | 527 +++++++ 6876 src/liblzma/check/crc32_table_le.h | 527 +++++++ 6877 src/liblzma/check/crc32_tablegen.c | 55 + 6878 src/liblzma/check/crc32_x86.s | 217 +++ 6879 src/liblzma/check/crc64.c | 75 + 6880 src/liblzma/check/crc64_init.c | 58 + 6881 src/liblzma/check/crc64_table.c | 22 + 6882 src/liblzma/check/crc64_table_be.h | 523 +++++++ 6883 src/liblzma/check/crc64_table_le.h | 523 +++++++ 6884 src/liblzma/check/crc64_tablegen.c | 56 + 6885 src/liblzma/check/crc64_x86.s | 203 +++ 6886 src/liblzma/check/crc_macros.h | 33 + 6887 src/liblzma/check/sha256.c | 203 +++ 6888 src/liblzma/common/Makefile.am | 94 ++ 6889 src/liblzma/common/alignment.c | 118 ++ 6890 src/liblzma/common/allocator.c | 57 + 6891 src/liblzma/common/alone_decoder.c | 197 +++ 6892 src/liblzma/common/alone_decoder.h | 24 + 6893 src/liblzma/common/alone_encoder.c | 167 +++ 6894 src/liblzma/common/auto_decoder.c | 113 ++ 6895 src/liblzma/common/block_decoder.c | 405 +++++ 6896 src/liblzma/common/block_decoder.h | 29 + 6897 src/liblzma/common/block_encoder.c | 375 +++++ 6898 src/liblzma/common/block_encoder.h | 29 + 6899 src/liblzma/common/block_header_decoder.c | 373 +++++ 6900 src/liblzma/common/block_header_encoder.c | 211 +++ 6901 src/liblzma/common/block_private.h | 46 + 6902 src/liblzma/common/chunk_size.c | 74 + 6903 src/liblzma/common/code.c | 203 +++ 6904 src/liblzma/common/common.h | 271 ++++ 6905 src/liblzma/common/copy_coder.c | 143 ++ 6906 src/liblzma/common/copy_coder.h | 31 + 6907 src/liblzma/common/delta_coder.c | 210 +++ 6908 src/liblzma/common/delta_coder.h | 31 + 6909 src/liblzma/common/extra.c | 33 + 6910 src/liblzma/common/features.c | 70 + 6911 src/liblzma/common/filter_flags_decoder.c | 382 +++++ 6912 src/liblzma/common/filter_flags_encoder.c | 359 +++++ 6913 src/liblzma/common/index.c | 140 ++ 6914 src/liblzma/common/info.c | 823 +++++++++++ 6915 src/liblzma/common/init.c | 39 + 6916 src/liblzma/common/init_decoder.c | 33 + 6917 src/liblzma/common/init_encoder.c | 44 + 6918 src/liblzma/common/memory_limitter.c | 200 +++ 6919 src/liblzma/common/memory_usage.c | 113 ++ 6920 src/liblzma/common/metadata_decoder.c | 555 +++++++ 6921 src/liblzma/common/metadata_decoder.h | 31 + 6922 src/liblzma/common/metadata_encoder.c | 436 ++++++ 6923 src/liblzma/common/metadata_encoder.h | 30 + 6924 src/liblzma/common/next_coder.c | 65 + 6925 src/liblzma/common/raw_common.c | 175 +++ 6926 src/liblzma/common/raw_common.h | 31 + 6927 src/liblzma/common/raw_decoder.c | 127 ++ 6928 src/liblzma/common/raw_decoder.h | 30 + 6929 src/liblzma/common/raw_encoder.c | 124 ++ 6930 src/liblzma/common/raw_encoder.h | 30 + 6931 src/liblzma/common/stream_common.c | 23 + 6932 src/liblzma/common/stream_common.h | 28 + 6933 src/liblzma/common/stream_decoder.c | 454 ++++++ 6934 src/liblzma/common/stream_encoder_multi.c | 460 ++++++ 6935 src/liblzma/common/stream_encoder_single.c | 220 +++ 6936 src/liblzma/common/stream_flags_decoder.c | 258 ++++ 6937 src/liblzma/common/stream_flags_decoder.h | 31 + 6938 src/liblzma/common/stream_flags_encoder.c | 75 + 6939 src/liblzma/common/sysdefs.h | 1 + 6940 src/liblzma/common/version.c | 25 + 6941 src/liblzma/common/vli_decoder.c | 69 + 6942 src/liblzma/common/vli_encoder.c | 81 + 6943 src/liblzma/common/vli_reverse_decoder.c | 55 + 6944 src/liblzma/lz/Makefile.am | 63 + 6945 src/liblzma/lz/bt2.c | 27 + 6946 src/liblzma/lz/bt2.h | 31 + 6947 src/liblzma/lz/bt3.c | 29 + 6948 src/liblzma/lz/bt3.h | 31 + 6949 src/liblzma/lz/bt4.c | 30 + 6950 src/liblzma/lz/bt4.h | 31 + 6951 src/liblzma/lz/hc3.c | 30 + 6952 src/liblzma/lz/hc3.h | 31 + 6953 src/liblzma/lz/hc4.c | 31 + 6954 src/liblzma/lz/hc4.h | 31 + 6955 src/liblzma/lz/lz_decoder.c | 462 ++++++ 6956 src/liblzma/lz/lz_decoder.h | 214 +++ 6957 src/liblzma/lz/lz_encoder.c | 481 ++++++ 6958 src/liblzma/lz/lz_encoder.h | 161 ++ 6959 src/liblzma/lz/lz_encoder_private.h | 40 + 6960 src/liblzma/lz/match_c.h | 401 +++++ 6961 src/liblzma/lz/match_h.h | 69 + 6962 src/liblzma/lzma.pc.in | 11 + 6963 src/liblzma/lzma/Makefile.am | 43 + 6964 src/liblzma/lzma/lzma_common.h | 128 ++ 6965 src/liblzma/lzma/lzma_decoder.c | 844 +++++++++++ 6966 src/liblzma/lzma/lzma_decoder.h | 41 + 6967 src/liblzma/lzma/lzma_encoder.c | 413 ++++++ 6968 src/liblzma/lzma/lzma_encoder.h | 35 + 6969 src/liblzma/lzma/lzma_encoder_features.c | 59 + 6970 src/liblzma/lzma/lzma_encoder_getoptimum.c | 893 ++++++++++++ 6971 src/liblzma/lzma/lzma_encoder_getoptimumfast.c | 201 +++ 6972 src/liblzma/lzma/lzma_encoder_init.c | 245 ++++ 6973 src/liblzma/lzma/lzma_encoder_presets.c | 34 + 6974 src/liblzma/lzma/lzma_encoder_private.h | 225 +++ 6975 src/liblzma/lzma/lzma_literal.c | 74 + 6976 src/liblzma/lzma/lzma_literal.h | 74 + 6977 src/liblzma/rangecoder/Makefile.am | 28 + 6978 src/liblzma/rangecoder/range_common.h | 68 + 6979 src/liblzma/rangecoder/range_decoder.h | 189 +++ 6980 src/liblzma/rangecoder/range_encoder.c | 46 + 6981 src/liblzma/rangecoder/range_encoder.h | 317 ++++ 6982 src/liblzma/simple/Makefile.am | 46 + 6983 src/liblzma/simple/arm.c | 76 + 6984 src/liblzma/simple/armthumb.c | 81 + 6985 src/liblzma/simple/ia64.c | 117 ++ 6986 src/liblzma/simple/powerpc.c | 80 + 6987 src/liblzma/simple/simple_coder.c | 306 ++++ 6988 src/liblzma/simple/simple_coder.h | 68 + 6989 src/liblzma/simple/simple_private.h | 86 ++ 6990 src/liblzma/simple/sparc.c | 88 ++ 6991 src/liblzma/simple/x86.c | 161 ++ 6992 src/liblzma/subblock/Makefile.am | 33 + 6993 src/liblzma/subblock/subblock_decoder.c | 681 +++++++++ 6994 src/liblzma/subblock/subblock_decoder.h | 29 + 6995 src/liblzma/subblock/subblock_decoder_helper.c | 80 + 6996 src/liblzma/subblock/subblock_decoder_helper.h | 36 + 6997 src/liblzma/subblock/subblock_encoder.c | 841 +++++++++++ 6998 src/liblzma/subblock/subblock_encoder.h | 28 + 6999 src/lzma/Makefile.am | 63 + 7000 src/lzma/alloc.c | 106 ++ 7001 src/lzma/alloc.h | 42 + 7002 src/lzma/args.c | 566 +++++++ 7003 src/lzma/args.h | 64 + 7004 src/lzma/error.c | 156 ++ 7005 src/lzma/error.h | 67 + 7006 src/lzma/hardware.c | 99 ++ 7007 src/lzma/hardware.h | 31 + 7008 src/lzma/help.c | 178 +++ 7009 src/lzma/help.h | 32 + 7010 src/lzma/io.c | 664 +++++++++ 7011 src/lzma/io.h | 60 + 7012 src/lzma/list.c | 477 ++++++ 7013 src/lzma/main.c | 254 ++++ 7014 src/lzma/options.c | 346 +++++ 7015 src/lzma/options.h | 46 + 7016 src/lzma/private.h | 55 + 7017 src/lzma/process.c | 458 ++++++ 7018 src/lzma/process.h | 30 + 7019 src/lzma/suffix.c | 145 ++ 7020 src/lzma/suffix.h | 25 + 7021 src/lzma/util.c | 182 +++ 7022 src/lzma/util.h | 32 + 7023 src/lzmadec/Makefile.am | 27 + 7024 src/lzmadec/lzmadec.c | 515 +++++++ 7025 src/scripts/Makefile.am | 24 + 7026 src/scripts/lzdiff | 67 + 7027 src/scripts/lzdiff.1 | 51 + 7028 src/scripts/lzgrep | 123 ++ 7029 src/scripts/lzgrep.1 | 61 + 7030 src/scripts/lzmore | 74 + 7031 src/scripts/lzmore.1 | 55 + 7032 tests/Makefile.am | 43 + 7033 tests/test_block.c | 59 + 7034 tests/test_block_header.c | 352 +++++ 7035 tests/test_check.c | 90 ++ 7036 tests/test_filter_flags.c | 326 +++++ 7037 tests/test_index.c | 43 + 7038 tests/test_info.c | 717 +++++++++ 7039 tests/test_stream_flags.c | 191 +++ 7040 tests/tests.h | 148 ++ 7041 239 files changed, 42513 insertions(+), 0 deletions(-) 7042