ChangeLog revision 207753
1207753Smmcommit a290cfee3e23f046889c022aa96b4eca2016fdda 2207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3207753SmmDate: Mon Apr 12 21:55:56 2010 +0300 4207753Smm 5207753Smm Show both elapsed time and estimated remaining time in xz -v. 6207753Smm 7207753Smm The extra space for showing both has been taken from the 8207753Smm sizes field. If the sizes grow big, bigger units than MiB 9207753Smm will be used. It makes it slightly difficult to see that 10207753Smm progress is still happening with huge files, but it should 11207753Smm be OK in practice. 12207753Smm 13207753Smm Thanks to Trent W. Buck for <http://bugs.debian.org/574583> 14207753Smm and Jonathan Nieder for suggestions how to fix it. 15207753Smm 16207753Smmcommit a1f7a986b8d708f9290da9799ca1b8d7082fad3e 17207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 18207753SmmDate: Wed Mar 31 16:47:25 2010 +0300 19207753Smm 20207753Smm Add a simple tip to faq.txt about tar and xz. 21207753Smm 22207753Smm Thanks to Gilles Espinasse. 23207753Smm 24207753Smmcommit c737eec91d200d730aa82662affd6b06ebb0bff0 25207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 26207753SmmDate: Mon Mar 22 21:03:03 2010 +0200 27207753Smm 28207753Smm Updated THANKS. 29207753Smm 30207753Smmcommit f4b2b52624b802c786e4e2a8eb6895794dd93b24 31207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 32207753SmmDate: Sun Mar 7 19:52:25 2010 +0200 33207753Smm 34207753Smm Fix xzgrep to not break if filenames have spaces or quotes. 35207753Smm 36207753Smm Thanks to someone who reported the bug on IRC. 37207753Smm 38207753Smmcommit cf38da00a140bd3bd65b192390ae5553380fd774 39207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 40207753SmmDate: Sun Mar 7 13:59:32 2010 +0200 41207753Smm 42207753Smm Treat all integer multiplier suffixes as base-2. 43207753Smm 44207753Smm Originally both base-2 and base-10 were supported, but since 45207753Smm there seems to be little need for base-10 in XZ Utils, treat 46207753Smm everything as base-2 and also be more relaxed about the case 47207753Smm of the first letter of the suffix. Now xz will accept e.g. 48207753Smm KiB, Ki, k, K, kB, and KB, and interpret them all as 1024. The 49207753Smm recommended spelling of the suffixes are still KiB, MiB, and GiB. 50207753Smm 51207753Smmcommit 00fc1211ae7b687ac912098f4479112059deccbd 52207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 53207753SmmDate: Sun Mar 7 13:50:23 2010 +0200 54207753Smm 55207753Smm Consistently round up the memory usage limit in messages. 56207753Smm 57207753Smm It still feels a bit wrong to round 1 byte to 1 MiB but 58207753Smm at least it is now done consistently so that the same 59207753Smm byte value is always rounded the same way to MiB. 60207753Smm 61207753Smmcommit 9886d436ff5615fc70eef32ff757b1e934069621 62207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 63207753SmmDate: Sun Mar 7 13:34:34 2010 +0200 64207753Smm 65207753Smm Change the default of --enable-assume-ram from 32 to 128 MiB. 66207753Smm 67207753Smm This is to allow files created with "xz -9" to be decompressed 68207753Smm if the amount of RAM cannot be determined. 69207753Smm 70207753Smmcommit 2672bcc9f85ba28ff648e092e9eb4cd9e69ce418 71207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 72207753SmmDate: Sun Mar 7 13:29:28 2010 +0200 73207753Smm 74207753Smm Increase the default memory usage limit on "low-memory" systems. 75207753Smm 76207753Smm Previously the default limit was always 40 % of RAM. The 77207753Smm new limit is a little bit more complex: 78207753Smm 79207753Smm - If 40 % of RAM is at least 80 MiB, 40 % of RAM is used 80207753Smm as the limit. 81207753Smm 82207753Smm - If 80 % of RAM is over 80 MiB, 80 MiB is used as the limit. 83207753Smm 84207753Smm - Otherwise 80 % of RAM is used as the limit. 85207753Smm 86207753Smm This should make it possible to decompress files created with 87207753Smm "xz -9" on more systems. Swapping is generally more expected 88207753Smm on systems with less RAM, so higher default limit on them 89207753Smm shouldn't cause too bad surprises in terms of heavy swapping. 90207753Smm Instead, the higher default limit should reduce the number of 91207753Smm bad surprises when it used to prevent decompression of files 92207753Smm created with "xz -9". The DoS prevention system shouldn't be 93207753Smm a DoS itself. 94207753Smm 95207753Smm Note that even with the new default limit, a system with 64 MiB 96207753Smm RAM cannot decompress files created with "xz -9" without user 97207753Smm overriding the limit. This should be OK, because if xz is going 98207753Smm to need more memory than the system has RAM, it will run very 99207753Smm very slowly and thus it's good that user has to override the limit 100207753Smm in that case. 101207753Smm 102207753Smmcommit 5527b7269a997e7f335d60f237a64bbf225d9dc7 103207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 104207753SmmDate: Sat Mar 6 21:36:19 2010 +0200 105207753Smm 106207753Smm Updated THANKS. 107207753Smm 108207753Smmcommit d0d1c51aea4351288a7e533cce28cb7f852f6b05 109207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 110207753SmmDate: Sat Mar 6 21:17:20 2010 +0200 111207753Smm 112207753Smm Fix missing initialization in lzma_strm_init(). 113207753Smm 114207753Smm With bad luck, lzma_code() could return LZMA_BUF_ERROR 115207753Smm when it shouldn't. 116207753Smm 117207753Smm This has been here since the early days of liblzma. 118207753Smm It got triggered by the modifications made to the xz 119207753Smm tool in commit 18c10c30d2833f394cd7bce0e6a821044b15832f 120207753Smm but only when decompressing .lzma files. Somehow I managed 121207753Smm to miss testing that with Valgrind earlier. 122207753Smm 123207753Smm This fixes <http://bugs.gentoo.org/show_bug.cgi?id=305591>. 124207753Smm Thanks to Rafa�� Mu��y��o for helping to debug it on IRC. 125207753Smm 126207753Smmcommit eb7d51a3faf9298c0c7aa9aaeae1023dcf9e37ea 127207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 128207753SmmDate: Fri Feb 12 13:16:15 2010 +0200 129207753Smm 130207753Smm Collection of language fixes to comments and docs. 131207753Smm 132207753Smm Thanks to Jonathan Nieder. 133207753Smm 134207753Smmcommit 4785f2021aa6a23f1caf724fcc823e562584f225 135207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 136207753SmmDate: Fri Feb 12 12:41:20 2010 +0200 137207753Smm 138207753Smm Fix jl -> jb in ASM files. 139207753Smm 140207753Smmcommit 6b50c9429bf85521d355adc61745d06ee017f8c8 141207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 142207753SmmDate: Fri Feb 12 12:31:22 2010 +0200 143207753Smm 144207753Smm Use __APPLE__ instead of __MACH__ in ASM files. 145207753Smm 146207753Smm This allows the files to work on HURD. 147207753Smm 148207753Smm Thanks to Jonathan Nieder. 149207753Smm 150207753Smmcommit 6503fde658a5cdbdd907a788865470dd64771601 151207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 152207753SmmDate: Sun Feb 7 19:48:06 2010 +0200 153207753Smm 154207753Smm Subtle change to liblzma Block handling API. 155207753Smm 156207753Smm lzma_block.version has to be initialized even for 157207753Smm lzma_block_header_decode(). This way a future version 158207753Smm of liblzma won't allocate memory in a way that an old 159207753Smm application doesn't know how to free it. 160207753Smm 161207753Smm The subtlety of this change is that all current apps 162207753Smm using lzma_block_header_decode() will keep working for 163207753Smm now, because the only possible version value is zero, 164207753Smm and lzma_block_header_decode() unconditionally sets the 165207753Smm version to zero even now. Unless fixed, these apps will 166207753Smm break in the future if a new version of the Block options 167207753Smm is ever needed. 168207753Smm 169207753Smmcommit dd7c3841ff78cb94ce02b0220c6e4748460970f7 170207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 171207753SmmDate: Tue Feb 2 11:50:11 2010 +0200 172207753Smm 173207753Smm Fix wrong assertion. 174207753Smm 175207753Smm This was added in 455e68c030fde8a8c2f5e254c3b3ab9489bf3735. 176207753Smm 177207753Smmcommit 9d67588c1597849504a3e5ac8bf6f06e7d2ee8be 178207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 179207753SmmDate: Mon Feb 1 22:48:42 2010 +0200 180207753Smm 181207753Smm Updated TODO. 182207753Smm 183207753Smmcommit fef6333f52c8801308c3b78acb7942988541d137 184207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 185207753SmmDate: Mon Feb 1 22:47:54 2010 +0200 186207753Smm 187207753Smm Fix typos in comments. 188207753Smm 189207753Smmcommit 455e68c030fde8a8c2f5e254c3b3ab9489bf3735 190207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 191207753SmmDate: Mon Feb 1 22:46:56 2010 +0200 192207753Smm 193207753Smm Fix signal handling for --list. 194207753Smm 195207753Smmcommit 82220a149015616f75641ee8bbea415137535b9b 196207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 197207753SmmDate: Mon Feb 1 11:44:45 2010 +0200 198207753Smm 199207753Smm Fix compression of symlinks with --force. 200207753Smm 201207753Smm xz --force accepted symlinks, but didn't remove 202207753Smm them after successful compression. Instead, an error 203207753Smm message was displayed. 204207753Smm 205207753Smmcommit d4da177d5ba3d2ef7323a6f1e06ca16e0478810e 206207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 207207753SmmDate: Mon Feb 1 10:20:57 2010 +0200 208207753Smm 209207753Smm Fix a comment. 210207753Smm 211207753Smmcommit f9dd797a423a148903cf345b4146cb1fe1eab11d 212207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 213207753SmmDate: Sun Jan 31 23:43:54 2010 +0200 214207753Smm 215207753Smm Updated THANKS. 216207753Smm 217207753Smmcommit ee5ddb8b28419fe4923ded5c18a50570a762dcab 218207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 219207753SmmDate: Sun Jan 31 23:41:29 2010 +0200 220207753Smm 221207753Smm Updated TODO. 222207753Smm 223207753Smmcommit 11936ad3f5a2e97bda3463c7a56a2f4bb9265ea6 224207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 225207753SmmDate: Sun Jan 31 23:35:04 2010 +0200 226207753Smm 227207753Smm Mention TODO in README. 228207753Smm 229207753Smmcommit 2901a8e7e82af05675b8cd8758a8ceddb111359f 230207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 231207753SmmDate: Sun Jan 31 23:31:14 2010 +0200 232207753Smm 233207753Smm Updated INSTALL. 234207753Smm 235207753Smmcommit 8884e16864ba53fb4b58623d7537d7ef30c28e11 236207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 237207753SmmDate: Sun Jan 31 23:28:51 2010 +0200 238207753Smm 239207753Smm Revise the Windows build files. 240207753Smm 241207753Smm The old Makefile + config.h was deleted, because it 242207753Smm becomes outdated too easily and building with the 243207753Smm Autotools based build system works fine even on Windows. 244207753Smm 245207753Smm windows/build.sh hasn't got much testing, but it should 246207753Smm work to build 32-bit x86 and x86-64 versions of XZ Utils 247207753Smm using MSYS, MinGW or MinGW-w32, and MinGW-w64. 248207753Smm 249207753Smm windows/INSTALL-Windows.txt describes what packages are 250207753Smm needed and how to install them. 251207753Smm 252207753Smm windows/README-Windows.txt is a readme file for the binary 253207753Smm package that build.sh hopefully builds. 254207753Smm 255207753Smm There are no instructions about using Autotools for now, 256207753Smm so those using a git snapshot may want to run 257207753Smm "autoreconf -fi && ./configure && make mydist" on a UN*X 258207753Smm box and then copy the resulting .tar.gz to a Windows. 259207753Smm 260207753Smmcommit 34eb5e201d62f7f46bbe6fe97cfe08cb31b3b88c 261207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 262207753SmmDate: Sun Jan 31 19:52:38 2010 +0200 263207753Smm 264207753Smm Select the default integrity check type at runtime. 265207753Smm 266207753Smm Previously it was set statically to CRC64 or CRC32 267207753Smm depending on options passed to the configure script. 268207753Smm 269207753Smmcommit 96a4f840e3b9ca5c81e5711ff9c267b194f93ef1 270207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 271207753SmmDate: Sun Jan 31 18:17:50 2010 +0200 272207753Smm 273207753Smm Improve displaying of the memory usage limit. 274207753Smm 275207753Smmcommit b3cc4d8edd68a0250cc69680c99b9f7343f99cf2 276207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 277207753SmmDate: Sun Jan 31 12:53:56 2010 +0200 278207753Smm 279207753Smm Don't use uninitialized sigset_t. 280207753Smm 281207753Smm If signal handlers haven't been established, then it's 282207753Smm useless to try to block them, especially since the sigset_t 283207753Smm used for blocking hasn't been initialized yet. 284207753Smm 285207753Smmcommit 231c3c7098f1099a56abb8afece76fc9b8699f05 286207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 287207753SmmDate: Sun Jan 31 12:01:54 2010 +0200 288207753Smm 289207753Smm Delay opening the destionation file and other fixes. 290207753Smm 291207753Smm The opening of the destination file is now delayed a little. 292207753Smm The coder is initialized, and if decompressing, the memory 293207753Smm usage of the first Block compared against the memory 294207753Smm usage limit before the destination file is opened. This 295207753Smm means that if --force was used, the old "target" file won't 296207753Smm be deleted so easily when something goes wrong very early. 297207753Smm Thanks to Mark K for the bug report. 298207753Smm 299207753Smm The above fix required some changes to progress message 300207753Smm handling. Now there is a separate function for setting and 301207753Smm printing the filename. It is used also in list.c. 302207753Smm 303207753Smm list_file() now handles stdin correctly (gives an error). 304207753Smm 305207753Smm A useless check for user_abort was removed from file_io.c. 306207753Smm 307207753Smmcommit 0dbd0641db99d5e73d51d04ce7a71e52dc6b4105 308207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 309207753SmmDate: Fri Jan 29 22:48:04 2010 +0200 310207753Smm 311207753Smm Add list.h to src/xz/Makefile.am. 312207753Smm 313207753Smm This should have been already in 314207753Smm 0bc9eab243dee3be764b3530433a7fcdc3f7c6a1. 315207753Smm 316207753Smmcommit b4b1a56e0cbd597157858264f5c7189201ac9018 317207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 318207753SmmDate: Fri Jan 29 13:24:27 2010 +0200 319207753Smm 320207753Smm Add lzmainfo.1 to manfiles list to convert to .txt and .pdf. 321207753Smm 322207753Smmcommit 5574d64e03ad3a3d6e00e4b0d3e81c7b5529ec95 323207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 324207753SmmDate: Wed Jan 27 16:42:11 2010 +0200 325207753Smm 326207753Smm Silence two compiler warnings on DOS-like systems. 327207753Smm 328207753Smmcommit b063cc34a30a4edf109343ff373b2b62b8ca72d3 329207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 330207753SmmDate: Wed Jan 27 13:31:03 2010 +0200 331207753Smm 332207753Smm Use PACKAGE_URL instead of custom PACKAGE_HOMEPAGE. 333207753Smm 334207753Smmcommit 38b8035b5cb5f56457c5fa5a891d6900fcf5984f 335207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 336207753SmmDate: Tue Jan 26 23:37:46 2010 +0200 337207753Smm 338207753Smm Add a missing space to an error message. 339207753Smm 340207753Smm Thanks to Robert Readman. 341207753Smm 342207753Smmcommit e5496f9628ff5979392a80421d0b63a4de8015b4 343207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 344207753SmmDate: Tue Jan 26 22:53:37 2010 +0200 345207753Smm 346207753Smm Use past tense in error message in io_unlink(). 347207753Smm 348207753Smm Added a note to translators too. 349207753Smm 350207753Smm Thanks to Robert Readman. 351207753Smm 352207753Smmcommit d9a9800597ea540090e434132c3b511217df0a2b 353207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 354207753SmmDate: Tue Jan 26 15:42:24 2010 +0200 355207753Smm 356207753Smm Fix too small static buffer in util.c. 357207753Smm 358207753Smm This was introduced in 359207753Smm 0dd6d007669b946543ca939a44243833c79e08f4 two days ago. 360207753Smm 361207753Smmcommit d0b4bbf5da068503c099cd456e294d7673548cc0 362207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 363207753SmmDate: Tue Jan 26 14:46:43 2010 +0200 364207753Smm 365207753Smm Minor comment fix. 366207753Smm 367207753Smmcommit 0bc9eab243dee3be764b3530433a7fcdc3f7c6a1 368207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 369207753SmmDate: Sun Jan 24 23:50:54 2010 +0200 370207753Smm 371207753Smm Add initial version of xz --list. 372207753Smm 373207753Smm This is a bit rough but should be useful for basic things. 374207753Smm Ideas (with detailed examples) about the output format are 375207753Smm welcome. 376207753Smm 377207753Smm The output of --robot --list is not necessarily stable yet, 378207753Smm although I don't currently have any plans about changing it. 379207753Smm 380207753Smm The man page hasn't been updated yet. 381207753Smm 382207753Smmcommit df254ce03be016e217b511e7acd5d493f9929ca5 383207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 384207753SmmDate: Sun Jan 24 22:46:11 2010 +0200 385207753Smm 386207753Smm Add io_pread(). 387207753Smm 388207753Smm It will be used by --list. 389207753Smm 390207753Smmcommit ef68dd4a92976276304de2aedfbe34ae91a86abb 391207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 392207753SmmDate: Sun Jan 24 22:45:14 2010 +0200 393207753Smm 394207753Smm Set LC_NUMERIC=C when --robot is used. 395207753Smm 396207753Smm It is to ensure that floating point numbers 397207753Smm will always have a dot as the decimal separator. 398207753Smm 399207753Smmcommit 0dd6d007669b946543ca939a44243833c79e08f4 400207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 401207753SmmDate: Sun Jan 24 16:57:40 2010 +0200 402207753Smm 403207753Smm Some improvements to printing sizes in xz. 404207753Smm 405207753Smmcommit 2a98fdffd68c66371279c211c29153c808ad5c1d 406207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 407207753SmmDate: Wed Jan 20 22:02:35 2010 +0200 408207753Smm 409207753Smm Fix a typo in README. 410207753Smm 411207753Smm Thanks to R. Bijker. 412207753Smm 413207753Smmcommit 07a11dad44e041b01dcfc73e8d4e00731158c06d 414207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 415207753SmmDate: Sun Jan 17 11:59:54 2010 +0200 416207753Smm 417207753Smm Updated windows/Makefile. 418207753Smm 419207753Smm Thanks to Dan Shechter for the patch. 420207753Smm 421207753Smm It is likely that windows/Makefile will be removed 422207753Smm completely, because Autotols based build nowadays 423207753Smm works well with both 32-bit and 64-bit MinGW (I 424207753Smm just need to update the docs). 425207753Smm 426207753Smmcommit 37f31ead9d2b4e467df11450cf29ed7d7e3e25f3 427207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 428207753SmmDate: Fri Jan 15 11:05:11 2010 +0200 429207753Smm 430207753Smm Update the xz man page to match the previous two commits. 431207753Smm 432207753Smmcommit 3ffd5d81a43210c8da56da5c5b3637d3f8bc63c7 433207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 434207753SmmDate: Wed Jan 13 19:10:25 2010 +0200 435207753Smm 436207753Smm Don't read compressed data from a terminal or write it 437207753Smm to a terminal even if --force is specified. 438207753Smm 439207753Smm It just seems more reasonable this way. 440207753Smm 441207753Smm The new behavior matches bzip2. The old one matched gzip. 442207753Smm 443207753Smmcommit 23ac2c44c3ac76994825adb7f9a8f719f78b5ee4 444207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 445207753SmmDate: Wed Jan 13 18:12:40 2010 +0200 446207753Smm 447207753Smm Don't compress or decompress special files unless writing 448207753Smm to stdout even if --force is used. 449207753Smm 450207753Smm --force will still enable compression of symlinks, but only 451207753Smm in case they point to a regular file. 452207753Smm 453207753Smm The new way simply seems more reasonable. It matches gzip's 454207753Smm behavior while the old one matched bzip2's behavior. 455207753Smm 456207753Smmcommit cee12aa852ec0902983dc1f153346ef750157fb9 457207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 458207753SmmDate: Tue Jan 12 16:30:33 2010 +0200 459207753Smm 460207753Smm Updated THANKS. 461207753Smm 462207753Smmcommit 153c7740c54b3c90129dbd3d6153ac1303c4d605 463207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 464207753SmmDate: Tue Jan 12 16:18:14 2010 +0200 465207753Smm 466207753Smm Add IRIX-specific code to tuklib_physmem and tuklib_cpucores. 467207753Smm 468207753Smm This is untested but it will get tested soon and, if needed, 469207753Smm fixed before 5.0.0. 470207753Smm 471207753Smm Thanks to Stuart Shelton. 472207753Smm 473207753Smmcommit 8ea8dc754a7a5bc2d60db1eac201839cabdab6a1 474207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 475207753SmmDate: Fri Jan 1 00:29:10 2010 +0200 476207753Smm 477207753Smm Fix _memconfig() functions. 478207753Smm 479207753Smm This affects lzma_memusage() and lzma_memlimit_get(). 480207753Smm 481207753Smmcommit 1a7ec87c8ee61dfc2e496d2e1fb7ab0939804691 482207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 483207753SmmDate: Thu Dec 31 22:45:53 2009 +0200 484207753Smm 485207753Smm Revised the Index handling code. 486207753Smm 487207753Smm This breaks API and ABI but most apps are not affected 488207753Smm since most apps don't use this part of the API. You will 489207753Smm get a compile error if you are using anything that got 490207753Smm broken. 491207753Smm 492207753Smm Summary of changes: 493207753Smm 494207753Smm - Ability to store Stream Flags, which are needed 495207753Smm for random-access reading in multi-Stream files. 496207753Smm 497207753Smm - Separate function to set size of Stream Padding. 498207753Smm 499207753Smm - Iterator structure makes it possible to read the same 500207753Smm lzma_index from multiple threads at the same time. 501207753Smm 502207753Smm - A lot faster code to locate Blocks. 503207753Smm 504207753Smm - Removed lzma_index_equal() without adding anything 505207753Smm to replace it. I don't know what it should do exactly 506207753Smm with the new features and what actually needs this 507207753Smm function in the first place other than test_index.c, 508207753Smm which now has its own code to compare lzma_indexes. 509207753Smm 510207753Smmcommit f29997a846e673cb3b8cbd57de47ed313b3978bb 511207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 512207753SmmDate: Thu Dec 31 21:13:25 2009 +0200 513207753Smm 514207753Smm Remove c-format tag in cs.po. 515207753Smm 516207753Smm It was fixed in the C code earlier. 517207753Smm 518207753Smmcommit 097bad000363e0bf29f8274ad2d7ab59f7dbf644 519207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 520207753SmmDate: Thu Dec 31 21:11:05 2009 +0200 521207753Smm 522207753Smm Add missing lzma_nothrow in filter.h. 523207753Smm 524207753Smmcommit b56cb1fc31fa2381f92eefc040df85667048d626 525207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 526207753SmmDate: Wed Dec 9 18:13:44 2009 +0200 527207753Smm 528207753Smm Remove redefinition of _(msgid) macro from lzmainfo.c. 529207753Smm 530207753Smmcommit 171b03febfe09d9fae6ac8be6aa4518bcaf427d2 531207753SmmAuthor: Jonathan Nieder <jrnieder@gmail.com> 532207753SmmDate: Tue Dec 8 19:41:57 2009 -0600 533207753Smm 534207753Smm update po/.gitignore 535207753Smm 536207753Smm Since the *.gmo files are deleted by the maintainer-clean target, 537207753Smm I assume they are not meant to be tracked. 538207753Smm 539207753Smm Also add the other files listed in the Makefile���s clean targets 540207753Smm (stamp-poT, xz.po, xz.[12].po, *.new.po, xz.mo) to make sure they 541207753Smm are not accidentally tracked. Most of these are intermediate 542207753Smm files that would not appear unless a build is interrupted or 543207753Smm fails. 544207753Smm 545207753Smm Split the list of untracked files by origin to make it easier to 546207753Smm tell if files are missing in the future. 547207753Smm 548207753Smm Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> 549207753Smm 550207753Smmcommit f7e44c6c11f630519072971b8b07a5729c096c36 551207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 552207753SmmDate: Wed Dec 9 00:38:55 2009 +0200 553207753Smm 554207753Smm Always rely on GCC's auto-import on Windows. 555207753Smm 556207753Smm I understood that this is nicer, because then people 557207753Smm don't need to worry about the LZMA_API_STATIC macro. 558207753Smm 559207753Smm Thanks to Charles Wilson and Keith Marshall. 560207753Smm 561207753Smmcommit 7b76a3e2336f25088957cba92b0dbd854d9caa3c 562207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 563207753SmmDate: Mon Dec 7 21:46:53 2009 +0200 564207753Smm 565207753Smm Fix file_io.c on DOS-like systems. 566207753Smm 567207753Smm The problem was introduced when adding sparse file 568207753Smm support in 465d1b0d6518c5d980f2db4c2d769f9905bdd902. 569207753Smm 570207753Smm Thanks to Charles Wilson. 571207753Smm 572207753Smmcommit 0696f5d268362221380e039bad48a86e29067c6a 573207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 574207753SmmDate: Mon Dec 7 20:54:21 2009 +0200 575207753Smm 576207753Smm Add Czech translation. 577207753Smm 578207753Smm Thanks to Marek ��ernock��. 579207753Smm 580207753Smm Other people planning to translate xz: Note that the 581207753Smm messages are a little bit in flux still. Translations 582207753Smm are still welcome, just be prepared to some extra work 583207753Smm in case there are changes. 584207753Smm 585207753Smmcommit 5e817a50d276f0a3607638c1c1d449d50b9aa4e5 586207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 587207753SmmDate: Mon Dec 7 20:32:08 2009 +0200 588207753Smm 589207753Smm Add a note for translators to add a bug reporting address 590207753Smm for translation bugs. 591207753Smm 592207753Smmcommit 6db1c35be9e1e364cdacff6878910e1b7aac2a37 593207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 594207753SmmDate: Mon Dec 7 20:07:02 2009 +0200 595207753Smm 596207753Smm Prevent xgettext from taking one regular string as a C format string. 597207753Smm 598207753Smm Thanks to Marek ��ernock��. 599207753Smm 600207753Smmcommit e0c2776b6ffbd2b1900fde353aceac734edc93d7 601207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 602207753SmmDate: Sat Nov 28 17:45:22 2009 +0200 603207753Smm 604207753Smm Remove duplicate code in io_open_dest(). 605207753Smm 606207753Smm Fix a missing _() in the error message too. 607207753Smm 608207753Smmcommit f057a33c6f7c5992389479f2d4feabf2900ba7ee 609207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 610207753SmmDate: Thu Nov 26 10:11:23 2009 +0200 611207753Smm 612207753Smm Typo fix to sysdefs.h. 613207753Smm 614207753Smm Thanks to Jonathan Nieder. 615207753Smm 616207753Smmcommit 8767b41534eafdf5e742e12190646bf5740b0cdb 617207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 618207753SmmDate: Thu Nov 26 10:10:36 2009 +0200 619207753Smm 620207753Smm Fix a memory leak in test_index.c. 621207753Smm 622207753Smm This was introduced in 623207753Smm bd13b04e202b6f495a68eb0766f97085b7c50a06. 624207753Smm 625207753Smm Thanks to Jim Meyering for noticing it. 626207753Smm 627207753Smmcommit 919fbaff860acdaa4bcd216500a0b1c960a6db92 628207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 629207753SmmDate: Wed Nov 25 14:22:19 2009 +0200 630207753Smm 631207753Smm Add missing error check to coder.c. 632207753Smm 633207753Smm With bad luck this could cause a segfault due to 634207753Smm reading (but not writing) past the end of the buffer. 635207753Smm 636207753Smmcommit bd13b04e202b6f495a68eb0766f97085b7c50a06 637207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 638207753SmmDate: Wed Nov 25 13:04:10 2009 +0200 639207753Smm 640207753Smm Fix bugs in lzma_index_read() and lzma_index_cat(). 641207753Smm 642207753Smm lzma_index_read() didn't skip over Stream Padding 643207753Smm if it was the first record in the Index. 644207753Smm 645207753Smm lzma_index_cat() didn't combine small Indexes correctly. 646207753Smm 647207753Smm The test suite was updated to check for these bugs. 648207753Smm 649207753Smm These bugs didn't affect the xz command line tool or 650207753Smm most users of liblzma in any way. 651207753Smm 652207753Smmcommit 1f196909143b888e062bd9a0c4ba8c34d3019bfa 653207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 654207753SmmDate: Wed Nov 25 12:52:56 2009 +0200 655207753Smm 656207753Smm Index decoder fixes. 657207753Smm 658207753Smm The Index decoder code didn't perfectly match the API docs, 659207753Smm which said that *i will be set to point to the decoded Index 660207753Smm only after decoding has succeeded. The docs were a bit unclear 661207753Smm too. 662207753Smm 663207753Smm Now the decoder will initially set *i to NULL. *i will be set 664207753Smm to point to the decoded Index once decoding has succeeded. 665207753Smm This simplifies applications too, since it avoids dangling 666207753Smm pointers. 667207753Smm 668207753Smmcommit 465d1b0d6518c5d980f2db4c2d769f9905bdd902 669207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 670207753SmmDate: Wed Nov 25 11:19:20 2009 +0200 671207753Smm 672207753Smm Create sparse files by default when decompressing into 673207753Smm a regular file. 674207753Smm 675207753Smm Sparse file creation can be disabled with --no-sparse. 676207753Smm I don't promise yet that the name of this option won't 677207753Smm change before 5.0.0. It's possible that the code, that 678207753Smm checks when it is safe to use sparse output on stdout, 679207753Smm is not good enough, and a more flexible command line 680207753Smm option is needed to configure sparse file handling. 681207753Smm 682207753Smmcommit 37de544414fc2dc5039471d1002ebd015eb3e627 683207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 684207753SmmDate: Sun Nov 22 12:43:06 2009 +0200 685207753Smm 686207753Smm Updated THANKS. 687207753Smm 688207753Smmcommit f1a28b96c900c658fe016852ff62f6c24d1f50fa 689207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 690207753SmmDate: Sun Nov 22 12:05:33 2009 +0200 691207753Smm 692207753Smm Add missing consts to pointer casts. 693207753Smm 694207753Smmcommit b9b5c54cd438b3ae47b44cc211b71f3bc53e35ef 695207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 696207753SmmDate: Sun Nov 22 12:00:30 2009 +0200 697207753Smm 698207753Smm Enable assembler code only if it is known to work 699207753Smm on that operating system. 700207753Smm 701207753Smm I'm too lazy to think how to make a good Autoconf test 702207753Smm for this and it's not that important anyway. 703207753Smm 704207753Smm No longer define HAVE_ASM_X86 or HAVE_ASM_X86_64. 705207753Smm Inline assembler (if any) is used if a macro like 706207753Smm __i386__ or __x86_64__ is defined. 707207753Smm 708207753Smmcommit 0733f4c9994db696420a405810d5f02c79ebc404 709207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 710207753SmmDate: Sun Nov 22 11:55:03 2009 +0200 711207753Smm 712207753Smm Make fastpos.h use tuklib_integer.h instead of bsr.h 713207753Smm when --enable-small has been specified. 714207753Smm 715207753Smmcommit 7ac3985d891dcc5773543f84cc5bce6c14841b12 716207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 717207753SmmDate: Sun Nov 22 11:52:30 2009 +0200 718207753Smm 719207753Smm Update tuklib_integer.h with bit scan functions. 720207753Smm 721207753Smm Thanks to Joachim Henke for the original patch. 722207753Smm 723207753Smmcommit c74c132f7f79a842c073c66575a4fdb985e4c2e3 724207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 725207753SmmDate: Fri Nov 20 12:51:19 2009 +0200 726207753Smm 727207753Smm Update tuklib_cpucores.m4 and tuklib_physmem.m4 from tuklib, 728207753Smm which now use AC_CACHE_CHECK. Using the cache variable, 729207753Smm configure now warns if there is no method to detect the amount 730207753Smm of RAM and recommends using --enable-assume-ram. 731207753Smm 732207753Smmcommit d315ca4930ff96e1428c6021c96f209e1abdd83e 733207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 734207753SmmDate: Mon Nov 16 18:16:45 2009 +0200 735207753Smm 736207753Smm Add support for --info-memory and --robot to xz. 737207753Smm 738207753Smm Currently --robot works only with --info-memory and 739207753Smm --version. --help and --long-help work too, but --robot 740207753Smm has no effect on them. 741207753Smm 742207753Smm Thanks to Jonathan Nieder for the original patches. 743207753Smm 744207753Smmcommit e330fb7e6b8162894280c8a3dc22fdc05cd2d85e 745207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 746207753SmmDate: Sun Nov 15 12:54:45 2009 +0200 747207753Smm 748207753Smm Fix wrong indentation caused by incorrect settings 749207753Smm in the text editor. 750207753Smm 751207753Smmcommit 93e418562cf127a9171e87bcd4e9af8e1bfcdae4 752207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 753207753SmmDate: Sun Nov 15 12:40:17 2009 +0200 754207753Smm 755207753Smm Add lzma_physmem(). 756207753Smm 757207753Smm I had hoped to keep liblzma as purely a compression 758207753Smm library as possible (e.g. file I/O will go into 759207753Smm a different library), but it seems that applications 760207753Smm linking agaisnt liblzma need some way to determine 761207753Smm the memory usage limit, and knowing the amount of RAM 762207753Smm is one reasonable way to help making such decisions. 763207753Smm 764207753Smm Thanks to Jonathan Nieder for the original patch. 765207753Smm 766207753Smmcommit cf39faca59083d38422058c6c97aa757ea7797d0 767207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 768207753SmmDate: Sat Nov 14 20:21:19 2009 +0200 769207753Smm 770207753Smm Updated THANKS. 771207753Smm 772207753Smmcommit 2ddcae247c284cc2f396b6cfdab57790c7588b5f 773207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 774207753SmmDate: Sat Nov 14 20:20:03 2009 +0200 775207753Smm 776207753Smm Some updates to xz man page. 777207753Smm 778207753Smmcommit 19b2674f07f8b588dfaf6638396b4b42866d7e23 779207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 780207753SmmDate: Sat Nov 14 19:51:03 2009 +0200 781207753Smm 782207753Smm Fix description of --memory in --long-help. 783207753Smm 784207753Smmcommit 2291346f0cccf88e605d84b75c9c5aaaaddb5df8 785207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 786207753SmmDate: Sat Nov 14 19:45:39 2009 +0200 787207753Smm 788207753Smm Update the debug programs so that they compile again. 789207753Smm 790207753Smmcommit 418d64a32e8144210f98a810738fed5a897e8367 791207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 792207753SmmDate: Sat Nov 14 18:59:19 2009 +0200 793207753Smm 794207753Smm Fix a design error in liblzma API. 795207753Smm 796207753Smm Originally the idea was that using LZMA_FULL_FLUSH 797207753Smm with Stream encoder would read the filter chain 798207753Smm from the same array that was used to intialize the 799207753Smm Stream encoder. Since most apps wouldn't use 800207753Smm LZMA_FULL_FLUSH, most apps wouldn't need to keep 801207753Smm the filter chain available after initializing the 802207753Smm Stream encoder. However, due to my mistake, it 803207753Smm actually required keeping the array always available. 804207753Smm 805207753Smm Since setting the new filter chain via the array 806207753Smm used at initialization time is not a nice way to do 807207753Smm it for a couple of reasons, this commit ditches it 808207753Smm and introduces lzma_filters_update(). This new function 809207753Smm replaces also the "persistent" flag used by LZMA2 810207753Smm (and to-be-designed Subblock filter), which was also 811207753Smm an ugly thing to do. 812207753Smm 813207753Smm Thanks to Alexey Tourbin for reminding me about the problem 814207753Smm that Stream encoder used to require keeping the filter 815207753Smm chain allocated. 816207753Smm 817207753Smmcommit f0bf7634b77263a4dd02b20c71861ab67995da68 818207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 819207753SmmDate: Sat Oct 17 11:11:58 2009 +0300 820207753Smm 821207753Smm Fix wrong function name in the previous commit. 822207753Smm 823207753Smm It was meant to be lzma_filters_copy(), not lzma_filters_dup(). 824207753Smm 825207753Smmcommit 6d118a0b9def82e96afba7386ec8d7da0b59649f 826207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 827207753SmmDate: Sat Oct 17 01:47:07 2009 +0300 828207753Smm 829207753Smm Add lzma_filters_copy(). 830207753Smm 831207753Smm This will be needed internally by liblzma once I fix 832207753Smm a design mistake in the encoder API. This function may 833207753Smm be useful to applications too so it's good to export it. 834207753Smm 835207753Smmcommit 78e92c18470483e161388e679c1ee556adb3a691 836207753SmmAuthor: Jonathan Nieder <jrnieder@gmail.com> 837207753SmmDate: Thu Oct 15 20:44:13 2009 -0500 838207753Smm 839207753Smm Escape dashes in xzmore.1 840207753Smm 841207753Smm A minus sign is larger, easier to see in a printout, and more 842207753Smm likely to use the same glyph as ASCII hyphen-minus in a terminal 843207753Smm than a hyphen. Since broken manual pagers do not find hyphens 844207753Smm when the user searches for a hyphen-minus, minus signs are also 845207753Smm easier to search for. So use minus signs instead of hyphens to 846207753Smm render sample terminal output. 847207753Smm 848207753Smmcommit 7b7fe902d98da28e5769e2aa1e0c08c92384f7ee 849207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 850207753SmmDate: Fri Oct 16 20:35:39 2009 +0300 851207753Smm 852207753Smm Mention --check=none in --long-help. It was already in 853207753Smm the man page though. 854207753Smm 855207753Smm Thanks to Jim Meyering for noticing this. 856207753Smm 857207753Smmcommit ebfb2c5e1f344e5c6e549b9dedaa49b0749a4a24 858207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 859207753SmmDate: Sun Oct 4 22:57:12 2009 +0300 860207753Smm 861207753Smm Use a tuklib module for integer handling. 862207753Smm 863207753Smm This replaces bswap.h and integer.h. 864207753Smm 865207753Smm The tuklib module uses <byteswap.h> on GNU, 866207753Smm <sys/endian.h> on *BSDs and <sys/byteorder.h> 867207753Smm on Solaris, which may contain optimized code 868207753Smm like inline assembly. 869207753Smm 870207753Smmcommit 29fd321033276261b87da7be5223db33d879a4c7 871207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 872207753SmmDate: Fri Oct 2 14:35:56 2009 +0300 873207753Smm 874207753Smm Add support for --enable-assume-ram=SIZE. 875207753Smm 876207753Smmcommit 3782b3fee4812b0dd4ffdfa6563ed49f73060f25 877207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 878207753SmmDate: Fri Oct 2 11:28:17 2009 +0300 879207753Smm 880207753Smm Use unaligned access (if possible) on both endiannesses 881207753Smm in lz_encoder_hash.h. 882207753Smm 883207753Smmcommit c5f68b5cc79085a87f950fea53843e27f328068e 884207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 885207753SmmDate: Fri Oct 2 11:03:26 2009 +0300 886207753Smm 887207753Smm Make liblzma produce the same output on both endiannesses. 888207753Smm 889207753Smm Seems that it is a problem in some cases if the same 890207753Smm version of XZ Utils produces different output on different 891207753Smm endiannesses, so this commit fixes that problem. The output 892207753Smm will still vary between different XZ Utils versions, but I 893207753Smm cannot avoid that for now. 894207753Smm 895207753Smm This commit bloatens the code on big endian systems by 1 KiB, 896207753Smm which should be OK since liblzma is bloated already. ;-) 897207753Smm 898207753Smmcommit 4a84d1adfda35e4fb4d41ecf0feb8223b100517a 899207753SmmAuthor: Mike Frysinger <vapier@gentoo.org> 900207753SmmDate: Sat Sep 26 12:51:50 2009 -0400 901207753Smm 902207753Smm add lzmainfo to gitignore 903207753Smm 904207753Smm Signed-off-by: Mike Frysinger <vapier@gentoo.org> 905207753Smm 906207753Smmcommit 188a1dcd0cc7867810ed3a55c598d0680922c63b 907207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 908207753SmmDate: Sun Sep 27 11:53:36 2009 +0300 909207753Smm 910207753Smm Updated THANKS. 911207753Smm 912207753Smmcommit db9119b9181b307e7ac5d2bae82444d04b902b59 913207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 914207753SmmDate: Sun Sep 27 11:48:54 2009 +0300 915207753Smm 916207753Smm Work around a bug in Interix header files. 917207753Smm 918207753Smm Thanks to Markus Duft for the patch. 919207753Smm 920207753Smmcommit b3d105e69786a45963176fd2193abe75e05ba738 921207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 922207753SmmDate: Thu Sep 24 17:50:17 2009 +0300 923207753Smm 924207753Smm Fix an error in OpenVMS-specific code. 925207753Smm 926207753Smm Thanks to Jouk Jansen. 927207753Smm 928207753Smmcommit 5e000ff00d4d01e559397b49eb648ad3f159d496 929207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 930207753SmmDate: Tue Sep 22 18:59:56 2009 +0300 931207753Smm 932207753Smm Added OpenVMS-specific information to INSTALL. 933207753Smm 934207753Smmcommit 932b2e204463d70f3eee5b8a1ea5a23bf9d001a4 935207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 936207753SmmDate: Tue Sep 22 14:03:02 2009 +0300 937207753Smm 938207753Smm Better fixes for OpenVMS support. 939207753Smm 940207753Smm Thanks to Jouk Jansen. 941207753Smm 942207753Smmcommit 4c3630ec4179fe9265407a35c4db1374ffc82372 943207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 944207753SmmDate: Tue Sep 22 13:40:19 2009 +0300 945207753Smm 946207753Smm Avoid non-standard preprocessor construct. 947207753Smm 948207753Smm Thanks to Jouk Jansen. 949207753Smm 950207753Smmcommit 0deb1bb60addd1306b525e0ac0ad2a84eb0390d9 951207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 952207753SmmDate: Mon Sep 21 19:50:09 2009 +0300 953207753Smm 954207753Smm Make sure that TUKLIB_DOSLIKE doesn't get defined on Cygwin. 955207753Smm 956207753Smm Thanks to Charles Wilson. 957207753Smm 958207753Smmcommit e599bba4216c0edb8cc8f40adad3a6dba88685f4 959207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 960207753SmmDate: Sat Sep 19 09:47:30 2009 +0300 961207753Smm 962207753Smm Various changes. 963207753Smm 964207753Smm Separate a few reusable components from XZ Utils specific 965207753Smm code. The reusable code is now in "tuklib" modules. A few 966207753Smm more could be separated still, e.g. bswap.h. 967207753Smm 968207753Smm Fix some bugs in lzmainfo. 969207753Smm 970207753Smm Fix physmem and cpucores code on OS/2. Thanks to Elbert Pol 971207753Smm for help. 972207753Smm 973207753Smm Add OpenVMS support into physmem. Add a few #ifdefs to ease 974207753Smm building XZ Utils on OpenVMS. Thanks to Jouk Jansen for the 975207753Smm original patch. 976207753Smm 977207753Smmcommit 49cfc8d392cf535f8dd10233225b1fc726fec9ef 978207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 979207753SmmDate: Tue Sep 15 21:07:23 2009 +0300 980207753Smm 981207753Smm Fix incorrect use of "restrict". 982207753Smm 983207753Smmcommit 15ffd675ab7af84592eb1c23b0e9f4699aa0fd8c 984207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 985207753SmmDate: Sat Sep 12 14:09:17 2009 +0300 986207753Smm 987207753Smm Fix GCC version check for nothrow attribute. 988207753Smm 989207753Smmcommit 6bfdd3a88a819f04c8f202e7d3c6f88a01c7d224 990207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 991207753SmmDate: Sat Sep 12 14:08:15 2009 +0300 992207753Smm 993207753Smm Updated THANKS. 994207753Smm 995207753Smmcommit 4ab7b16b9573bdfa32279e4adadff684d5cd58ac 996207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 997207753SmmDate: Sat Sep 12 14:07:36 2009 +0300 998207753Smm 999207753Smm A few grammar fixes. 1000207753Smm 1001207753Smm Thanks to Christian Weisgerber for pointing out some of these. 1002207753Smm 1003207753Smmcommit 8905a33daadcd2d6557c83c81c490b827d566c94 1004207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1005207753SmmDate: Fri Sep 11 17:08:15 2009 +0300 1006207753Smm 1007207753Smm Updated THANKS. 1008207753Smm 1009207753Smmcommit 68059334ff435300ab1ce2c616b0eee1b0d88dd9 1010207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1011207753SmmDate: Fri Sep 11 17:06:32 2009 +0300 1012207753Smm 1013207753Smm Add PACKAGE_HOMEPAGE to {windows,dos}/config.h to fix build errors. 1014207753Smm 1015207753Smmcommit 221be761f467da76875247bc02d7a1716682075d 1016207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1017207753SmmDate: Fri Sep 11 10:24:09 2009 +0300 1018207753Smm 1019207753Smm Use $(LN_EXEEXT) in symlinks to executables. 1020207753Smm 1021207753Smm This fixes "make install" on operating systems using 1022207753Smm a suffix for executables. 1023207753Smm 1024207753Smm Cygwin is treated specially. The symlink names won't have 1025207753Smm .exe suffix even though the executables themselves have. 1026207753Smm Thanks to Charles Wilson. 1027207753Smm 1028207753Smmcommit 18a4233a53d9b82abac7db7d7804684c5fea9c2c 1029207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1030207753SmmDate: Fri Sep 11 09:25:09 2009 +0300 1031207753Smm 1032207753Smm Fix a couple of warnings. 1033207753Smm 1034207753Smmcommit 429910b2ba67611d8df60d1a9da9641bdb5f82b4 1035207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1036207753SmmDate: Sat Sep 5 18:39:21 2009 +0300 1037207753Smm 1038207753Smm Add OS/2-specific code to physmem.h. 1039207753Smm 1040207753Smm Also move DJGPP-specific code near the code meant 1041207753Smm for other DOS-like systems. 1042207753Smm 1043207753Smmcommit 7aca7b3174bcbba4a4915682ff0cd405d63f5740 1044207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1045207753SmmDate: Sat Sep 5 01:21:15 2009 +0300 1046207753Smm 1047207753Smm Updated THANKS. 1048207753Smm 1049207753Smmcommit 60ccb80c9c4a0d771acc5b7d9d6f32b17fed1071 1050207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1051207753SmmDate: Sat Sep 5 01:20:29 2009 +0300 1052207753Smm 1053207753Smm Use sysctl() != -1 instead of !sysctl() to check if 1054207753Smm the function call succeeded. 1055207753Smm 1056207753Smm NetBSD 4.0 returns positive values on success, but 1057207753Smm NetBSD Current and FreeBSD return zero. OpenBSD's 1058207753Smm man page doesn't tell what sysctl() returns on 1059207753Smm success. All these BSDs return -1 on error. 1060207753Smm 1061207753Smm Thanks to Robert Elz and Thomas Klausner. 1062207753Smm 1063207753Smmcommit 173368911cf09ab0b03fc4db8f3d4b81d86dce32 1064207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1065207753SmmDate: Wed Sep 2 09:43:51 2009 +0300 1066207753Smm 1067207753Smm Mention in INSTALL that --enable-small doesn't modify CFLAGS. 1068207753Smm 1069207753Smmcommit 319a0fd7d7e9ebbb71ca6930abfc20777cb4aacc 1070207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1071207753SmmDate: Tue Sep 1 20:40:01 2009 +0300 1072207753Smm 1073207753Smm Refactored option parsing. 1074207753Smm 1075207753Smmcommit 25adaaa56e2e51a47a910a8d73452414619a2e53 1076207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1077207753SmmDate: Tue Sep 1 20:23:30 2009 +0300 1078207753Smm 1079207753Smm Fix options parsing bug in xz. 1080207753Smm 1081207753Smm xz used to reject "xz --lzma2=pb=2," while 1082207753Smm "xz --lzma2=pb=2,," worked. Now both work. 1083207753Smm 1084207753Smmcommit 5f6dddc6c911df02ba660564e78e6de80947c947 1085207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1086207753SmmDate: Tue Sep 1 20:20:19 2009 +0300 1087207753Smm 1088207753Smm Updated TODO. 1089207753Smm 1090207753Smmcommit 655457b9ada5ec7db398c5392e41290f3f332ea8 1091207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1092207753SmmDate: Mon Aug 31 21:59:25 2009 +0300 1093207753Smm 1094207753Smm Revert 43f44160b1ddcbf7e5205c37db09b3bebe7226f9 1095207753Smm and use a fix that works on all systems using 1096207753Smm GNU assembler. 1097207753Smm 1098207753Smm Maybe the assembler code is used e.g. on Solaris x86 1099207753Smm but let's worry about it if this doesn't work on it. 1100207753Smm 1101207753Smmcommit 162189c3477953805a28f96d3a75cb9ab9417928 1102207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1103207753SmmDate: Sun Aug 30 17:29:19 2009 +0300 1104207753Smm 1105207753Smm Updated THANKS. 1106207753Smm 1107207753Smmcommit 2331f5f97af3e5897e23da45d9df3d664099c7f8 1108207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1109207753SmmDate: Sun Aug 30 17:28:52 2009 +0300 1110207753Smm 1111207753Smm Add more OS/2 specific info to INSTALL. 1112207753Smm 1113207753Smmcommit 94c66b3297b3ad307eee93cf6b160e3c43997f11 1114207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1115207753SmmDate: Sat Aug 29 14:43:52 2009 +0300 1116207753Smm 1117207753Smm Use even more hackish way to support thousand separators. 1118207753Smm 1119207753Smm Seems that in addition on Windows and DOS, also OpenBSD 1120207753Smm lacks support for %'d style printf() format strings. 1121207753Smm So far that is the only modern POSIX-like system I know 1122207753Smm with this problem, but after this hack, the thousand 1123207753Smm separator shouldn't be a problem on any system. 1124207753Smm 1125207753Smm Maybe testing if a format string like %'d produces 1126207753Smm reasonable output is invoking undefined behavior on some 1127207753Smm systems, but so far all the problematic systems I've tried 1128207753Smm just print the raw format string (e.g. %'d prints 'd). 1129207753Smm 1130207753Smm Maybe Autoconf test would have been better, but this 1131207753Smm hack works also for cross-compilation, and avoids 1132207753Smm recompilation in case the system libc starts to support 1133207753Smm the thousand separator. 1134207753Smm 1135207753Smmcommit 3432e9c6aab851da1227b63dce645d7f190c04d8 1136207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1137207753SmmDate: Sat Aug 29 13:42:56 2009 +0300 1138207753Smm 1139207753Smm Updated THANKS. 1140207753Smm 1141207753Smmcommit 27414daadf5727e8ab942374b5ec1c8990122878 1142207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1143207753SmmDate: Sat Aug 29 13:39:21 2009 +0300 1144207753Smm 1145207753Smm Fix sysctl() usage. 1146207753Smm 1147207753Smm This fixes build on *BSDs and Darwin. 1148207753Smm 1149207753Smm Thanks to Jukka Salmi for the patches. 1150207753Smm Richard Koch reported the problem too. 1151207753Smm 1152207753Smmcommit 43f44160b1ddcbf7e5205c37db09b3bebe7226f9 1153207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1154207753SmmDate: Sat Aug 29 13:35:23 2009 +0300 1155207753Smm 1156207753Smm Fix x86 assembler on GCC 3. 1157207753Smm 1158207753Smm Thanks to Karl Berry. 1159207753Smm 1160207753Smmcommit 682efdc1f9492fdd76c9ce82e7c00ca0768067e8 1161207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1162207753SmmDate: Thu Aug 27 18:36:59 2009 +0300 1163207753Smm 1164207753Smm "make dist" fixes 1165207753Smm 1166207753Smmcommit c8c184db1c95bf70f78256ec6237845a57f342af 1167207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1168207753SmmDate: Thu Aug 27 17:08:33 2009 +0300 1169207753Smm 1170207753Smm Update xz man page date. 1171207753Smm 1172207753Smmcommit 9756fce565e98b8fa5fe6ead296d84e7601ec254 1173207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1174207753SmmDate: Thu Aug 27 17:00:22 2009 +0300 1175207753Smm 1176207753Smm Fix the debug directory. 1177207753Smm 1178207753Smm 6a2eb54092fc625d59921a607ff68cd1a90aa898 and 1179207753Smm 71f18e8a066a01dda0c8e5508b135ef104e43e4c required 1180207753Smm some changes that weren't applied in debug. 1181207753Smm 1182207753Smmcommit 77007a7fb20187fcf3d1dd9839c79ace2d63f2ea 1183207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1184207753SmmDate: Thu Aug 27 16:36:40 2009 +0300 1185207753Smm 1186207753Smm Add missing files to EXTRA_DIST. 1187207753Smm 1188207753Smmcommit 04dcbfdeb921e5f361a4487134e91e23fffbe09d 1189207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1190207753SmmDate: Thu Aug 27 16:21:22 2009 +0300 1191207753Smm 1192207753Smm Bumped version to 4.999.9beta. 1193207753Smm 1194207753Smmcommit fd7618611a22f42a6913bc8d518c9bbc9252d6b4 1195207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1196207753SmmDate: Thu Aug 27 16:17:47 2009 +0300 1197207753Smm 1198207753Smm Updated THANKS. 1199207753Smm 1200207753Smmcommit c29e76c0f910fca0a90a50b78d337f6c32623e9d 1201207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1202207753SmmDate: Thu Aug 27 16:12:52 2009 +0300 1203207753Smm 1204207753Smm .xz file format specification 1.0.4 (probably). 1205207753Smm 1206207753Smm Thanks to Christian von Roques, Peter Lawler, 1207207753Smm and Jim Meyering for the fixes. 1208207753Smm 1209207753Smmcommit 696d7ee3953beaf4f0ed18e78917ccf300431966 1210207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1211207753SmmDate: Thu Aug 27 15:43:54 2009 +0300 1212207753Smm 1213207753Smm Require GNU libtool 2.2. 1214207753Smm 1215207753Smmcommit 4c3558aa8305a8f8b6c43b8569eb539717ca9e8d 1216207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1217207753SmmDate: Thu Aug 27 15:34:45 2009 +0300 1218207753Smm 1219207753Smm Add "dos" to EXTRA_DIST. 1220207753Smm 1221207753Smmcommit 35b29e4424ced5a3ababf132283e519080c7b298 1222207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1223207753SmmDate: Thu Aug 27 15:23:27 2009 +0300 1224207753Smm 1225207753Smm Updated TODO. 1226207753Smm 1227207753Smmcommit 23414377192c21f3f34c84cdfe0ef0fbd06a1dea 1228207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1229207753SmmDate: Thu Aug 27 15:17:00 2009 +0300 1230207753Smm 1231207753Smm Some xz man page improvements. 1232207753Smm 1233207753Smmcommit 371b04e19fc9051dbaeec51ec0badec6a1f0699d 1234207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1235207753SmmDate: Thu Aug 27 10:41:01 2009 +0300 1236207753Smm 1237207753Smm Removed doc/bugs.txt. 1238207753Smm 1239207753Smmcommit d88c4072b36d3a76f839185799fb1d91037a1b81 1240207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1241207753SmmDate: Thu Aug 27 10:40:25 2009 +0300 1242207753Smm 1243207753Smm Updated README. 1244207753Smm 1245207753Smm It now includes bug reporting instructions/tips. 1246207753Smm 1247207753Smmcommit 92e536d8b8d33a6b12d0802bcd7be4437046f13e 1248207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1249207753SmmDate: Thu Aug 27 10:21:18 2009 +0300 1250207753Smm 1251207753Smm Fix a typo in FAQ. 1252207753Smm 1253207753Smm Thanks to Jim Meyering. 1254207753Smm 1255207753Smm (From now on, I try to always remember to put 1256207753Smm the relevant thanks to commit messages.) 1257207753Smm 1258207753Smmcommit 3e2ba8b58585743e59251e69ad2783eb08357079 1259207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1260207753SmmDate: Thu Aug 27 10:13:46 2009 +0300 1261207753Smm 1262207753Smm Updates to liblzma API headers. 1263207753Smm 1264207753Smm Added lzma_nothrow for every function. It adds 1265207753Smm throw() when the header is used in C++ code. 1266207753Smm 1267207753Smm Some lzma_attrs were added or removed. 1268207753Smm 1269207753Smm Lots of comments were improved. 1270207753Smm 1271207753Smmcommit 8e8ebc17c535a1f8846718059b48417409c37050 1272207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1273207753SmmDate: Tue Aug 18 00:30:09 2009 +0300 1274207753Smm 1275207753Smm Install faq.txt. 1276207753Smm 1277207753Smmcommit b198e770a146e4a41f91a93f0b233713f2515848 1278207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1279207753SmmDate: Tue Aug 18 00:26:48 2009 +0300 1280207753Smm 1281207753Smm Updated faq.txt. 1282207753Smm 1283207753Smm Some questions worth answering were removed, because I 1284207753Smm currently don't have good up to date answers to them. 1285207753Smm 1286207753Smmcommit fe111a25cd788d31b581996e4533910388a7f0a9 1287207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1288207753SmmDate: Mon Aug 17 22:45:50 2009 +0300 1289207753Smm 1290207753Smm Some xz man changes. 1291207753Smm 1292207753Smmcommit 10242a21e9abda0c5c6a03501703cc40b8a699a5 1293207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1294207753SmmDate: Sun Aug 16 22:15:42 2009 +0300 1295207753Smm 1296207753Smm Updated THANKS. 1297207753Smm 1298207753Smmcommit 3ce1916c83041113b9cad9ead5c97a527cf8aa1d 1299207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1300207753SmmDate: Sun Aug 16 22:15:13 2009 +0300 1301207753Smm 1302207753Smm Fix data corruption in LZ/LZMA2 encoder. 1303207753Smm 1304207753Smm Thanks to Jonathan Stott for the bug report. 1305207753Smm 1306207753Smmcommit 66da129c8ec33dd66acc92f113f7c1ca740ca81a 1307207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1308207753SmmDate: Thu Aug 13 15:15:37 2009 +0300 1309207753Smm 1310207753Smm Updated INSTALL and PACKAGERS to match the changes 1311207753Smm made in --enable-dynamic. 1312207753Smm 1313207753Smmcommit 8238c4b2402f952c4e492e5b778aa272e57b6705 1314207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1315207753SmmDate: Thu Aug 13 15:03:46 2009 +0300 1316207753Smm 1317207753Smm Link lzmainfo against shared liblzma by default. 1318207753Smm 1319207753Smmcommit 71f18e8a066a01dda0c8e5508b135ef104e43e4c 1320207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1321207753SmmDate: Thu Aug 13 15:00:21 2009 +0300 1322207753Smm 1323207753Smm Make --enable-dynamic a tristate option. 1324207753Smm 1325207753Smm Some programs will by default be linked against static 1326207753Smm liblzma and some against shared liblzma. --enable-dynamic 1327207753Smm now allows overriding the default to both directions 1328207753Smm (all dynamic or all static) even when building both 1329207753Smm shared and static liblzma. 1330207753Smm 1331207753Smm This is quite messy compared to how simple thing it is supposed 1332207753Smm to be. The complexity is mostly due to Windows support. 1333207753Smm 1334207753Smmcommit 5aa4678b2342dcfc1d2b31aa9fa4f39c539e4b61 1335207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1336207753SmmDate: Thu Aug 13 12:56:47 2009 +0300 1337207753Smm 1338207753Smm Fix xz Makefile.am for the man page. 1339207753Smm 1340207753Smm install-exec-hook -> install-data-hook 1341207753Smm 1342207753Smmcommit e51b4e49e800bd84e6d589dca2964d3985e88139 1343207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1344207753SmmDate: Thu Aug 13 12:55:45 2009 +0300 1345207753Smm 1346207753Smm Add lzmainfo for backward compatibility with LZMA Utils. 1347207753Smm 1348207753Smm lzmainfo now links against static liblzma. In contrast 1349207753Smm to other command line tools in XZ Utils, linking lzmainfo 1350207753Smm against static liblzma by default is dumb. This will be 1351207753Smm fixed once I have fixed some related issues in configure.ac. 1352207753Smm 1353207753Smmcommit a4165d0584376d948c213ec93c6065d24ff6a5e7 1354207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1355207753SmmDate: Thu Aug 13 12:42:36 2009 +0300 1356207753Smm 1357207753Smm Sync some error messages from xz to xzdec. 1358207753Smm 1359207753Smm Make xz error message translation usable outside 1360207753Smm xz (at least in upcoming lzmainfo). 1361207753Smm 1362207753Smmcommit df636eb4e066b4e154ce8e66e82c87ba1db652a6 1363207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1364207753SmmDate: Thu Aug 13 09:37:21 2009 +0300 1365207753Smm 1366207753Smm Add xz man page to manfiles in toplevel Makefile.am. 1367207753Smm 1368207753Smmcommit 180bdf58ea5bb07941e0a99b304d9aa832198748 1369207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1370207753SmmDate: Thu Aug 13 09:37:01 2009 +0300 1371207753Smm 1372207753Smm Fix first line of xz man page. 1373207753Smm 1374207753Smmcommit e1ce2291e759b50ebfcf7cbbcc04cd098f1705a4 1375207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1376207753SmmDate: Mon Aug 10 11:22:31 2009 +0300 1377207753Smm 1378207753Smm Added a rough version of the xz man page. 1379207753Smm 1380207753Smmcommit e71903fc6101f1c039d702e335b08aad1e1b4100 1381207753SmmAuthor: Jonathan Nieder <jrnieder@gmail.com> 1382207753SmmDate: Sun Aug 9 13:41:20 2009 -0500 1383207753Smm 1384207753Smm ���xzdiff a.xz b.xz��� always fails 1385207753Smm 1386207753Smm Attempts to compare two compressed files result in no output and 1387207753Smm exit status 2. 1388207753Smm 1389207753Smm Instead of going to standard output, ���diff��� output is being 1390207753Smm captured in the xz_status variable along with the exit status from 1391207753Smm the decompression commands. Later, when this variable is examined 1392207753Smm for nonzero status codes, numerals from dates in the ���diff��� output 1393207753Smm make it appear as though decompression failed. 1394207753Smm 1395207753Smm So let the ���diff��� output leak to standard output with another file 1396207753Smm descriptor. (This trick is used in all similar contexts elsewhere 1397207753Smm in xzdiff and in the analogous context in gzip���s zdiff script.) 1398207753Smm 1399207753Smmcommit 1d314b81aa5b0c4530638ffabd4e0edb52e5362c 1400207753SmmAuthor: Jonathan Nieder <jrnieder@gmail.com> 1401207753SmmDate: Sun Aug 9 13:22:12 2009 -0500 1402207753Smm 1403207753Smm xzless: Support compressed standard input 1404207753Smm 1405207753Smm It can be somewhat confusing that 1406207753Smm 1407207753Smm less < some_file.txt 1408207753Smm 1409207753Smm works fine, whereas 1410207753Smm 1411207753Smm xzless < some_file.txt.xz 1412207753Smm 1413207753Smm does not. Since version 429, ���less��� allows a filter specified in 1414207753Smm the LESSOPEN environment variable to preprocess its input even if 1415207753Smm it comes from standard input, if $LESSOPEN begins with ���|-���. So 1416207753Smm set $LESSOPEN to take advantage of this feature. 1417207753Smm 1418207753Smm Check less���s version at runtime so xzless can continue to work 1419207753Smm with older versions. 1420207753Smm 1421207753Smmcommit a7f5d2fe4826ac68839d00059f05004fb81d5c69 1422207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1423207753SmmDate: Sun Aug 9 20:57:46 2009 +0300 1424207753Smm 1425207753Smm GPLv2+ not GPLv2 for Doxyfile.in is probably OK. 1426207753Smm 1427207753Smmcommit b735cde20cc14857136ae65a0e5d336ed7ddc862 1428207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1429207753SmmDate: Sun Aug 2 00:27:29 2009 +0300 1430207753Smm 1431207753Smm Added a copyright notice to Doxyfile.in since it contains 1432207753Smm lots of comments from Doxygen. 1433207753Smm 1434207753Smm It seems that the Doxygen authors' intent is to not apply 1435207753Smm their copyright on generated files, but since it doesn't 1436207753Smm matter for XZ Utils at all, better safe than sorry. 1437207753Smm 1438207753Smmcommit 0fd157cc008446adfc8f91394f5503868025a642 1439207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1440207753SmmDate: Sun Aug 2 00:11:37 2009 +0300 1441207753Smm 1442207753Smm Updated THANKS. 1443207753Smm 1444207753Smmcommit b198da96ff9ac8c89b466b4d196c5f3fe1c7904f 1445207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1446207753SmmDate: Sun Aug 2 00:10:22 2009 +0300 1447207753Smm 1448207753Smm Updated TODO. 1449207753Smm 1450207753Smmcommit 669413bb2db954bbfde3c4542fddbbab53891eb4 1451207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1452207753SmmDate: Thu Jul 30 12:25:55 2009 +0300 1453207753Smm 1454207753Smm Updated THANKS. 1455207753Smm 1456207753Smmcommit dbbd8fb870ae789d96497911006c869d37148c15 1457207753SmmAuthor: Jonathan Nieder <jrnieder@gmail.com> 1458207753SmmDate: Tue Jul 28 17:37:24 2009 -0500 1459207753Smm 1460207753Smm xzdiff: add missing ;; to case statement 1461207753Smm 1462207753Smmcommit adbad2d16cb5909f85d4a429011005613ea62ffe 1463207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1464207753SmmDate: Fri Jul 24 13:15:06 2009 +0300 1465207753Smm 1466207753Smm Added history.txt to doc_DATA. 1467207753Smm 1468207753Smmcommit e0236f12569eb36f9b81ce7a1e52e0f73698ac27 1469207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1470207753SmmDate: Fri Jul 24 12:00:40 2009 +0300 1471207753Smm 1472207753Smm Updated .gitignore files. 1473207753Smm 1474207753Smmcommit 2f34fb269265e3aba43a2a9c734020a45268826d 1475207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1476207753SmmDate: Fri Jul 24 11:34:02 2009 +0300 1477207753Smm 1478207753Smm Minor improvements to COPYING. 1479207753Smm 1480207753Smmcommit 0db1befcfbc120377df4b89923762f16d25f548a 1481207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1482207753SmmDate: Thu Jul 23 19:10:55 2009 +0300 1483207753Smm 1484207753Smm Fix incorrect usage of getopt_long(), which caused 1485207753Smm invalid memory access if XZ_OPT was defined. 1486207753Smm 1487207753Smmcommit 8f8ec942d6d21ada2096eaf063411bc8bc7e2d48 1488207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1489207753SmmDate: Mon Jul 20 15:43:32 2009 +0300 1490207753Smm 1491207753Smm Avoid internal error with --format=xz --lzma1. 1492207753Smm 1493207753Smmcommit 99f9e879a6a8bb54a65da99c12e0f390216c152a 1494207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1495207753SmmDate: Sun Jul 19 13:14:20 2009 +0300 1496207753Smm 1497207753Smm Major documentation update. 1498207753Smm 1499207753Smm Installation and packaging instructions were added. 1500207753Smm README and other generic docs were revised. 1501207753Smm 1502207753Smm Some of the documentation files are now installed to $docdir. 1503207753Smm 1504207753Smmcommit ef4cf1851de89022cba5674784f1a8f6343c15b0 1505207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1506207753SmmDate: Sun Jul 19 11:09:31 2009 +0300 1507207753Smm 1508207753Smm Added missing author notice to xzless.in. 1509207753Smm 1510207753Smmcommit 4c9c989d45b188667799a7a1d6c728ed43f7bf77 1511207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1512207753SmmDate: Sat Jul 18 18:54:55 2009 +0300 1513207753Smm 1514207753Smm Use AC_CONFIG_AUX_DIR to clean up the toplevel directory 1515207753Smm a little. 1516207753Smm 1517207753Smm Fixed a related bug in the toplevel Makefile.am. 1518207753Smm 1519207753Smm Added the build-aux directory to .gitignore. 1520207753Smm 1521207753Smmcommit 366e436090a7a87215e9bf0e3ddcd55f05b50587 1522207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1523207753SmmDate: Sat Jul 18 14:34:08 2009 +0300 1524207753Smm 1525207753Smm Updated the totally outdated TODO file. 1526207753Smm 1527207753Smmcommit 64e498c89d8b9966e8663f43bf64d47c26c55c62 1528207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1529207753SmmDate: Sat Jul 18 11:26:39 2009 +0300 1530207753Smm 1531207753Smm Added public domain notice into a few files. 1532207753Smm 1533207753Smmcommit a35755c5de808df027675688855d1b621a4fb428 1534207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1535207753SmmDate: Tue Jul 14 21:10:36 2009 +0300 1536207753Smm 1537207753Smm Allow extra commas in filter-specific options on xz command line. 1538207753Smm 1539207753Smm This may slightly ease writing scripts that construct 1540207753Smm filter-specific option strings dynamically. 1541207753Smm 1542207753Smmcommit 98f3cac1ad31191c5160a7e48398bf85141e941c 1543207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1544207753SmmDate: Tue Jul 14 18:04:31 2009 +0300 1545207753Smm 1546207753Smm Accept --lzma2=preset=6e where "e" is equivalent to --extreme 1547207753Smm when no custom chain is in use. 1548207753Smm 1549207753Smmcommit d873a09e956363e54bf58c577c8f7e487b6fb464 1550207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1551207753SmmDate: Sun Jul 12 19:08:30 2009 +0300 1552207753Smm 1553207753Smm Add dist-hook to create ChangeLog from the commit log, 1554207753Smm and to conver the man pages to PDF and plain text, which 1555207753Smm may be convenient to those who cannot render man pages. 1556207753Smm 1557207753Smmcommit cd69a5a6c16c289f6f8e2823b03c72289472270f 1558207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1559207753SmmDate: Fri Jul 10 11:39:38 2009 +0300 1560207753Smm 1561207753Smm BCJ filters: Reject invalid start offsets with LZMA_OPTIONS_ERROR. 1562207753Smm 1563207753Smm This is a quick and slightly dirty fix to make the code 1564207753Smm conform to the latest file format specification. Without 1565207753Smm this patch, it's possible to make corrupt files by 1566207753Smm specifying start offset that is not a multiple of the 1567207753Smm filter's alignment. Custom start offset is almost never 1568207753Smm used, so this was only a minor bug. 1569207753Smm 1570207753Smm The xz command line tool doesn't validate the start offset, 1571207753Smm so one will get a bit unclear error message if trying to use 1572207753Smm an invalid start offset. 1573207753Smm 1574207753Smmcommit eed9953732b801f6c97317fb3160445a8754180b 1575207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1576207753SmmDate: Fri Jul 10 11:33:21 2009 +0300 1577207753Smm 1578207753Smm Look for full command names instead of substrings 1579207753Smm like "un", "cat", and "lz" when determining if 1580207753Smm xz is run as unxz, xzcat, lzma, unlzma, or lzcat. 1581207753Smm 1582207753Smm This is to ensure that if xz is renamed (e.g. via 1583207753Smm --program-transform-name), it doesn't so easily 1584207753Smm work in wrong mode. 1585207753Smm 1586207753Smmcommit 6f62fa88f4ff7ba78565c314c0e6e71c498fa658 1587207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1588207753SmmDate: Wed Jul 8 23:06:46 2009 +0300 1589207753Smm 1590207753Smm Updated THANKS. 1591207753Smm 1592207753Smmcommit 1754b7e03e2aa7e2e0196807fe8b0f3f5a637b0e 1593207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1594207753SmmDate: Wed Jul 8 23:05:29 2009 +0300 1595207753Smm 1596207753Smm Portability improvement to version.sh. 1597207753Smm 1598207753Smmcommit 3bdb53792c0e3e3febe9370e56eda5b08f89410f 1599207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1600207753SmmDate: Wed Jul 8 22:50:16 2009 +0300 1601207753Smm 1602207753Smm Remove --force from xzdec. 1603207753Smm 1604207753Smm It was ignored for compatibility with xz, but now that 1605207753Smm --decompress --stdout --force copies unrecognized files 1606207753Smm as is to stdout, simply ignoring --force in xzdec would 1607207753Smm be wrong. xzdec will not support copying unrecognized 1608207753Smm data as is to stdout, so it cannot support --force. 1609207753Smm 1610207753Smmcommit 5f16ef4abf220028a9ddbcb138217597a9455f62 1611207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1612207753SmmDate: Mon Jul 6 10:36:04 2009 +0300 1613207753Smm 1614207753Smm Use sed instead of $(SED) so that we don't need to 1615207753Smm use AC_PROG_SED. We don't do anything fancy with sed, 1616207753Smm so this should work OK. libtool 2.2 sets SED but 1.5 1617207753Smm doesn't, so $(SED) happened to work when using libtool 2.2. 1618207753Smm 1619207753Smmcommit 96e4b257e101d72072d43e144897d92920270669 1620207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1621207753SmmDate: Sun Jul 5 22:25:17 2009 +0300 1622207753Smm 1623207753Smm Major update to the xzgrep and other scripts based on 1624207753Smm the latest versions found from gzip CVS repository. 1625207753Smm 1626207753Smm configure will try to find a POSIX shell to be used by 1627207753Smm the scripts. This should ease portability on systems 1628207753Smm which have pre-POSIX /bin/sh. 1629207753Smm 1630207753Smm xzgrep and xzdiff support .xz, .lzma, .gz, and .bz2 files. 1631207753Smm xzmore and xzless support only .xz and .lzma files. 1632207753Smm 1633207753Smm The name of the xz executable used in these scripts is 1634207753Smm now correct even if --program-transform-name has been used. 1635207753Smm 1636207753Smmcommit 25cc7a6e8c2506a0d80084a4c1c67d33e7439100 1637207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1638207753SmmDate: Sun Jul 5 19:26:53 2009 +0300 1639207753Smm 1640207753Smm Use @PACKAGE_HOMEPAGE@ in liblzma.pc.in. 1641207753Smm 1642207753Smmcommit 18c10c30d2833f394cd7bce0e6a821044b15832f 1643207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1644207753SmmDate: Sat Jul 4 00:40:44 2009 +0300 1645207753Smm 1646207753Smm Make "xz --decompress --stdout --force" copy unrecognized 1647207753Smm files as is to standard output. 1648207753Smm 1649207753Smm This feature is needed to be more compatible with gzip's 1650207753Smm behavior. This was more complicated to implement than it 1651207753Smm sounds, because the way liblzma is able to return errors with 1652207753Smm files of only a few bytes in size. xz now has its own file 1653207753Smm type detection code and no longer uses lzma_auto_decoder(). 1654207753Smm 1655207753Smmcommit 0a289c01ac821ea9c4250aa906b0ae3cfa953633 1656207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1657207753SmmDate: Thu Jul 2 14:30:38 2009 +0300 1658207753Smm 1659207753Smm Define PACKAGE_HOMEPAGE in configure.ac and use it in 1660207753Smm xz and xzdec. 1661207753Smm 1662207753Smm Use also PACKAGE_NAME instead of hardcoding "XZ Utils". 1663207753Smm 1664207753Smmcommit 5cc99db5bae8633f85559e5cdaef4cd905a4ee9c 1665207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1666207753SmmDate: Wed Jul 1 12:21:24 2009 +0300 1667207753Smm 1668207753Smm Avoid visibility related compiler warnings on Windows. 1669207753Smm 1670207753Smmcommit 7653d1cf48080e63b189ed9d58dea0e82b6b1c5e 1671207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1672207753SmmDate: Tue Jun 30 17:14:39 2009 +0300 1673207753Smm 1674207753Smm Use static liblzma by default also for tests. 1675207753Smm 1676207753Smmcommit f42ee981668b545ab6d06c6072e262c29605273c 1677207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1678207753SmmDate: Tue Jun 30 17:09:57 2009 +0300 1679207753Smm 1680207753Smm Build system fixes 1681207753Smm 1682207753Smm Don't use libtool convenience libraries to avoid recently 1683207753Smm discovered long-standing subtle but somewhat severe bugs 1684207753Smm in libtool (at least 1.5.22 and 2.2.6 are affected). It 1685207753Smm was found when porting XZ Utils to Windows 1686207753Smm <http://lists.gnu.org/archive/html/libtool/2009-06/msg00070.html> 1687207753Smm but the problem is significant also e.g. on GNU/Linux. 1688207753Smm 1689207753Smm Unless --disable-shared is passed to configure, static 1690207753Smm library built from a set of convenience libraries will 1691207753Smm contain PIC objects. That is, while libtool builds non-PIC 1692207753Smm objects too, only PIC objects will be used from the 1693207753Smm convenience libraries. On 32-bit x86 (tested on mobile XP2400+), 1694207753Smm using PIC instead of non-PIC makes the decompressor 10 % slower 1695207753Smm with the default CFLAGS. 1696207753Smm 1697207753Smm So while xz was linked against static liblzma by default, 1698207753Smm it got the slower PIC objects unless --disable-shared was 1699207753Smm used. I tend develop and benchmark with --disable-shared 1700207753Smm due to faster build time, so I hadn't noticed the problem 1701207753Smm in benchmarks earlier. 1702207753Smm 1703207753Smm This commit also adds support for building Windows resources 1704207753Smm into liblzma and executables. 1705207753Smm 1706207753Smmcommit 89dac1db6f168d7469cfbc4432651d4724c5c0de 1707207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1708207753SmmDate: Mon Jun 29 22:19:51 2009 +0300 1709207753Smm 1710207753Smm Added a comment about "autoconf -fi" to autogen.sh. 1711207753Smm 1712207753Smmcommit 6e685aae4594bc0af1b5032e01bb37d0edaa3ebd 1713207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1714207753SmmDate: Sun Jun 28 10:04:24 2009 +0300 1715207753Smm 1716207753Smm Add -no-undefined to get shared liblzma on Windows. 1717207753Smm 1718207753Smmcommit 73f560ee5fa064992b76688d9472baf139432540 1719207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1720207753SmmDate: Sat Jun 27 22:57:15 2009 +0300 1721207753Smm 1722207753Smm Make physmem() work on Cygwin 1.5 and older. 1723207753Smm 1724207753Smmcommit 7ff0004fbce24ae72eddfe392828ffd7d4639ed1 1725207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1726207753SmmDate: Sat Jun 27 17:28:01 2009 +0300 1727207753Smm 1728207753Smm Moved the Windows resource files outside the windows directory 1729207753Smm to prepare for building them with Autotools. 1730207753Smm 1731207753Smmcommit 449c634674f35336a4815d398172e447659a135e 1732207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1733207753SmmDate: Sat Jun 27 13:05:03 2009 +0300 1734207753Smm 1735207753Smm Added missing $(EXEEXT). 1736207753Smm 1737207753Smmcommit 792db79f27ad9ab1fb977e23be65c7761f545752 1738207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1739207753SmmDate: Sat Jun 27 12:32:40 2009 +0300 1740207753Smm 1741207753Smm Create correct symlinks even when 1742207753Smm --program-{prefix,suffix,transform} is passed to configure. 1743207753Smm 1744207753Smmcommit 0adc72feb84f5b903f6ad9d3f759b1c326fafc6b 1745207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1746207753SmmDate: Sat Jun 27 10:02:24 2009 +0300 1747207753Smm 1748207753Smm Silence a compiler warning on DOS-like systems. 1749207753Smm 1750207753Smmcommit ad12edc95254ede3f0cb8dec8645e8789e984c4f 1751207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1752207753SmmDate: Sat Jun 27 09:35:15 2009 +0300 1753207753Smm 1754207753Smm Updated the filenames in POTFILES.in too. 1755207753Smm 1756207753Smmcommit b2b1f867532732fe9969131f8713bdd6b0731763 1757207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1758207753SmmDate: Sat Jun 27 00:43:06 2009 +0300 1759207753Smm 1760207753Smm Hopefully improved portability of the assembler code in 1761207753Smm Autotools based builds on Windows. 1762207753Smm 1763207753Smmcommit c393055947247627a09b6a6b8f20aa0c32f9be16 1764207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1765207753SmmDate: Fri Jun 26 21:17:29 2009 +0300 1766207753Smm 1767207753Smm Updated THANKS (most of today's commits are based on 1768207753Smm Charles Wilson's patches). 1769207753Smm 1770207753Smmcommit da0af22e4b4139b8a10710945f8b245b3a77c97d 1771207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1772207753SmmDate: Fri Jun 26 21:00:35 2009 +0300 1773207753Smm 1774207753Smm Updated comments to match renamed files. 1775207753Smm 1776207753Smmcommit 65014fd211dfbd4be48685998cb5a12aaa29c8d2 1777207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1778207753SmmDate: Fri Jun 26 20:49:54 2009 +0300 1779207753Smm 1780207753Smm Rename process.[hc] to coder.[hc] and io.[hc] to file_io.[hc] 1781207753Smm to avoid problems on systems with system headers with those 1782207753Smm names. 1783207753Smm 1784207753Smmcommit 5e1257466dcb66f1d7a3f71814a5ad885cba43e8 1785207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1786207753SmmDate: Fri Jun 26 20:43:36 2009 +0300 1787207753Smm 1788207753Smm Rename process_file() to coder_run(). 1789207753Smm 1790207753Smmcommit cad62551c5fa9865dbe0841a0b3bc729c4fbe8fc 1791207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1792207753SmmDate: Fri Jun 26 20:36:45 2009 +0300 1793207753Smm 1794207753Smm Ugly hack to make it possible to use the thousand separator 1795207753Smm format character with snprintf() on POSIX systems but not 1796207753Smm on non-POSIX systems and still keep xgettext working. 1797207753Smm 1798207753Smmcommit fe378d47074b16c52b00fe184d119287c68ce2e7 1799207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1800207753SmmDate: Fri Jun 26 15:40:40 2009 +0300 1801207753Smm 1802207753Smm Added missing source files to windows/Makefile. 1803207753Smm 1804207753Smmcommit 390a6408563067613b29de895cb40e4d0386d62c 1805207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1806207753SmmDate: Fri Jun 26 15:37:53 2009 +0300 1807207753Smm 1808207753Smm Basic support for building with Cygwin and MinGW using 1809207753Smm the Autotools based build system. It's not good yet, more 1810207753Smm fixes will follow. 1811207753Smm 1812207753Smmcommit 1c9360b7d1197457aaad2f8888b99f1149861579 1813207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1814207753SmmDate: Fri Jun 26 14:47:31 2009 +0300 1815207753Smm 1816207753Smm Fix @variables@ to $(variables) in Makefile.am files. 1817207753Smm Fix the ordering of libgnu.a and LTLIBINTL on the linker 1818207753Smm command line and added missing LTLIBINTL to tests/Makefile.am. 1819207753Smm 1820207753Smmcommit d45615c555e250209ebb55aa3649abe790f1eeac 1821207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1822207753SmmDate: Fri Jun 26 14:20:02 2009 +0300 1823207753Smm 1824207753Smm Allow to explicitly specify autotool versions in autogen.sh. 1825207753Smm 1826207753Smmcommit eaf8367368a329afa48785380f9dca6b681f3397 1827207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1828207753SmmDate: Fri Jun 26 14:18:32 2009 +0300 1829207753Smm 1830207753Smm Add version.sh to EXTRA_DIST. 1831207753Smm 1832207753Smmcommit b317b218e2d383dd27a700094c0de4510540ea18 1833207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1834207753SmmDate: Wed Jun 24 20:14:10 2009 +0300 1835207753Smm 1836207753Smm Support HW_PHYSMEM64 1837207753Smm 1838207753Smmcommit ae82dde5d9cc60c80cc89601b6c51cc1611d48e7 1839207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1840207753SmmDate: Wed Jun 24 13:01:59 2009 +0300 1841207753Smm 1842207753Smm Cast a char argument to isspace() to unsigned char. 1843207753Smm 1844207753Smmcommit 1735d31ea347210e914df038eeea4b2626e76e42 1845207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1846207753SmmDate: Fri Jun 5 13:46:26 2009 +0300 1847207753Smm 1848207753Smm A few more spelling fixes. Released the .xz spec 1.0.3. 1849207753Smm 1850207753Smmcommit 8ed156ce894966103e895aa08f2a9fb912f6fad5 1851207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1852207753SmmDate: Thu Jun 4 23:42:12 2009 +0300 1853207753Smm 1854207753Smm Added xzdec man page. 1855207753Smm 1856207753Smmcommit f6df39afaa84f71439507178a49b2a5dda6e824c 1857207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1858207753SmmDate: Thu Jun 4 23:26:47 2009 +0300 1859207753Smm 1860207753Smm Harmonized xzdec --memory with xz --memory and made 1861207753Smm minor cleanups. 1862207753Smm 1863207753Smmcommit 1774f27c61ce294a56712ca2f4785f90a62441bc 1864207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1865207753SmmDate: Thu Jun 4 22:59:55 2009 +0300 1866207753Smm 1867207753Smm Fix purporse -> purpose. Thanks to Andrew Dudman. 1868207753Smm Released .xz spec 1.0.2 due to this fix too. 1869207753Smm 1870207753Smmcommit cb613455642f48fb51059e22018615f64c59b70f 1871207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1872207753SmmDate: Mon Jun 1 14:53:57 2009 +0300 1873207753Smm 1874207753Smm The .xz file format version 1.0.1 1875207753Smm 1876207753Smmcommit 083c23c680ff844846d177cfc58bb7a874e7e6b9 1877207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1878207753SmmDate: Tue May 26 14:48:48 2009 +0300 1879207753Smm 1880207753Smm Make the raw value of the Check field available to applications 1881207753Smm via lzma_block structure. 1882207753Smm 1883207753Smm This changes ABI but not doesn't break API. 1884207753Smm 1885207753Smmcommit b4f5c814090dc07d4350453576305e41eb9c998d 1886207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1887207753SmmDate: Sat May 23 16:57:21 2009 +0300 1888207753Smm 1889207753Smm Remove undocumented alternative option names --bcj, --ppc, 1890207753Smm and --itanium. 1891207753Smm 1892207753Smmcommit b1edee2cdc7ef4411b1a21c07094ec763f071281 1893207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1894207753SmmDate: Sat May 23 15:12:23 2009 +0300 1895207753Smm 1896207753Smm Add support for specifying the BCJ filter start offset 1897207753Smm in the xz command line tool. 1898207753Smm 1899207753Smmcommit 72aa0e9c5f4289f10ef5bf240a9448d3017f1ceb 1900207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1901207753SmmDate: Sat May 23 14:51:09 2009 +0300 1902207753Smm 1903207753Smm Updated THANKS. 1904207753Smm 1905207753Smmcommit dcedb6998cefeca6597dd1219328a3abf5acf66d 1906207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1907207753SmmDate: Fri May 22 16:40:50 2009 +0300 1908207753Smm 1909207753Smm Added support for --quiet and --no-warn to xzdec. 1910207753Smm Cleaned up the --help message a little. 1911207753Smm 1912207753Smmcommit 5f735dae80aa629853f4831d7b84ec1c614979eb 1913207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1914207753SmmDate: Fri May 22 15:11:52 2009 +0300 1915207753Smm 1916207753Smm Use the 40 % of RAM memory usage limit in xzdec too. 1917207753Smm 1918207753Smm Update the memory usage info text in --help to match 1919207753Smm the text in xz --long-help. 1920207753Smm 1921207753Smmcommit b60376249e0c586910c4121fab4f791820cc1289 1922207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1923207753SmmDate: Fri May 22 14:43:00 2009 +0300 1924207753Smm 1925207753Smm Add --no-warn. 1926207753Smm 1927207753Smmcommit b4f92f522d4b854c0adb7c38be7531e1a6a7b008 1928207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1929207753SmmDate: Fri May 22 14:27:40 2009 +0300 1930207753Smm 1931207753Smm Fix a comment. 1932207753Smm 1933207753Smmcommit 4dd21d23f22569285ae706b58b0e5904b8db1839 1934207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1935207753SmmDate: Fri May 22 14:21:20 2009 +0300 1936207753Smm 1937207753Smm Remove the --info option, which was an alias for --list. 1938207753Smm 1939207753Smmcommit 8836139b63ce774bdd62abf17ab69b290e08229e 1940207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1941207753SmmDate: Fri May 22 12:27:43 2009 +0300 1942207753Smm 1943207753Smm If xz is run as lzma, unlzma, or lzcat, simply imply 1944207753Smm --format=lzma. This means that xz emulating lzma 1945207753Smm doesn't decompress .xz files, while before this 1946207753Smm commit it did. The new way is slightly simpler in 1947207753Smm code and especially in upcoming documentation. 1948207753Smm 1949207753Smmcommit b0063023f8adb06ea735ec4af5c6f5b7bdb8e84d 1950207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1951207753SmmDate: Fri May 22 11:29:50 2009 +0300 1952207753Smm 1953207753Smm Make the default memory usage limit 40 % of RAM for both 1954207753Smm compressing and decompressing. This should be OK now that 1955207753Smm xz automatically scales down the compression settings if 1956207753Smm they would exceed the memory usage limit (earlier, the limit 1957207753Smm for compression was increased to 90 % because low limit broke 1958207753Smm scripts that used "xz -9" on systems with low RAM). 1959207753Smm 1960207753Smm Support spcifying the memory usage limit as a percentage 1961207753Smm of RAM (e.g. --memory=50%). 1962207753Smm 1963207753Smm Support --threads=0 to reset the thread limit to the default 1964207753Smm value (number of available CPU cores). Use UINT32_MAX instead 1965207753Smm of SIZE_MAX as the maximum in args.c. hardware.c was already 1966207753Smm expecting uint32_t value. 1967207753Smm 1968207753Smm Cleaned up the output of --help and --long-help. 1969207753Smm 1970207753Smmcommit 071b825b23911a69dd1cd2f8cda004ef8a781fae 1971207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1972207753SmmDate: Thu May 21 17:22:01 2009 +0300 1973207753Smm 1974207753Smm Support special value "max" where xz and xzdec accept an integer. 1975207753Smm Don't round the memory usage limit in xzdec --help to avoid 1976207753Smm an integer overflow and to not give wrong impression that 1977207753Smm the limit is high enough when it may not actually be. 1978207753Smm 1979207753Smmcommit 03ca67fd37dd43fa7f590de340899cd497c10802 1980207753SmmAuthor: ABCD <en.abcd@gmail.com> 1981207753SmmDate: Wed May 20 17:31:18 2009 -0400 1982207753Smm 1983207753Smm Install lzdiff, lzgrep, and lzmore as symlinks 1984207753Smm 1985207753Smm This adds lzdiff, lzgrep, and lzmore to the list of symlinks to install. 1986207753Smm It also installs symlinks for the manual pages and removes the new 1987207753Smm symlinks on uninstall. 1988207753Smm 1989207753Smmcommit a6f43e64128a6da5cd641de1e1e527433b3e5638 1990207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1991207753SmmDate: Sat May 2 16:10:14 2009 +0300 1992207753Smm 1993207753Smm Use a GCC-specific #pragma instead of GCC-specific 1994207753Smm -Wno-uninitialized to silence a bogus warning. 1995207753Smm 1996207753Smmcommit f6ce63ebdb45a857c8949960c83c9580ae888951 1997207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1998207753SmmDate: Sat May 2 14:46:50 2009 +0300 1999207753Smm 2000207753Smm Removed --disable-encoder and --disable-decoder. Use the values 2001207753Smm given to --enable-encoders and --enable-decoders to determine 2002207753Smm if any encoder or decoder support is wanted. 2003207753Smm 2004207753Smmcommit be06858d5cf8ba46557395035d821dc332f3f830 2005207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2006207753SmmDate: Fri May 1 11:28:52 2009 +0300 2007207753Smm 2008207753Smm Remove docs that are too outdated to be updated 2009207753Smm (rewrite will be better). 2010207753Smm 2011207753Smmcommit 0255401e57c96af87c6b159eca28974e79430a82 2012207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2013207753SmmDate: Fri May 1 11:21:46 2009 +0300 2014207753Smm 2015207753Smm Added documentation about the legacy .lzma file format. 2016207753Smm 2017207753Smmcommit 1496ff437c46f38303e0e94c511ca604b3a11f85 2018207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2019207753SmmDate: Fri May 1 11:20:23 2009 +0300 2020207753Smm 2021207753Smm Renamed the file format specification to xz-file-format.txt 2022207753Smm which is the filename used on the WWW. 2023207753Smm 2024207753Smmcommit 21c6b94373d239d7e86bd480fcd558e30391712f 2025207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2026207753SmmDate: Tue Apr 28 23:08:32 2009 +0300 2027207753Smm 2028207753Smm Fixed a crash in liblzma. 2029207753Smm 2030207753Smm liblzma tries to avoid useless free()/malloc() pairs in 2031207753Smm initialization when multiple files are handled using the 2032207753Smm same lzma_stream. This didn't work with filter chains 2033207753Smm due to comparison of wrong pointers in lzma_next_coder_init(), 2034207753Smm making liblzma think that no memory reallocation is needed 2035207753Smm even when it actually is. 2036207753Smm 2037207753Smm Easy way to trigger this bug is to decompress two files with 2038207753Smm a single xz command. The first file should have e.g. x86+LZMA2 2039207753Smm as the filter chain, and the second file just LZMA2. 2040207753Smm 2041207753Smmcommit e518d167aa5958e469982f4fb3a24b9b6a2b5d1c 2042207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2043207753SmmDate: Wed Apr 15 14:13:38 2009 +0300 2044207753Smm 2045207753Smm Fix uint32_t -> size_t in ARM and ARM-Thumb filters. 2046207753Smm 2047207753Smm On 64-bit system it would have gone into infinite 2048207753Smm loop if a single input buffer was over 4 GiB (unlikely). 2049207753Smm 2050207753Smmcommit 31decdce041581e57c0d8a407d4795b114ef27ca 2051207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2052207753SmmDate: Tue Apr 14 11:48:46 2009 +0300 2053207753Smm 2054207753Smm Minor fixes to test files' README. 2055207753Smm 2056207753Smmcommit 4787d654434891c7df5b43959b0d2873718f06e0 2057207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2058207753SmmDate: Mon Apr 13 16:36:41 2009 +0300 2059207753Smm 2060207753Smm Updated history.txt. 2061207753Smm 2062207753Smmcommit 2f0bc9cd40f709152a0177c8e585c0757e9af9c9 2063207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2064207753SmmDate: Mon Apr 13 14:49:48 2009 +0300 2065207753Smm 2066207753Smm Quick & dirty update to support xz in diff/grep/more scripts. 2067207753Smm 2068207753Smmcommit 02ddf09bc3079b3e17297729b9e43f14d407b8fc 2069207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2070207753SmmDate: Mon Apr 13 11:27:40 2009 +0300 2071207753Smm 2072207753Smm Put the interesting parts of XZ Utils into the public domain. 2073207753Smm Some minor documentation cleanups were made at the same time. 2074207753Smm 2075207753Smmcommit e79c42d854657ae7f75613bd80c1a35ff7c525cb 2076207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2077207753SmmDate: Fri Apr 10 11:17:02 2009 +0300 2078207753Smm 2079207753Smm Fix off-by-one in LZ decoder. 2080207753Smm 2081207753Smm Fortunately, this bug had no security risk other than accepting 2082207753Smm some corrupt files as valid. 2083207753Smm 2084207753Smmcommit 94eb9ad46f1fded6d8369cf3d38bb9754c1375af 2085207753SmmAuthor: Pavel Roskin <proski@gnu.org> 2086207753SmmDate: Tue Mar 31 12:15:01 2009 -0400 2087207753Smm 2088207753Smm Fix minor typos in README 2089207753Smm 2090207753Smmcommit 9bab5336ebd765ec4e12252f416eefdf04eba750 2091207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2092207753SmmDate: Tue Mar 31 21:52:51 2009 +0300 2093207753Smm 2094207753Smm Add a note and work-around instructions to README about 2095207753Smm problems detecting a C99 compiler when some standard 2096207753Smm headers are missing. 2097207753Smm 2098207753Smmcommit a0497ff7a06f9350349264fe9b52dfefc6d53ead 2099207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2100207753SmmDate: Wed Mar 18 16:54:38 2009 +0200 2101207753Smm 2102207753Smm Updated THANKS. 2103207753Smm 2104207753Smmcommit 390e69887fc5e0a108eb41203bed9acd100a3d76 2105207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2106207753SmmDate: Wed Mar 18 16:51:41 2009 +0200 2107207753Smm 2108207753Smm Fix wrong macro names in lc_cpucores.m4 and cpucores.h. 2109207753Smm Thanks to Bert Wesarg. 2110207753Smm 2111207753Smmcommit 0df9299e2478c2a0c62c05b1ae14a85a353e20d6 2112207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2113207753SmmDate: Sun Mar 1 09:03:08 2009 +0200 2114207753Smm 2115207753Smm Test for Linux-specific sysinfo() only on Linux systems. 2116207753Smm Some other systems have sysinfo() with different semantics. 2117207753Smm 2118207753Smmcommit cf751edfde3ad6e088dc18e0522d31ae38405933 2119207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2120207753SmmDate: Sun Mar 1 09:00:06 2009 +0200 2121207753Smm 2122207753Smm Added AC_CONFIG_MACRO_DIR to configure.ac. 2123207753Smm 2124207753Smmcommit 63df14c57dee7c461717784287056688482a7eb9 2125207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2126207753SmmDate: Sun Mar 1 08:58:41 2009 +0200 2127207753Smm 2128207753Smm Fix the Autoconf test for getopt_long replacement. 2129207753Smm It was broken by e114502b2bc371e4a45449832cb69be036360722. 2130207753Smm 2131207753Smmcommit fd6a380f4eda4f00be5f2aa8d222992cd74a714f 2132207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2133207753SmmDate: Sun Feb 22 19:07:54 2009 +0200 2134207753Smm 2135207753Smm Add a rough explanation of --extreme to output of --help. 2136207753Smm 2137207753Smmcommit 68bf7ac2984d3627369a240ef0491934d53f7899 2138207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2139207753SmmDate: Sun Feb 22 18:52:49 2009 +0200 2140207753Smm 2141207753Smm Fixes to progress message handling in xz: 2142207753Smm 2143207753Smm - Don't use Windows-specific code on Windows. The old code 2144207753Smm required at least Windows 2000. Now it should work on 2145207753Smm Windows 98 and later, and maybe on Windows 95 too. 2146207753Smm 2147207753Smm - Use less precision when showing estimated remaining time. 2148207753Smm 2149207753Smm - Fix some small design issues. 2150207753Smm 2151207753Smmcommit 47c2e21f82242f50f18713a27d644c2c94ab3fea 2152207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2153207753SmmDate: Wed Feb 18 13:00:10 2009 +0200 2154207753Smm 2155207753Smm Added files missing from the previous commit. 2156207753Smm 2157207753Smmcommit 489a3dbaa0465f04400804e956a1cfbbee3654a2 2158207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2159207753SmmDate: Tue Feb 17 10:43:00 2009 +0200 2160207753Smm 2161207753Smm Added lzma_easy_buffer_encode(). Splitted easy.c into small 2162207753Smm pieces to avoid unneeded dependencies making statically 2163207753Smm linked applications bigger than needed. 2164207753Smm 2165207753Smmcommit 7494816ab08d82f4d6409788825930c4e43cfd0d 2166207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2167207753SmmDate: Sun Feb 15 15:48:45 2009 +0200 2168207753Smm 2169207753Smm Make physmem.h work on old Windows versions. 2170207753Smm Thanks to Hongbo Ni for the original patch. 2171207753Smm 2172207753Smmcommit 11ae4ae35fd70182c713f2d914b7cb1143bc76f0 2173207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2174207753SmmDate: Sat Feb 14 20:44:52 2009 +0200 2175207753Smm 2176207753Smm Fix microsecond vs. nanosecond confusion in my_time(). 2177207753Smm 2178207753Smmcommit 3084d662d2646ab7eb58daf0dc32cf3f9a74eec7 2179207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2180207753SmmDate: Sat Feb 14 00:45:29 2009 +0200 2181207753Smm 2182207753Smm Cleanups to the code that detects the amount of RAM and 2183207753Smm the number of CPU cores. Added support for using sysinfo() 2184207753Smm on Linux systems whose libc lacks appropriate sysconf() 2185207753Smm support (at least dietlibc). The Autoconf macros were 2186207753Smm split into separate files, and CPU core count detection 2187207753Smm was moved from hardware.c to cpucores.h. The core count 2188207753Smm isn't used for anything real for now, so a problematic 2189207753Smm part in process.c was commented out. 2190207753Smm 2191207753Smmcommit 9c62371eab2706c46b1072f5935e28cb4cd9dca8 2192207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2193207753SmmDate: Fri Feb 13 18:23:50 2009 +0200 2194207753Smm 2195207753Smm Initial port to DOS using DJGPP. 2196207753Smm 2197207753Smmcommit 0dae8b7751d09e9c5a482d5519daaee4800ce203 2198207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2199207753SmmDate: Fri Feb 13 18:02:05 2009 +0200 2200207753Smm 2201207753Smm Windows port: Take advantage of the version number macros. 2202207753Smm Now the version number is not duplicated in the 2203207753Smm Windows-specific files anymore. 2204207753Smm 2205207753Smmcommit fdbc0cfa71f7d660855098a609175ba384259529 2206207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2207207753SmmDate: Fri Feb 13 18:00:03 2009 +0200 2208207753Smm 2209207753Smm Changed how the version number is specified in various places. 2210207753Smm Now configure.ac will get the version number directly from 2211207753Smm src/liblzma/api/lzma/version.h. The intent is to reduce the 2212207753Smm number of places where the version number is duplicated. In 2213207753Smm future, support for displaying Git commit ID may be added too. 2214207753Smm 2215207753Smmcommit 1d924e584b146136989f48c13fff2632896efb3d 2216207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2217207753SmmDate: Fri Feb 13 17:30:30 2009 +0200 2218207753Smm 2219207753Smm Fix handling of integrity check type in the xz command line tool. 2220207753Smm 2221207753Smmcommit 96c46df7deb231ea68a03d8d1da9de4c774e36d8 2222207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2223207753SmmDate: Fri Feb 13 17:29:02 2009 +0200 2224207753Smm 2225207753Smm Improve support for DOS-like systems. 2226207753Smm Here DOS-like means DOS, Windows, and OS/2. 2227207753Smm 2228207753Smmcommit b6a30ee8c2de60ecd722cd05223e4ba72f822e33 2229207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2230207753SmmDate: Wed Feb 11 20:02:32 2009 +0200 2231207753Smm 2232207753Smm Remove dead directories from .gitignore. 2233207753Smm 2234207753Smmcommit 1ec5b0027911d94cb6f98892cbc690f818d8a861 2235207753SmmAuthor: Jim Meyering <jim@meyering.net> 2236207753SmmDate: Wed Feb 11 14:45:14 2009 +0100 2237207753Smm 2238207753Smm .gitignore vs. Makefiles 2239207753Smm 2240207753Smm How about this for those of us who do srcdir builds? 2241207753Smm 2242207753Smmcommit 154f5aec2de201c674841de4fcc9804c2a87af07 2243207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2244207753SmmDate: Tue Feb 10 21:48:35 2009 +0200 2245207753Smm 2246207753Smm Removed Makefile from .gitignore since not all Makefiles 2247207753Smm in the repository are generated by Autotools. People 2248207753Smm should do test builds in a separate build directory anyway. 2249207753Smm 2250207753Smmcommit e605c2663691b0a4c307786aa368d124ea081daa 2251207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2252207753SmmDate: Tue Feb 10 21:48:05 2009 +0200 2253207753Smm 2254207753Smm Added resource files for the Windows build. 2255207753Smm 2256207753Smmcommit a3bbbe05d32b1f7ea9eb98805df4dda2e811b476 2257207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2258207753SmmDate: Mon Feb 9 14:54:31 2009 +0200 2259207753Smm 2260207753Smm Let the user specify custom CFLAGS on the make command 2261207753Smm line. Previously custom CFLAGS worked only when they were 2262207753Smm passed to configure. 2263207753Smm 2264207753Smmcommit 53f7598998b1860a69c51243b5d2e34623c6bf60 2265207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2266207753SmmDate: Sun Feb 8 21:35:11 2009 +0200 2267207753Smm 2268207753Smm Fix aliasing issue in physmem.h. 2269207753Smm 2270207753Smmcommit 0e27028d74c5c7a8e036ae2a9b8cecb0ac79d3a6 2271207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2272207753SmmDate: Sun Feb 8 18:24:50 2009 +0200 2273207753Smm 2274207753Smm Add a separate internal function to initialize the CRC32 2275207753Smm table, which is used also by LZ encoder. This was needed 2276207753Smm because calling lzma_crc32() and ignoring the result is 2277207753Smm a no-op due to lzma_attr_pure. 2278207753Smm 2279207753Smmcommit ae1ad9af54210c9a2be336b1316532da5071516c 2280207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2281207753SmmDate: Sun Feb 8 18:17:05 2009 +0200 2282207753Smm 2283207753Smm Make "xz --force" to write to terminal as the error 2284207753Smm message suggests. 2285207753Smm 2286207753Smmcommit 79e25eded48d2fe33f31441ab7a034f902e335f8 2287207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2288207753SmmDate: Sun Feb 8 10:37:50 2009 +0200 2289207753Smm 2290207753Smm Support both slash and backslash as path component 2291207753Smm separator on Windows when parsing argv[0]. 2292207753Smm 2293207753Smmcommit bc7c7109cc4410055a888c1c70cbd1c9445c4361 2294207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2295207753SmmDate: Sat Feb 7 23:18:13 2009 +0200 2296207753Smm 2297207753Smm Omit the wrong and (even if corrected) nowadays useless rm 2298207753Smm from autogen.sh. 2299207753Smm 2300207753Smmcommit edfc2031e56f8a2ccda063f02936b3a848d88723 2301207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2302207753SmmDate: Sat Feb 7 21:41:52 2009 +0200 2303207753Smm 2304207753Smm Updated THANKS. 2305207753Smm 2306207753Smmcommit 880c3309386aac58fc4f3d7ca99bd31bcb1526a3 2307207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2308207753SmmDate: Sat Feb 7 21:17:07 2009 +0200 2309207753Smm 2310207753Smm Make it easy to choose if command line tools should be 2311207753Smm linked statically or dynamically against liblzma. The 2312207753Smm default is still to use static liblzma, but it can now 2313207753Smm be changed by passing --enable-dynamic to configure. 2314207753Smm Thanks to Mike Frysinger for the original patch. 2315207753Smm 2316207753Smm Fixed a few minor bugs in configure.ac. 2317207753Smm 2318207753Smmcommit 3f86532407e4ace3debb62be16035e009b56ca36 2319207753SmmAuthor: Mike Frysinger <vapier@gentoo.org> 2320207753SmmDate: Fri Feb 6 23:38:39 2009 -0500 2321207753Smm 2322207753Smm add gitignore files 2323207753Smm 2324207753Smm Signed-off-by: Mike Frysinger <vapier@gentoo.org> 2325207753Smm 2326207753Smmcommit bd7ca1dad5c146b6217799ffaa230c32d207a3e5 2327207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2328207753SmmDate: Sat Feb 7 17:07:52 2009 +0200 2329207753Smm 2330207753Smm Assume 32 MiB of RAM on unsupported operating systems like 2331207753Smm the comment in hardware.c already said. 2332207753Smm 2333207753Smmcommit d0ab8c1c73ae712adb0d26fbb9da762d99a63618 2334207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2335207753SmmDate: Sat Feb 7 16:26:58 2009 +0200 2336207753Smm 2337207753Smm MinGW support: Don't build fastpos_tablegen.c as part of 2338207753Smm liblzma. Build both static and dynamic liblzma, and also 2339207753Smm static and dynamic versions of the command line tools. 2340207753Smm 2341207753Smmcommit bfd91198e44a52bd9bfe3cd6dcae5edab7c6eb45 2342207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2343207753SmmDate: Sat Feb 7 15:55:47 2009 +0200 2344207753Smm 2345207753Smm Support LZMA_API_STATIC in assembler files to 2346207753Smm avoid __declspec(dllexport) equivalent. 2347207753Smm 2348207753Smmcommit 3306cf3883492720b3c34baa02f4eb4227d91c73 2349207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2350207753SmmDate: Sat Feb 7 11:11:50 2009 +0200 2351207753Smm 2352207753Smm Introduced LZMA_API_STATIC macro, which the applications 2353207753Smm need to #define when linking against static liblzma on 2354207753Smm platforms like Windows. Most developers don't need to 2355207753Smm care about LZMA_API_STATIC at all. 2356207753Smm 2357207753Smmcommit b719e63c5f4c91d2d5e2ea585d4c055ec3767d0b 2358207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2359207753SmmDate: Fri Feb 6 16:55:45 2009 +0200 2360207753Smm 2361207753Smm Another grammar fix 2362207753Smm 2363207753Smmcommit fe5434f940f75fec3611cf9d9edf78c4da8ac760 2364207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2365207753SmmDate: Fri Feb 6 12:30:23 2009 +0200 2366207753Smm 2367207753Smm Grammar fix in README. 2368207753Smm 2369207753Smmcommit 3dfa58a9eedf5a0e566452b078801c9cbcf7a245 2370207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2371207753SmmDate: Fri Feb 6 10:06:32 2009 +0200 2372207753Smm 2373207753Smm Some MSYS installations (e.g. MsysGit) don't include 2374207753Smm install.exe, so don't rely on it. 2375207753Smm 2376207753Smmcommit 975d8fd72a5148d46b2e1745f7a211cf1dfd9d31 2377207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2378207753SmmDate: Fri Feb 6 09:13:15 2009 +0200 2379207753Smm 2380207753Smm Recreated the BCJ test files for x86 and SPARC. The old files 2381207753Smm were linked with crt*.o, which are copyrighted, and thus the 2382207753Smm old test files were not in the public domain as a whole. They 2383207753Smm are freely distributable though, but it is better to be careful 2384207753Smm and avoid including any copyrighted pieces in the test files. 2385207753Smm The new files are just compiled and assembled object files, 2386207753Smm and thus don't contain any copyrighted code. 2387207753Smm 2388207753Smmcommit 094b1b09a531f0d201ec81f2b07346a995fd80b9 2389207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2390207753SmmDate: Thu Feb 5 21:21:27 2009 +0200 2391207753Smm 2392207753Smm Add the "windows" directory to EXTRA_DIST. 2393207753Smm 2394207753Smmcommit e1c3412eec7acec7ca3b32c9c828f3147dc65b49 2395207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2396207753SmmDate: Thu Feb 5 09:17:51 2009 +0200 2397207753Smm 2398207753Smm Added initial experimental makefile for use with MinGW. 2399207753Smm 2400207753Smmcommit 75905a9afc0ee89954ede7d08af70d1148bf0fd9 2401207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2402207753SmmDate: Thu Feb 5 09:12:57 2009 +0200 2403207753Smm 2404207753Smm Various code cleanups the the xz command line tool. 2405207753Smm It now builds with MinGW. 2406207753Smm 2407207753Smmcommit d0c0b9e94e0af59d1d8f7f4829695d6efe19ccfe 2408207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2409207753SmmDate: Tue Feb 3 12:15:17 2009 +0200 2410207753Smm 2411207753Smm Another utime() fix. 2412207753Smm 2413207753Smmcommit ccf92a29e8c7234284f1568c1ec0fd7cb98356ca 2414207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2415207753SmmDate: Tue Feb 3 10:41:11 2009 +0200 2416207753Smm 2417207753Smm Fix wrong filename argument for utime() and utimes(). 2418207753Smm This doesn't affect most systems, since most systems 2419207753Smm have better functions available. 2420207753Smm 2421207753Smmcommit 99c1c2abfae2e87f3c17e929783e6d1bb7a3f302 2422207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2423207753SmmDate: Mon Feb 2 21:19:01 2009 +0200 2424207753Smm 2425207753Smm Updated the x86 assembler code: 2426207753Smm - Use call/ret pair to get instruction pointer for PIC. 2427207753Smm - Use PIC only if PIC or __PIC__ is #defined. 2428207753Smm - The code should work on MinGW and Darwin in addition 2429207753Smm to GNU/Linux and Solaris. 2430207753Smm 2431207753Smmcommit 22a0c6dd940b78cdac2f4a4b4b0e7cc0ac15021f 2432207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2433207753SmmDate: Mon Feb 2 20:14:03 2009 +0200 2434207753Smm 2435207753Smm Modify LZMA_API macro so that it works on Windows with 2436207753Smm other compilers than MinGW. This may hurt readability 2437207753Smm of the API headers slightly, but I don't know any 2438207753Smm better way to do this. 2439207753Smm 2440207753Smmcommit 8dd7b6052e18621e2e6c62f40f762ee88bd3eb65 2441207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2442207753SmmDate: Sun Feb 1 22:40:35 2009 +0200 2443207753Smm 2444207753Smm Fix a bug in lzma_block_buffer_decode(), although this 2445207753Smm function should be rewritten anyway. 2446207753Smm 2447207753Smmcommit 55fd41431e61fb8178858283d636b6781e33e847 2448207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2449207753SmmDate: Sun Feb 1 22:39:07 2009 +0200 2450207753Smm 2451207753Smm Added initial version of raw buffer-to-buffer coding 2452207753Smm functions, and cleaned up filter.h API header a little. 2453207753Smm May be very buggy, not tested yet. 2454207753Smm 2455207753Smmcommit 3e54ecee5cad30a5ca361a88a99230407abc0699 2456207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2457207753SmmDate: Sun Feb 1 00:11:20 2009 +0200 2458207753Smm 2459207753Smm Fix missing newlines in xzdec.c. 2460207753Smm 2461207753Smmcommit d64ca34f1b6f34e86adefc7f735b4eff8e6d4a35 2462207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2463207753SmmDate: Sun Feb 1 00:10:07 2009 +0200 2464207753Smm 2465207753Smm Use __cdecl also for function pointers in liblzma API when 2466207753Smm on Windows. 2467207753Smm 2468207753Smmcommit 6a2eb54092fc625d59921a607ff68cd1a90aa898 2469207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2470207753SmmDate: Sat Jan 31 11:01:48 2009 +0200 2471207753Smm 2472207753Smm Add LZMA_API to liblzma API headers. It's useful at least 2473207753Smm on Windows. sysdefs.h no longer #includes lzma.h, so lzma.h 2474207753Smm has to be #included separately where needed. 2475207753Smm 2476207753Smmcommit d9993fcb4dfc1f93abaf31ae23b3ef1f3123892b 2477207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2478207753SmmDate: Sat Jan 31 10:13:09 2009 +0200 2479207753Smm 2480207753Smm Use _WIN32 instead of WIN32 in xzdec.c to test if compiling on Windows. 2481207753Smm 2482207753Smmcommit 2dbdc5befb33c3703e4609809101047c67caf343 2483207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2484207753SmmDate: Sat Jan 31 10:02:52 2009 +0200 2485207753Smm 2486207753Smm Fix two lines in lzma.h on which the # wasn't at the 2487207753Smm beginning of the line. 2488207753Smm 2489207753Smmcommit 4ab760109106dc04f39dd81c97d50f528d1b51c1 2490207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2491207753SmmDate: Sat Jan 31 09:55:05 2009 +0200 2492207753Smm 2493207753Smm Add support for using liblzma headers in MSVC, which has no 2494207753Smm stdint.h or inttypes.h. 2495207753Smm 2496207753Smmcommit b2172cf823d3be34cb0246cb4cb32d105e2a34c9 2497207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2498207753SmmDate: Sat Jan 31 08:49:54 2009 +0200 2499207753Smm 2500207753Smm Fix # -> ## in a macro in lzma.h. 2501207753Smm 2502207753Smmcommit 1aae8698746d3c87a93f8398cdde2de9ba1f7208 2503207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2504207753SmmDate: Fri Jan 30 18:50:16 2009 +0200 2505207753Smm 2506207753Smm Updated README. 2507207753Smm 2508207753Smmcommit f54bcf6f80d585236bc03ce49f7c73e1abaa17eb 2509207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2510207753SmmDate: Fri Jan 30 00:29:58 2009 +0200 2511207753Smm 2512207753Smm Remove dangling crc64_init.c. 2513207753Smm 2514207753Smmcommit 982da7ed314398420c38bf154a8f759d5f18b480 2515207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2516207753SmmDate: Wed Jan 28 17:16:38 2009 +0200 2517207753Smm 2518207753Smm The .xz file format specification version 1.0.0 is now 2519207753Smm officially released. The format has been technically the same 2520207753Smm since 2008-11-19, but now that it is frozen, people can start 2521207753Smm using it without a fear that the format will break. 2522207753Smm 2523207753Smmcommit c4683a660b4372156bdaf92f0cdc54a58f95ee6f 2524207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2525207753SmmDate: Wed Jan 28 08:45:59 2009 +0200 2526207753Smm 2527207753Smm Updated THANKS. 2528207753Smm 2529207753Smmcommit 3241317093595db9f79104faafe93cb989c9f858 2530207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2531207753SmmDate: Wed Jan 28 08:43:26 2009 +0200 2532207753Smm 2533207753Smm Fix uninitialized variables in alone_decoder.c. This bug was 2534207753Smm triggered by the previous commit, since these variables were 2535207753Smm not used by anything before support for a preset dictionary. 2536207753Smm 2537207753Smmcommit f76e39cf930f888d460b443d18f977ebedea8b2a 2538207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2539207753SmmDate: Tue Jan 27 18:36:05 2009 +0200 2540207753Smm 2541207753Smm Added initial support for preset dictionary for raw LZMA1 2542207753Smm and LZMA2. It is not supported by the .xz format or the xz 2543207753Smm command line tool yet. 2544207753Smm 2545207753Smmcommit 449b8c832b26c3633f3bec60095e57d2d3ada1f3 2546207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2547207753SmmDate: Mon Jan 26 20:09:17 2009 +0200 2548207753Smm 2549207753Smm Regenerate the CRC tables without trailing blanks. 2550207753Smm 2551207753Smmcommit 850f7400428dc9c5fd08a2f35a5bd2c9e45aede2 2552207753SmmAuthor: Jim Meyering <meyering@redhat.com> 2553207753SmmDate: Mon Jan 19 21:37:16 2009 +0100 2554207753Smm 2555207753Smm remove trailing blanks from all but .xz files 2556207753Smm 2557207753Smmcommit 667481f1aad34e1ed15738e7913a9c7e256b4cf5 2558207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2559207753SmmDate: Mon Jan 26 14:34:10 2009 +0200 2560207753Smm 2561207753Smm Add lzma_block_buffer_decode(). 2562207753Smm 2563207753Smmcommit 5fb34d8324d3e7e0061df25d0086b64c8726b19d 2564207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2565207753SmmDate: Mon Jan 26 14:33:28 2009 +0200 2566207753Smm 2567207753Smm Add more sanity checks to lzma_stream_buffer_decode(). 2568207753Smm 2569207753Smmcommit c129748675a5daa8838df92bde32cc04f6ce61ba 2570207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2571207753SmmDate: Mon Jan 26 14:33:13 2009 +0200 2572207753Smm 2573207753Smm Avoid hardcoded constant in easy.c. 2574207753Smm 2575207753Smmcommit 1859d22d75e072463db74c25bc3f5a7992e5fdf6 2576207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2577207753SmmDate: Mon Jan 26 13:06:49 2009 +0200 2578207753Smm 2579207753Smm Tiny bit better sanity check in block_util.c 2580207753Smm 2581207753Smmcommit 2c5fe958e4bbe9b147b10c255955dfe2827fb8e7 2582207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2583207753SmmDate: Sun Jan 25 01:35:56 2009 +0200 2584207753Smm 2585207753Smm Fix a dumb bug in Block decoder, which made it return 2586207753Smm LZMA_DATA_ERROR with valid data. The bug was added in 2587207753Smm e114502b2bc371e4a45449832cb69be036360722. 2588207753Smm 2589207753Smmcommit c81f13ff29271de7293f8af3d81848b1dcae3d19 2590207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2591207753SmmDate: Fri Jan 23 22:27:50 2009 +0200 2592207753Smm 2593207753Smm Added lzma_stream_buffer_decode() and made minor cleanups. 2594207753Smm 2595207753Smmcommit 0b3318661ce749550b8531dfd469639a08930391 2596207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2597207753SmmDate: Thu Jan 22 12:53:33 2009 +0200 2598207753Smm 2599207753Smm Fix a comment. 2600207753Smm 2601207753Smmcommit 9ec80355a7212a0a2f8c89d98e51b1d8b4e34eec 2602207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2603207753SmmDate: Tue Jan 20 16:37:27 2009 +0200 2604207753Smm 2605207753Smm Add some single-call buffer-to-buffer coding functions. 2606207753Smm 2607207753Smmcommit d8b58d099340f8f4007b24b211ee41a7210c061c 2608207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2609207753SmmDate: Tue Jan 20 13:45:41 2009 +0200 2610207753Smm 2611207753Smm Block encoder cleanups 2612207753Smm 2613207753Smmcommit 0c09810cb3635cb575cb54e694d41523e7d0a335 2614207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2615207753SmmDate: Tue Jan 20 10:35:15 2009 +0200 2616207753Smm 2617207753Smm Use LZMA_PROG_ERROR in lzma_code() as documented in base.h. 2618207753Smm 2619207753Smmcommit 2f1a8e8eb898f6c036cde55d153ad348bfab3c00 2620207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2621207753SmmDate: Mon Jan 19 22:53:18 2009 +0200 2622207753Smm 2623207753Smm Fix handling of non-fatal errors in lzma_code(). 2624207753Smm 2625207753Smmcommit 4810b6bc25087be872960b9dd1d11ff07735dc88 2626207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2627207753SmmDate: Mon Jan 19 14:00:33 2009 +0200 2628207753Smm 2629207753Smm Move some LZMA2 constants to lzma2_encoder.h so that they 2630207753Smm can be used outside lzma2_encoder.c. 2631207753Smm 2632207753Smmcommit 00be5d2e09f9c7a6a8563465ad8b8042866817a4 2633207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2634207753SmmDate: Mon Jan 19 13:52:36 2009 +0200 2635207753Smm 2636207753Smm Remove dead code. 2637207753Smm 2638207753Smmcommit 128586213f77c9bd82b7e9a62927f6d0c3769d85 2639207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2640207753SmmDate: Sat Jan 17 14:24:25 2009 +0200 2641207753Smm 2642207753Smm Beta was supposed to be API stable but I had forgot to rename 2643207753Smm lzma_memlimit_encoder and lzma_memlimit_decoder to 2644207753Smm lzma_raw_encoder_memlimit and lzma_raw_decoder_memlimit. :-( 2645207753Smm Now it is fixed. Hopefully it doesn't cause too much trouble 2646207753Smm to those who already thought API is stable. 2647207753Smm 2648207753Smmcommit b056379490be5c584c264a967f0540041a163a1e 2649207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2650207753SmmDate: Thu Jan 15 14:29:22 2009 +0200 2651207753Smm 2652207753Smm Updated THANKS. 2653207753Smm 2654207753Smmcommit dc8f3be06d54ef6e6cfb5134dd3d25edd08cef89 2655207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2656207753SmmDate: Thu Jan 15 14:27:32 2009 +0200 2657207753Smm 2658207753Smm Fixed a bug in 7z2lzma.bash to make it work with .7z files 2659207753Smm that use something else than 2^n as the dictionary size. 2660207753Smm Thanks to Dan Shechter for the bug report. 2661207753Smm 2662207753Smmcommit 8286a60b8f4bd5accfbc9d229d2204bac31994f2 2663207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2664207753SmmDate: Wed Jan 7 18:41:15 2009 +0200 2665207753Smm 2666207753Smm Use pthread_sigmask() instead of sigprocmask() when pthreads 2667207753Smm are enabled. 2668207753Smm 2669207753Smmcommit 4fd43cb3a906f6da2943f69239ee984c4787c9a9 2670207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2671207753SmmDate: Wed Dec 31 20:01:00 2008 +0200 2672207753Smm 2673207753Smm Bumped version to 4.999.8beta right after the release 2674207753Smm of 4.999.7beta. 2675207753Smm 2676207753Smmcommit 061748f5932719643cda73383db715167d543c22 2677207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2678207753SmmDate: Wed Dec 31 18:59:02 2008 +0200 2679207753Smm 2680207753Smm Disable Subblock filter from test_compress.sh since it is 2681207753Smm disabled by default in configure.ac. 2682207753Smm 2683207753Smmcommit 9c45658ddc8bd4a7819ef8547d3e7ccf73203e78 2684207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2685207753SmmDate: Wed Dec 31 17:44:20 2008 +0200 2686207753Smm 2687207753Smm Disable both Subblock encoder and decoder my default, 2688207753Smm since they are not finished and may have security issues too. 2689207753Smm 2690207753Smmcommit b59f1e98f50694cf6a8f1b342fd878feebdb2f88 2691207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2692207753SmmDate: Wed Dec 31 17:42:50 2008 +0200 2693207753Smm 2694207753Smm Update some files in debug directory. 2695207753Smm 2696207753Smmcommit d1d17a40d33a9682424ca37282813492f2cba6d0 2697207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2698207753SmmDate: Wed Dec 31 17:41:46 2008 +0200 2699207753Smm 2700207753Smm Prepare for 4.999.7beta release. 2701207753Smm 2702207753Smmcommit 88d3e6b0b18e24142b6d3b41dc1b84b00c49fef3 2703207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2704207753SmmDate: Wed Dec 31 17:15:03 2008 +0200 2705207753Smm 2706207753Smm Cleaned up some comments in the API headers. 2707207753Smm 2708207753Smmcommit 322ecf93c961e45a1da8c4a794a7fdacefcd7f40 2709207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2710207753SmmDate: Wed Dec 31 16:29:39 2008 +0200 2711207753Smm 2712207753Smm Renamed lzma_options_simple to lzma_options_bcj in the API. 2713207753Smm The internal implementation is still using the name "simple". 2714207753Smm It may need some cleanups, so I look at it later. 2715207753Smm 2716207753Smmcommit 7eea8bec3abfed883efba66264a1452a1c04f6b0 2717207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2718207753SmmDate: Wed Dec 31 00:57:27 2008 +0200 2719207753Smm 2720207753Smm Fixed missing quoting in configure.ac. 2721207753Smm 2722207753Smmcommit 28e75f7086dbe9501d926c370375c69dfb1236ce 2723207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2724207753SmmDate: Wed Dec 31 00:48:23 2008 +0200 2725207753Smm 2726207753Smm Updated src/liblzma/Makefile.am to use liblzma.pc.in, which 2727207753Smm should have been in the previous commit. 2728207753Smm 2729207753Smmcommit 7ed9d943b31d3ee9c5fb2387e84a241ba33afe90 2730207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2731207753SmmDate: Wed Dec 31 00:30:49 2008 +0200 2732207753Smm 2733207753Smm Remove lzma_init() and other init functions from liblzma API. 2734207753Smm Half of developers were already forgetting to use these 2735207753Smm functions, which could have caused total breakage in some future 2736207753Smm liblzma version or even now if --enable-small was used. Now 2737207753Smm liblzma uses pthread_once() to do the initializations unless 2738207753Smm it has been built with --disable-threads which make these 2739207753Smm initializations thread-unsafe. 2740207753Smm 2741207753Smm When --enable-small isn't used, liblzma currently gets needlessly 2742207753Smm linked against libpthread (on systems that have it). While it is 2743207753Smm stupid for now, liblzma will need threads in future anyway, so 2744207753Smm this stupidity will be temporary only. 2745207753Smm 2746207753Smm When --enable-small is used, different code CRC32 and CRC64 is 2747207753Smm now used than without --enable-small. This made the resulting 2748207753Smm binary slightly smaller, but the main reason was to clean it up 2749207753Smm and to handle the lack of lzma_init_check(). 2750207753Smm 2751207753Smm The pkg-config file lzma.pc was renamed to liblzma.pc. I'm not 2752207753Smm sure if it works correctly and portably for static linking 2753207753Smm (Libs.private includes -pthread or other operating system 2754207753Smm specific flags). Hopefully someone complains if it is bad. 2755207753Smm 2756207753Smm lzma_rc_prices[] is now included as a precomputed array even 2757207753Smm with --enable-small. It's just 128 bytes now that it uses uint8_t 2758207753Smm instead of uint32_t. Smaller array seemed to be at least as fast 2759207753Smm as the more bloated uint32_t array on x86; hopefully it's not bad 2760207753Smm on other architectures. 2761207753Smm 2762207753Smmcommit 5cda29b5665004fc0f21d0c41d78022a6a559ab2 2763207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2764207753SmmDate: Sat Dec 27 19:40:31 2008 +0200 2765207753Smm 2766207753Smm Use 28 MiB as memory usage limit for encoding in test_compress.sh. 2767207753Smm 2768207753Smmcommit 050eb14d29e2537c014662e83599fd8a77f13c45 2769207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2770207753SmmDate: Sat Dec 27 19:32:20 2008 +0200 2771207753Smm 2772207753Smm Revert a change made in 3b34851de1eaf358cf9268922fa0eeed8278d680 2773207753Smm that was related to LZMA_MODE_FAST. The original code is slightly 2774207753Smm faster although it compresses slightly worse. But since it is fast 2775207753Smm mode, it is better to select the faster version. 2776207753Smm 2777207753Smmcommit 4820f10d0f173864f6a2ea7479663b509ac53358 2778207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2779207753SmmDate: Sat Dec 27 19:30:19 2008 +0200 2780207753Smm 2781207753Smm Some xz command line tool improvements. 2782207753Smm 2783207753Smmcommit e33194e79d8f5ce07cb4aca909b324ae75098f7e 2784207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2785207753SmmDate: Sat Dec 27 19:27:49 2008 +0200 2786207753Smm 2787207753Smm Bunch of liblzma tweaks, including some API changes. 2788207753Smm The API and ABI should now be very close to stable, 2789207753Smm although the code behind it isn't yet. 2790207753Smm 2791207753Smmcommit 4d00652e75dd2736aedc3a3a8baff3dd0ea38074 2792207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2793207753SmmDate: Thu Dec 18 13:42:52 2008 +0200 2794207753Smm 2795207753Smm Updated Makefile.am that was missing from the previous commit. 2796207753Smm 2797207753Smmcommit 634636fa56ccee6e744f78b0abed76c8940f2f8f 2798207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2799207753SmmDate: Wed Dec 17 21:49:53 2008 +0200 2800207753Smm 2801207753Smm Remove the alignment functions for now. Maybe they will 2802207753Smm be added back in some form later, but the current version 2803207753Smm wasn't modular, so it would need fixing anyway. 2804207753Smm 2805207753Smmcommit 4fed98417d1687f5eccccb42a133fde3ec81216a 2806207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2807207753SmmDate: Wed Dec 17 20:11:23 2008 +0200 2808207753Smm 2809207753Smm xz message handling improvements 2810207753Smm 2811207753Smmcommit 653e457e3756ef35e5d1b2be3523b3e4b1e9ee4d 2812207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2813207753SmmDate: Mon Dec 15 23:26:43 2008 +0200 2814207753Smm 2815207753Smm Fix a dumb bug in .lzma decoder which was introduced in 2816207753Smm the previous commit. (Probably the previous commit has 2817207753Smm other bugs too, it wasn't tested.) 2818207753Smm 2819207753Smmcommit 671a5adf1e844bfdd6fd327016c3c28694493158 2820207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2821207753SmmDate: Mon Dec 15 19:39:13 2008 +0200 2822207753Smm 2823207753Smm Bunch of liblzma API cleanups and fixes. 2824207753Smm 2825207753Smmcommit 17781c2c20fd77029cb32e77792889f2f211d69d 2826207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2827207753SmmDate: Mon Dec 15 14:26:52 2008 +0200 2828207753Smm 2829207753Smm The LZMA2 decoder fix introduced a bug to LZ decoder, 2830207753Smm which made LZ decoder return too early after dictionary 2831207753Smm reset. This fixes it. 2832207753Smm 2833207753Smmcommit f9f2d1e74398500724041f7fb3c38db35ad8c8d8 2834207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2835207753SmmDate: Mon Dec 15 11:20:22 2008 +0200 2836207753Smm 2837207753Smm Added two new test files. 2838207753Smm 2839207753Smmcommit ff7fb2c605bccc411069e07b9f11fb957aea2ddf 2840207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2841207753SmmDate: Mon Dec 15 10:01:59 2008 +0200 2842207753Smm 2843207753Smm Fix data corruption in LZMA2 decoder. 2844207753Smm 2845207753Smmcommit 1ceebcf7e1bd30b95125f0ad67a09fdb6215d613 2846207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2847207753SmmDate: Sat Dec 13 00:54:11 2008 +0200 2848207753Smm 2849207753Smm Name the package "xz" in configure.ac. 2850207753Smm 2851207753Smmcommit a94bf00d0af9b423851905b031be5a645a657820 2852207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2853207753SmmDate: Fri Dec 12 22:43:21 2008 +0200 2854207753Smm 2855207753Smm Some adjustments to GCC warning flags. The important change 2856207753Smm is the removal of -pedantic. It messes up -Werror (which I 2857207753Smm really want to keep so that I don't miss any warnings) with 2858207753Smm printf format strings that are in POSIX but not in C99. 2859207753Smm 2860207753Smmcommit 8582d392baacd2cdac07ca60041f8c661323676d 2861207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2862207753SmmDate: Wed Dec 10 01:31:00 2008 +0200 2863207753Smm 2864207753Smm Remove obsolete comment. 2865207753Smm 2866207753Smmcommit b1ae6dd731ea3636c3c2bfc7aefa71457d3328f1 2867207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2868207753SmmDate: Wed Dec 10 01:27:15 2008 +0200 2869207753Smm 2870207753Smm Use "decompression" consistently in --long-help. 2871207753Smm 2872207753Smmcommit 1ea9e7f15afd5d3981e2432710e932320597bca9 2873207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2874207753SmmDate: Wed Dec 10 01:23:58 2008 +0200 2875207753Smm 2876207753Smm Added preset=NUM to --lzma1 and --lzma2. This makes it easy 2877207753Smm to take a preset as a template and modify it a little. 2878207753Smm 2879207753Smmcommit bceb3918dbb21f34976bfdd4c171a81319de71f7 2880207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2881207753SmmDate: Tue Dec 9 17:43:31 2008 +0200 2882207753Smm 2883207753Smm Put the file format specification into the public domain. 2884207753Smm Same will be done to the actual code later. 2885207753Smm 2886207753Smmcommit 6efa2d80d46a38861016f41f0eb6fa2ec9260fe6 2887207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2888207753SmmDate: Tue Dec 9 17:41:49 2008 +0200 2889207753Smm 2890207753Smm Make the memusage functions of LZMA1 and LZMA2 encoders 2891207753Smm to validate the filter options. Add missing validation 2892207753Smm to LZMA2 encoder when options are changed in the middle 2893207753Smm of encoding. 2894207753Smm 2895207753Smmcommit f20a03206b71ff01b827bb7a932411d6a6a4e06a 2896207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2897207753SmmDate: Tue Dec 9 10:36:24 2008 +0200 2898207753Smm 2899207753Smm Updated THANKS. 2900207753Smm 2901207753Smmcommit ef7890d56453dca1aeb2e12db29b7e418d93dde4 2902207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2903207753SmmDate: Mon Dec 1 23:04:12 2008 +0200 2904207753Smm 2905207753Smm In command line tool, take advantage of memusage calculation's 2906207753Smm ability to also validate the filter chain and options (not 2907207753Smm implemented yet for all filters). 2908207753Smm 2909207753Smmcommit ccd57afa09e332d664d6d6a7498702791ea5f659 2910207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2911207753SmmDate: Mon Dec 1 22:59:28 2008 +0200 2912207753Smm 2913207753Smm Validate the filter chain before checking filter-specific 2914207753Smm memory usage. 2915207753Smm 2916207753Smmcommit c596fda40b62fe1683d0ac34d0c673dcaae2aa15 2917207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2918207753SmmDate: Mon Dec 1 22:58:22 2008 +0200 2919207753Smm 2920207753Smm Make the memusage functions of LZMA1 and LZMA2 decoders 2921207753Smm to validate the filter options. 2922207753Smm 2923207753Smmcommit c58f469be5bb9b0bdab825c6687445fd553f4f3a 2924207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2925207753SmmDate: Mon Dec 1 22:55:18 2008 +0200 2926207753Smm 2927207753Smm Added the changes for Delta filter that should have been 2928207753Smm part of 656ec87882ee74b192c4ea4a233a235eca7b04d4. 2929207753Smm 2930207753Smmcommit cd708015202dbf7585b84a8781462a20c42a324b 2931207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2932207753SmmDate: Mon Dec 1 22:50:28 2008 +0200 2933207753Smm 2934207753Smm LZMA2 decoder cleanups. Make it require new LZMA properties 2935207753Smm also in the first LZMA chunk after a dictionary reset in 2936207753Smm uncompressed chunk. 2937207753Smm 2938207753Smmcommit 656ec87882ee74b192c4ea4a233a235eca7b04d4 2939207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2940207753SmmDate: Mon Dec 1 16:30:11 2008 +0200 2941207753Smm 2942207753Smm Added lzma_delta_coder_memusage() which also validates 2943207753Smm the options. 2944207753Smm 2945207753Smmcommit 691a9155b7a28882baf37e9d1e969e32e91dbc7a 2946207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2947207753SmmDate: Sat Nov 29 10:03:49 2008 +0200 2948207753Smm 2949207753Smm Automake includes the m4 directory, so don't add it in 2950207753Smm Makefile.am separately. 2951207753Smm 2952207753Smm Updated THANKS. 2953207753Smm 2954207753Smmcommit c7007ddf06ac2b0e018d71d281c21b99f16e7ae0 2955207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2956207753SmmDate: Fri Nov 28 12:00:48 2008 +0200 2957207753Smm 2958207753Smm Tested using COLUMNS environment variable to avoid broken 2959207753Smm progress indicator but since COLUMNS isn't usually available, 2960207753Smm the code was left commented out. 2961207753Smm 2962207753Smmcommit ae65dcfde27014e4d811e1a1308aa5d0fe8debbd 2963207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2964207753SmmDate: Thu Nov 27 19:28:59 2008 +0200 2965207753Smm 2966207753Smm Cleanups to message.c. 2967207753Smm 2968207753Smmcommit a8368b75cdcd5427299001cc42839287f27b244d 2969207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2970207753SmmDate: Tue Nov 25 02:37:47 2008 +0200 2971207753Smm 2972207753Smm Remove the nowadays unneeded memory limitting malloc() wrapper. 2973207753Smm 2974207753Smmcommit 69472ee5f055a2bb6f28106f0923e1461fd1d080 2975207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2976207753SmmDate: Sun Nov 23 15:09:03 2008 +0200 2977207753Smm 2978207753Smm VLI encoder and decoder cleanups. Made encoder return 2979207753Smm LZMA_PROG_ERROR in single-call mode if there's no output 2980207753Smm space. 2981207753Smm 2982207753Smmcommit 4249c8c15a08f55b51b7012e6aaafce3aa9eb650 2983207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2984207753SmmDate: Sat Nov 22 17:44:33 2008 +0200 2985207753Smm 2986207753Smm Typo fix 2987207753Smm 2988207753Smmcommit 6d1d6f4598d121253dbe1084c6866b66e95c361b 2989207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2990207753SmmDate: Thu Nov 20 22:59:10 2008 +0200 2991207753Smm 2992207753Smm Support NetBSD's errno for O_NOFOLLOW. 2993207753Smm 2994207753Smmcommit f901a290eef67b8ea4720ccdf5f46edf775ed9d7 2995207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2996207753SmmDate: Thu Nov 20 18:05:52 2008 +0200 2997207753Smm 2998207753Smm Build xzdec and lzmadec from xzdec.c. xzdec supports only .xz 2999207753Smm files and lzmadec only .lzma files. 3000207753Smm 3001207753Smmcommit 86a0ed8f01c8ed44721223f885e679c71b7bb94c 3002207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3003207753SmmDate: Thu Nov 20 11:01:29 2008 +0200 3004207753Smm 3005207753Smm Minor cleanups to xzdec. 3006207753Smm 3007207753Smmcommit 54f716ba8905d09752dcd1519455a40bd21d5317 3008207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3009207753SmmDate: Wed Nov 19 23:55:22 2008 +0200 3010207753Smm 3011207753Smm Added missing check for uint16_t. 3012207753Smm 3013207753Smmcommit 1880a3927b23f265f63b2adb86fbdb81ea09eb06 3014207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3015207753SmmDate: Wed Nov 19 23:52:24 2008 +0200 3016207753Smm 3017207753Smm Renamed lzma to xz and lzmadec to xzdec. We create symlinks 3018207753Smm lzma, unlzma, and lzcat in "make install" for backwards 3019207753Smm compatibility with LZMA Utils 4.32.x; I'm not sure if this 3020207753Smm should be the default though. 3021207753Smm 3022207753Smmcommit e114502b2bc371e4a45449832cb69be036360722 3023207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3024207753SmmDate: Wed Nov 19 20:46:52 2008 +0200 3025207753Smm 3026207753Smm Oh well, big messy commit again. Some highlights: 3027207753Smm - Updated to the latest, probably final file format version. 3028207753Smm - Command line tool reworked to not use threads anymore. 3029207753Smm Threading will probably go into liblzma anyway. 3030207753Smm - Memory usage limit is now about 30 % for uncompression 3031207753Smm and about 90 % for compression. 3032207753Smm - Progress indicator with --verbose 3033207753Smm - Simplified --help and full --long-help 3034207753Smm - Upgraded to the last LGPLv2.1+ getopt_long from gnulib. 3035207753Smm - Some bug fixes 3036207753Smm 3037207753Smmcommit 3c3905b53462ae235c9438d86a4dc51086410932 3038207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3039207753SmmDate: Thu Oct 9 11:12:29 2008 +0300 3040207753Smm 3041207753Smm Fixed the test that should have been fixed as part 3042207753Smm of 1e8e4fd1f3e50129b4541406ad765d2aa1233943. 3043207753Smm 3044207753Smmcommit 0f295bf7a3ece01f667caae318cc3e3424085886 3045207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3046207753SmmDate: Tue Oct 7 16:42:18 2008 +0300 3047207753Smm 3048207753Smm Fixed some help messages. 3049207753Smm 3050207753Smmcommit 1e8e4fd1f3e50129b4541406ad765d2aa1233943 3051207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3052207753SmmDate: Tue Oct 7 09:40:31 2008 +0300 3053207753Smm 3054207753Smm Made the preset numbering more logical in liblzma API. 3055207753Smm 3056207753Smmcommit 5e4df4c3c09c82bbbb1a916784e3dc717ca4ff81 3057207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3058207753SmmDate: Fri Oct 3 19:36:09 2008 +0300 3059207753Smm 3060207753Smm Removed fi from po/LINGUAS. 3061207753Smm 3062207753Smmcommit fcfb86c7770328cfffa2e83b176af9a1ba2d9128 3063207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3064207753SmmDate: Fri Oct 3 07:06:48 2008 +0300 3065207753Smm 3066207753Smm Fixed suffix handling with --format=raw. 3067207753Smm 3068207753Smmcommit bd137524f2f50e30ba054f42f1f6536cd3cee920 3069207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3070207753SmmDate: Thu Oct 2 22:51:46 2008 +0300 3071207753Smm 3072207753Smm Initial changes to change the suffix of the new format to .xz. 3073207753Smm This also fixes a bug related to --suffix option. Some issues 3074207753Smm with suffixes with --format=raw were not fixed. 3075207753Smm 3076207753Smmcommit 4c321a41c482821aa3c4d64cdf886a6ed904d844 3077207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3078207753SmmDate: Tue Sep 30 17:43:55 2008 +0300 3079207753Smm 3080207753Smm Renamed the test files from .lzma suffix to .xz suffix. 3081207753Smm 3082207753Smmcommit 8e60c889a2816a63013a35c99ce26bf28f5b78eb 3083207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3084207753SmmDate: Tue Sep 30 13:57:44 2008 +0300 3085207753Smm 3086207753Smm Fixed Stream decoder to actually use the first_stream variable. 3087207753Smm 3088207753Smmcommit 3bdbc12c054d1961133ee19802af7dd3c3494543 3089207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3090207753SmmDate: Tue Sep 30 13:56:57 2008 +0300 3091207753Smm 3092207753Smm Added one more test file. 3093207753Smm 3094207753Smmcommit a6639022fdc536e5659b070a465221b4cf7c51fa 3095207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3096207753SmmDate: Tue Sep 30 13:34:07 2008 +0300 3097207753Smm 3098207753Smm Fixed uninitialized variable in Stream decoder. 3099207753Smm 3100207753Smmcommit ed3709000a3f17ecefab29b2235d7e2221b00003 3101207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3102207753SmmDate: Tue Sep 30 13:27:28 2008 +0300 3103207753Smm 3104207753Smm Added two test files. 3105207753Smm 3106207753Smmcommit ea560b0ea80525752bdcd0074d24f8dc170bbe29 3107207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3108207753SmmDate: Sat Sep 27 23:49:24 2008 +0300 3109207753Smm 3110207753Smm Fix conflicting Subblock helper filter's ID. 3111207753Smm 3112207753Smmcommit ad97483b6e55142fd8d5c041db057017a891cd95 3113207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3114207753SmmDate: Sat Sep 27 23:37:13 2008 +0300 3115207753Smm 3116207753Smm Changed magic bytes to match the updated spec. Filename 3117207753Smm suffix wasn't changed yet. 3118207753Smm 3119207753Smmcommit 7a57069167e9e63394e2b095ee3a63253fcb51c7 3120207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3121207753SmmDate: Sat Sep 27 23:16:09 2008 +0300 3122207753Smm 3123207753Smm Remove po/fi.po since I'm not keeping it updated for now. 3124207753Smm 3125207753Smmcommit 018ae09df8f2fee5a7374f307df4cb42fad0b81e 3126207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3127207753SmmDate: Sat Sep 27 23:13:54 2008 +0300 3128207753Smm 3129207753Smm Fix also test_compress.sh. 3130207753Smm 3131207753Smmcommit 3a62a5fb85d2eebd8666e64ed5d364d095062858 3132207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3133207753SmmDate: Sat Sep 27 23:01:15 2008 +0300 3134207753Smm 3135207753Smm Fixed compilation of test_filter_flags.c, which was broken by 3136207753Smm 1dcecfb09b55157b8653d747963069c8bed74f04. 3137207753Smm 3138207753Smmcommit c6ca26eef7cd07eba449035514e2b8f9ac3111c0 3139207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3140207753SmmDate: Sat Sep 27 19:11:02 2008 +0300 3141207753Smm 3142207753Smm Updated file format specification. It changes the suffix 3143207753Smm of the new format to .xz and removes the recently added 3144207753Smm LZMA filter. 3145207753Smm 3146207753Smmcommit 1dcecfb09b55157b8653d747963069c8bed74f04 3147207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3148207753SmmDate: Sat Sep 27 19:09:21 2008 +0300 3149207753Smm 3150207753Smm Some API changes, bug fixes, cleanups etc. 3151207753Smm 3152207753Smmcommit 5cc5064cae603b649c64c40125c7dd365de54c9d 3153207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3154207753SmmDate: Sat Sep 27 11:28:49 2008 +0300 3155207753Smm 3156207753Smm Added 7z2lzma.bash. 3157207753Smm 3158207753Smmcommit f147666a5cd15542d4e427da58629f4a71cc38e1 3159207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3160207753SmmDate: Wed Sep 17 22:11:39 2008 +0300 3161207753Smm 3162207753Smm Miscellaneous LZ and LZMA encoder cleanups 3163207753Smm 3164207753Smmcommit 13d68b069849e19c33822cd8996cd6447890abb1 3165207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3166207753SmmDate: Sat Sep 13 13:54:00 2008 +0300 3167207753Smm 3168207753Smm LZ decoder cleanup 3169207753Smm 3170207753Smmcommit 13a74b78e37f16c9096ba5fe1859cc04eaa2f9f7 3171207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3172207753SmmDate: Sat Sep 13 12:10:43 2008 +0300 3173207753Smm 3174207753Smm Renamed constants: 3175207753Smm - LZMA_VLI_VALUE_MAX -> LZMA_VLI_MAX 3176207753Smm - LZMA_VLI_VALUE_UNKNOWN -> LZMA_VLI_UNKNOWN 3177207753Smm - LZMA_HEADER_ERRRO -> LZMA_OPTIONS_ERROR 3178207753Smm 3179207753Smmcommit 320601b2c7b08fc7da9da18d5bf7c3c1a189b080 3180207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3181207753SmmDate: Fri Sep 12 22:41:40 2008 +0300 3182207753Smm 3183207753Smm Improved the Stream Flags handling API. 3184207753Smm 3185207753Smmcommit ec490da5228263b25bf786bb23d1008468f55b30 3186207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3187207753SmmDate: Thu Sep 11 23:10:44 2008 +0300 3188207753Smm 3189207753Smm Simplified debug/known_sizes.c to match the relaxed 3190207753Smm requirements of Block encoder. 3191207753Smm 3192207753Smmcommit 16e8b98f2659347edfa74afdbbb9e73311153cb9 3193207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3194207753SmmDate: Thu Sep 11 23:09:24 2008 +0300 3195207753Smm 3196207753Smm Remove a check from Block encoder that should have already 3197207753Smm been removed in 2ba01bfa755e47ff6af84a978e3c8d63d7d2775e. 3198207753Smm 3199207753Smmcommit 5a710c3805bdf6d7e3c92e954e4e4565b27bcb13 3200207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3201207753SmmDate: Thu Sep 11 20:02:38 2008 +0300 3202207753Smm 3203207753Smm Remove bogus #includes. 3204207753Smm 3205207753Smmcommit 01892b2ca5f69bed0ea746e04b604030d57806bb 3206207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3207207753SmmDate: Thu Sep 11 10:49:14 2008 +0300 3208207753Smm 3209207753Smm Updated THANKS. 3210207753Smm 3211207753Smmcommit 962f2231d49409fe6852e44ffe8c5dbabb04bc7d 3212207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3213207753SmmDate: Thu Sep 11 10:48:12 2008 +0300 3214207753Smm 3215207753Smm Fix a compiler error on big endian systems that don't 3216207753Smm support unaligned memory access. 3217207753Smm 3218207753Smmcommit fa3ab0df8ae7a8a1ad55b52266dc0fd387458671 3219207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3220207753SmmDate: Thu Sep 11 10:46:14 2008 +0300 3221207753Smm 3222207753Smm Silence a compiler warning. 3223207753Smm 3224207753Smmcommit 9373e81e18822db4972819442ea4c2cb9955470b 3225207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3226207753SmmDate: Wed Sep 10 19:16:32 2008 +0300 3227207753Smm 3228207753Smm Bumped version to 4.999.6alpha. 3229207753Smm 3230207753Smmcommit cb072b7c8442ba68bb0c62c0abbbe939794887a3 3231207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3232207753SmmDate: Wed Sep 10 17:02:00 2008 +0300 3233207753Smm 3234207753Smm Check for LZMA_FILTER_RESERVED_START in filter_flags_encoder.c. 3235207753Smm Use LZMA_PROG_ERROR instead of LZMA_HEADER_ERROR if the Filter ID 3236207753Smm is in the reserved range. This allows Block Header encoder to 3237207753Smm detect unallowed Filter IDs, which is good for Stream encoder. 3238207753Smm 3239207753Smmcommit 123ab0acec435c9e9866a99e30482116cfbd9ba5 3240207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3241207753SmmDate: Wed Sep 10 16:44:32 2008 +0300 3242207753Smm 3243207753Smm Filter handling cleanups 3244207753Smm 3245207753Smmcommit 9cfcd0c4f2f865d8fbbb46ea28344a9be0dd8ad1 3246207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3247207753SmmDate: Wed Sep 10 00:33:00 2008 +0300 3248207753Smm 3249207753Smm Comments 3250207753Smm 3251207753Smmcommit 2ba01bfa755e47ff6af84a978e3c8d63d7d2775e 3252207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3253207753SmmDate: Wed Sep 10 00:27:02 2008 +0300 3254207753Smm 3255207753Smm Cleaned up Block encoder and moved the no longer shared 3256207753Smm code from block_private.h to block_decoder.c. Now the Block 3257207753Smm encoder doesn't need compressed_size and uncompressed_size 3258207753Smm from lzma_block structure to be initialized. 3259207753Smm 3260207753Smmcommit 07efcb5a6bc5d7018798ebd728586f84183e7d64 3261207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3262207753SmmDate: Sun Sep 7 10:23:13 2008 +0300 3263207753Smm 3264207753Smm Changed Filter ID of LZMA to 0x20. 3265207753Smm 3266207753Smmcommit 32fe5fa541e82c08e054086279079ae5016bd8d8 3267207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3268207753SmmDate: Sat Sep 6 23:42:50 2008 +0300 3269207753Smm 3270207753Smm Comments 3271207753Smm 3272207753Smmcommit 0a31ed9d5e3cde4feb094b66f3a8b2c074605d84 3273207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3274207753SmmDate: Sat Sep 6 15:14:30 2008 +0300 3275207753Smm 3276207753Smm Some API cleanups 3277207753Smm 3278207753Smmcommit da98df54400998be2a6c3876f9655a3c51b93c10 3279207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3280207753SmmDate: Thu Sep 4 11:53:06 2008 +0300 3281207753Smm 3282207753Smm Added support for raw encoding and decoding to the command 3283207753Smm line tool, and made various cleanups. --lzma was renamed to 3284207753Smm --lzma1 to prevent people from accidentally using LZMA when 3285207753Smm they want LZMA2. 3286207753Smm 3287207753Smmcommit 2496aee8a7741a8a0d42987db41ff2cf1a4bdabd 3288207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3289207753SmmDate: Thu Sep 4 10:39:15 2008 +0300 3290207753Smm 3291207753Smm Don't allow LZMA_SYNC_FLUSH with decoders anymore. There's 3292207753Smm simply nothing that would use it. Allow LZMA_FINISH to the 3293207753Smm decoders, which will usually ignore it (auto decoder and 3294207753Smm Stream decoder being exceptions). 3295207753Smm 3296207753Smmcommit bea301c26d5d52675e11e0236faec0492af98f60 3297207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3298207753SmmDate: Wed Sep 3 17:06:25 2008 +0300 3299207753Smm 3300207753Smm Minor updates to the file format specification. 3301207753Smm 3302207753Smmcommit 9c75b089b4a9e0edcf4cf7970a4383768707d6c8 3303207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3304207753SmmDate: Tue Sep 2 19:33:32 2008 +0300 3305207753Smm 3306207753Smm Command line tool fixes 3307207753Smm 3308207753Smmcommit bab0590504b5aeff460ab4ca8c964dd7c1bad9e4 3309207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3310207753SmmDate: Tue Sep 2 19:31:42 2008 +0300 3311207753Smm 3312207753Smm Auto decoder cleanup 3313207753Smm 3314207753Smmcommit 689602336d126a46b60d791a67decab65e1e81f5 3315207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3316207753SmmDate: Tue Sep 2 19:12:12 2008 +0300 3317207753Smm 3318207753Smm Updated auto decoder to handle LZMA_CONCATENATED when decoding 3319207753Smm LZMA_Alone files. Decoding of concatenated LZMA_Alone files is 3320207753Smm intentionally not supported, so it is better to put this in 3321207753Smm auto decoder than LZMA_Alone decoder. 3322207753Smm 3323207753Smmcommit 80c4158f19904026433eb6f5d5ca98a0ecd4f66c 3324207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3325207753SmmDate: Tue Sep 2 14:56:52 2008 +0300 3326207753Smm 3327207753Smm Stream decoder cleanups 3328207753Smm 3329207753Smmcommit fc681657450ce57be1fe08f7a15d31dcc705e514 3330207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3331207753SmmDate: Tue Sep 2 11:45:39 2008 +0300 3332207753Smm 3333207753Smm Some fixes to LZ encoder. 3334207753Smm 3335207753Smmcommit ede675f9ac1ca82a7d7c290324adba672118bc8d 3336207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3337207753SmmDate: Sun Aug 31 11:47:01 2008 +0300 3338207753Smm 3339207753Smm Fix wrong pointer calculation in LZMA encoder. 3340207753Smm 3341207753Smmcommit 3b34851de1eaf358cf9268922fa0eeed8278d680 3342207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3343207753SmmDate: Thu Aug 28 22:53:15 2008 +0300 3344207753Smm 3345207753Smm Sort of garbage collection commit. :-| Many things are still 3346207753Smm broken. API has changed a lot and it will still change a 3347207753Smm little more here and there. The command line tool doesn't 3348207753Smm have all the required changes to reflect the API changes, so 3349207753Smm it's easy to get "internal error" or trigger assertions. 3350207753Smm 3351207753Smmcommit 57b9a145a527f0716822615e5ed536d33aebd3fc 3352207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3353207753SmmDate: Fri Jun 20 17:16:32 2008 +0300 3354207753Smm 3355207753Smm Fix test_filter_flags to match the new restriction of lc+lp. 3356207753Smm 3357207753Smmcommit eaafc4367c77ec1d910e16d11b4da293969d97a3 3358207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3359207753SmmDate: Fri Jun 20 16:19:54 2008 +0300 3360207753Smm 3361207753Smm Remove some redundant code from LZMA encoder. 3362207753Smm 3363207753Smmcommit 0809c46534fa5664fe35d9e98d95e87312ed130e 3364207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3365207753SmmDate: Thu Jun 19 16:35:08 2008 +0300 3366207753Smm 3367207753Smm Add limit of lc + lp <= 4. Now we can allocate the 3368207753Smm literal coder as part of the main LZMA encoder or 3369207753Smm decoder structure. 3370207753Smm 3371207753Smm Make the LZMA decoder to rely on the current internal API 3372207753Smm to free the allocated memory in case an error occurs. 3373207753Smm 3374207753Smmcommit d25ab1b96178f06a0e724f58e3cd68300b2b1275 3375207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3376207753SmmDate: Wed Jun 18 21:45:19 2008 +0300 3377207753Smm 3378207753Smm Comments 3379207753Smm 3380207753Smmcommit 6368a2fa5901c75864be5171dd57a50af7adbb41 3381207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3382207753SmmDate: Wed Jun 18 19:19:02 2008 +0300 3383207753Smm 3384207753Smm Delete old code that was supposed to be already deleted 3385207753Smm from test_block_header.c. 3386207753Smm 3387207753Smmcommit 7d17818cec8597f847b0a2537fde991bbc3d9e96 3388207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3389207753SmmDate: Wed Jun 18 18:02:10 2008 +0300 3390207753Smm 3391207753Smm Update the code to mostly match the new simpler file format 3392207753Smm specification. Simplify things by removing most of the 3393207753Smm support for known uncompressed size in most places. 3394207753Smm There are some miscellaneous changes here and there too. 3395207753Smm 3396207753Smm The API of liblzma has got many changes and still some 3397207753Smm more will be done soon. While most of the code has been 3398207753Smm updated, some things are not fixed (the command line tool 3399207753Smm will choke with invalid filter chain, if nothing else). 3400207753Smm 3401207753Smm Subblock filter is somewhat broken for now. It will be 3402207753Smm updated once the encoded format of the Subblock filter 3403207753Smm has been decided. 3404207753Smm 3405207753Smmcommit bf6348d1a3ff09fdc06940468f318f75ffa6af11 3406207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3407207753SmmDate: Tue Jun 17 15:03:46 2008 +0300 3408207753Smm 3409207753Smm Update the file format specification draft. The new one is 3410207753Smm a lot simpler than the previous versions, but it also means 3411207753Smm that the existing code will change a lot. 3412207753Smm 3413207753Smmcommit 803194ddd26f01ff60ba4e9924c6087a56b29827 3414207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3415207753SmmDate: Wed Jun 11 21:42:47 2008 +0300 3416207753Smm 3417207753Smm Fix uninitialized variable in LZMA encoder. This was 3418207753Smm introduced in 369f72fd656f537a9a8e06f13e6d0d4c242be22f. 3419207753Smm 3420207753Smmcommit 0ea98e52ba87453497b1355c51f13bad55c8924a 3421207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3422207753SmmDate: Wed Jun 11 15:08:44 2008 +0300 3423207753Smm 3424207753Smm Improve command line integer parsing a little in lzma and 3425207753Smm lzmadec to make them accept also KiB in addition Ki etc. 3426207753Smm Fix also memory usage information in lzmadec --help. 3427207753Smm 3428207753Smmcommit 436fa5fae96d4e35759aed33066060f09ee8c6ef 3429207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3430207753SmmDate: Tue Jun 10 20:36:12 2008 +0300 3431207753Smm 3432207753Smm s/decompressed/compressed/ in the command line tool's 3433207753Smm error message. 3434207753Smm 3435207753Smmcommit 369f72fd656f537a9a8e06f13e6d0d4c242be22f 3436207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3437207753SmmDate: Sun Jun 1 12:48:17 2008 +0300 3438207753Smm 3439207753Smm Fix a buffer overflow in the LZMA encoder. It was due to my 3440207753Smm misunderstanding of the code. There's no tiny fix for this 3441207753Smm problem, so I also cleaned up the code in general. 3442207753Smm 3443207753Smm This reduces the speed of the encoder 2-5 % in the fastest 3444207753Smm compression mode ("lzma -1"). High compression modes should 3445207753Smm have no noticeable performance difference. 3446207753Smm 3447207753Smm This commit breaks things (especially LZMA_SYNC_FLUSH) but I 3448207753Smm will fix them once the new format and LZMA2 has been roughly 3449207753Smm implemented. Plain LZMA won't support LZMA_SYNC_FLUSH at all 3450207753Smm and won't be supported in the new .lzma format. This may 3451207753Smm change still but this is what it looks like now. 3452207753Smm 3453207753Smm Support for known uncompressed size (that is, LZMA or LZMA2 3454207753Smm without EOPM) is likely to go away. This means there will 3455207753Smm be API changes. 3456207753Smm 3457207753Smmcommit e55e0e873ce2511325749d415ae547d62ab5f00d 3458207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3459207753SmmDate: Fri May 30 11:53:41 2008 +0300 3460207753Smm 3461207753Smm Typo fixes from meyering. 3462207753Smm 3463207753Smmcommit ed6664146fcbe9cc4a3b23b31632182ed812ea93 3464207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3465207753SmmDate: Sun May 11 14:24:42 2008 +0300 3466207753Smm 3467207753Smm Remove support for pre-C89 libc versions that lack memcpy, 3468207753Smm memmove, and memset. 3469207753Smm 3470207753Smmcommit b09464bf9ae694afc2d1dc26188ac4e2e8af0a63 3471207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3472207753SmmDate: Sun May 11 14:17:21 2008 +0300 3473207753Smm 3474207753Smm Improved C99 compiler detection in configure.ac. It will 3475207753Smm pass -std=gnu99 instead of -std=c99 to GCC now, but -pedantic 3476207753Smm should still give warnings about GNU extensions like before 3477207753Smm except with some special keywords like asm(). 3478207753Smm 3479207753Smmcommit 11de5d5267f7a0a7f0a4d34eec147e65eaf9f9cf 3480207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3481207753SmmDate: Tue May 6 15:15:07 2008 +0300 3482207753Smm 3483207753Smm Bunch of grammar fixes from meyering. 3484207753Smm 3485207753Smmcommit dc192b6343ae36276c85fcf7ef6006147816eadc 3486207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3487207753SmmDate: Tue May 6 13:41:05 2008 +0300 3488207753Smm 3489207753Smm Typo fix 3490207753Smm 3491207753Smmcommit 944b62b93239b27b338d117f2668c0e95849659b 3492207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3493207753SmmDate: Sun May 4 22:29:27 2008 +0300 3494207753Smm 3495207753Smm Don't print an error message on broken pipe unless --verbose 3496207753Smm is used. 3497207753Smm 3498207753Smmcommit 8e074349e47ea6832b8fdf9244e581d453733433 3499207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3500207753SmmDate: Wed Apr 30 22:16:17 2008 +0300 3501207753Smm 3502207753Smm Fix a crash with --format=alone if other filters than LZMA 3503207753Smm are specified on the command line. 3504207753Smm 3505207753Smmcommit 2f361ac19b7fd3abcd362de4d470e6a9eb495b73 3506207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3507207753SmmDate: Mon Apr 28 17:08:27 2008 +0300 3508207753Smm 3509207753Smm Updated THANKS. 3510207753Smm 3511207753Smmcommit 3be21fb12f4cec2cf07799e8960382f4cb375369 3512207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3513207753SmmDate: Mon Apr 28 17:06:34 2008 +0300 3514207753Smm 3515207753Smm Fixed wrong spelling "limitter" to "limiter". This affects 3516207753Smm liblzma's API. 3517207753Smm 3518207753Smmcommit beeb81060821dfec4e7898e0d44b7900dcb2215e 3519207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3520207753SmmDate: Fri Apr 25 15:39:50 2008 +0300 3521207753Smm 3522207753Smm Prevent LZ encoder from hanging with known uncompressed 3523207753Smm size. The "fix" breaks LZMA_SYNC_FLUSH at end of stream 3524207753Smm with known uncompressed size, but since it currently seems 3525207753Smm likely that support for encoding with known uncompressed 3526207753Smm size will go away anyway, I'm not fixing this problem now. 3527207753Smm 3528207753Smmcommit c324325f9f13cdeb92153c5d00962341ba070ca2 3529207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3530207753SmmDate: Fri Apr 25 13:58:56 2008 +0300 3531207753Smm 3532207753Smm Removed src/liblzma/common/sysdefs.h symlink, which was 3533207753Smm annoying, because "make dist" put two copies of sysdefs.h 3534207753Smm into the tarball instead of the symlink. 3535207753Smm 3536207753Smmcommit d3ba30243c75c13d094de1793f9c58acdbacc692 3537207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3538207753SmmDate: Fri Apr 25 13:41:29 2008 +0300 3539207753Smm 3540207753Smm Added memusage.c to debug directory. 3541207753Smm 3542207753Smmcommit 8f804c29aa8471ccd6438ddca254092b8869ca52 3543207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3544207753SmmDate: Fri Apr 25 13:32:35 2008 +0300 3545207753Smm 3546207753Smm Bumped version number to 4.999.3alpha. It will become 5.0.0 3547207753Smm once we have a stable release (won't be very soon). The 3548207753Smm version number is no longer related to version of LZMA SDK. 3549207753Smm 3550207753Smm Made some small Automake-related changes to toplevel 3551207753Smm Makefile.am and configure.ac. 3552207753Smm 3553207753Smmcommit c99037ea10f121cbacf60c37a36c29768ae53447 3554207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3555207753SmmDate: Thu Apr 24 20:25:39 2008 +0300 3556207753Smm 3557207753Smm Fix a memory leak by calling free(extra->data) in 3558207753Smm lzma_extra_free(). 3559207753Smm 3560207753Smmcommit 22ba3b0b5043fa481903482ce85015fe775939e5 3561207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3562207753SmmDate: Thu Apr 24 20:23:05 2008 +0300 3563207753Smm 3564207753Smm Make unlzma and lzcat symlinks. 3565207753Smm 3566207753Smmcommit 17c36422d4cbc2c70d5c83ec389406f92cd9e85e 3567207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3568207753SmmDate: Thu Apr 24 20:20:27 2008 +0300 3569207753Smm 3570207753Smm Fixed a bug in command line option parsing. 3571207753Smm 3572207753Smmcommit 283f939974c32c47f05d495e8dea455ec646ed64 3573207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3574207753SmmDate: Thu Apr 24 20:19:20 2008 +0300 3575207753Smm 3576207753Smm Added two assert()s. 3577207753Smm 3578207753Smmcommit eb348a60b6e19a7c093f892434f23c4756973ffd 3579207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3580207753SmmDate: Thu Apr 24 19:22:53 2008 +0300 3581207753Smm 3582207753Smm Switch to uint16_t as the type of range coder probabilities. 3583207753Smm 3584207753Smmcommit 6c5306e312bcfd254cf654f88c04e34ba786df3d 3585207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3586207753SmmDate: Thu Apr 24 18:39:57 2008 +0300 3587207753Smm 3588207753Smm Fix wrong return type (uint32_t -> bool). 3589207753Smm 3590207753Smmcommit 712cfe3ebfd24df24d8896b1315c53c3bc4369c8 3591207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3592207753SmmDate: Thu Apr 24 18:38:00 2008 +0300 3593207753Smm 3594207753Smm Fix data corruption in LZ encoder with LZMA_SYNC_FLUSH. 3595207753Smm 3596207753Smmcommit bc04486e368d20b3027cde625267762aae063965 3597207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3598207753SmmDate: Thu Apr 24 17:33:01 2008 +0300 3599207753Smm 3600207753Smm Fix fastpos problem in Makefile.am when built with --enable-small. 3601207753Smm 3602207753Smmcommit 7ab493924e0ed590a5121a15ee54038d238880d3 3603207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3604207753SmmDate: Thu Apr 24 17:30:51 2008 +0300 3605207753Smm 3606207753Smm Use 64-bit integer as range encoder's cache size. This fixes a 3607207753Smm theoretical data corruption, which should be very hard to trigger 3608207753Smm even intentionally. 3609207753Smm 3610207753Smmcommit 641998c3e1ecc8b598fe0eb051fab8b9535c291b 3611207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3612207753SmmDate: Mon Mar 24 16:38:40 2008 +0200 3613207753Smm 3614207753Smm Replaced the range decoder optimization that used arithmetic 3615207753Smm right shift with as fast version that doesn't need 3616207753Smm arithmetic right shift. Removed the related check from 3617207753Smm configure.ac. 3618207753Smm 3619207753Smmcommit ad999efd279d95f1e7ac555b14170e8e9020488c 3620207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3621207753SmmDate: Sat Mar 22 14:39:34 2008 +0200 3622207753Smm 3623207753Smm Take advantage of arithmetic right shift in range decoder. 3624207753Smm 3625207753Smmcommit 03e0e8a0d7228b6ff1f0af39e2c040a4e425973d 3626207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3627207753SmmDate: Sat Mar 22 14:18:29 2008 +0200 3628207753Smm 3629207753Smm Added autoconf check to detect if we can use arithmetic 3630207753Smm right shift for optimizations. 3631207753Smm 3632207753Smmcommit 7521bbdc83acab834594a22bec50c8e1bd836298 3633207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3634207753SmmDate: Sat Mar 22 01:26:36 2008 +0200 3635207753Smm 3636207753Smm Update a comment to use the variable name rep_len_decoder. 3637207753Smm 3638207753Smm (And BTW, the previous commit actually did change the 3639207753Smm program logic slightly.) 3640207753Smm 3641207753Smmcommit 63b74d000eedaebb8485f623e56864ff5ab71064 3642207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3643207753SmmDate: Sat Mar 22 00:57:33 2008 +0200 3644207753Smm 3645207753Smm Demystified the "state" variable in LZMA code. Use the 3646207753Smm word literal instead of char for better consistency. 3647207753Smm There are still some names with _char instead of _literal 3648207753Smm in lzma_optimum, these may be changed later. 3649207753Smm 3650207753Smm Renamed length coder variables. 3651207753Smm 3652207753Smm This commit doesn't change the program logic. 3653207753Smm 3654207753Smmcommit e6eb0a26757e851cef62b9440319a8e73b015cb9 3655207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3656207753SmmDate: Fri Mar 14 23:16:11 2008 +0200 3657207753Smm 3658207753Smm Fix data corruption in LZMA encoder. Note that this bug was 3659207753Smm specific to liblzma and was *not* present in LZMA SDK. 3660207753Smm 3661207753Smmcommit 7d516f5129e4373a6d57249d7f608c634c66bf12 3662207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3663207753SmmDate: Fri Mar 14 21:32:37 2008 +0200 3664207753Smm 3665207753Smm Fix a comment API header. 3666207753Smm 3667207753Smmcommit 748d6e4274921a350bd0a317380309717441ef9c 3668207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3669207753SmmDate: Wed Mar 12 23:14:50 2008 +0200 3670207753Smm 3671207753Smm Make lzma_stream.next_in const. Let's see if anyone complains. 3672207753Smm 3673207753Smmcommit bfde3b24a5ae25ce53c854762b6148952386b025 3674207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3675207753SmmDate: Tue Mar 11 15:35:34 2008 +0200 3676207753Smm 3677207753Smm Apply a minor speed optimization to LZMA decoder. 3678207753Smm 3679207753Smmcommit f310c50286d9e4e9c6170bb65348c9bb430a65b4 3680207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3681207753SmmDate: Tue Mar 11 15:17:16 2008 +0200 3682207753Smm 3683207753Smm Initialize the last byte of the dictionary to zero so that 3684207753Smm lz_get_byte(lz, 0) returns zero. This was broken by 3685207753Smm 1a3b21859818e4d8e89a1da99699233c1bfd197d. 3686207753Smm 3687207753Smmcommit 5ead36cf7f823093672a4e43c3180b38c9abbaff 3688207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3689207753SmmDate: Mon Mar 10 15:57:55 2008 +0200 3690207753Smm 3691207753Smm Really fix the price count initialization. 3692207753Smm 3693207753Smmcommit d4d7feb83d1a1ded8f662a82e21e053841ca726c 3694207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3695207753SmmDate: Mon Mar 10 13:47:17 2008 +0200 3696207753Smm 3697207753Smm Updated THANKS. 3698207753Smm 3699207753Smmcommit 0541c5ea63ef3c0ff85eeddb0a420e56b0c65258 3700207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3701207753SmmDate: Mon Mar 10 13:46:48 2008 +0200 3702207753Smm 3703207753Smm Initialize align_price_count and match_price_count in 3704207753Smm lzma_encoder_init.c. While we don't call 3705207753Smm fill_distances_prices() and fill_align_prices() in 3706207753Smm lzma_lzma_encoder_init(), we still need to initialize 3707207753Smm these two variables so that the fill functions get 3708207753Smm called in lzma_encoder_getoptimum.c in the beginning 3709207753Smm of a stream. 3710207753Smm 3711207753Smmcommit 596fa1fac72823e4ef5bc26bb53f9090445bf748 3712207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3713207753SmmDate: Mon Mar 10 13:44:29 2008 +0200 3714207753Smm 3715207753Smm Always initialize lz->temp_size in lz_decoder.c. temp_size did 3716207753Smm get initialized as a side-effect after allocating a new decoder, 3717207753Smm but not when the decoder was reused. 3718207753Smm 3719207753Smmcommit 45e43e169527e7a98a8c8a821d37bf25822b764d 3720207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3721207753SmmDate: Mon Mar 10 13:41:25 2008 +0200 3722207753Smm 3723207753Smm Don't fill allocated memory with 0xFD when debugging is 3724207753Smm enabled. It hides errors from Valgrind. 3725207753Smm 3726207753Smmcommit c0e19e0662205f81a86da8903cdc325d50635870 3727207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3728207753SmmDate: Thu Feb 28 10:24:31 2008 +0200 3729207753Smm 3730207753Smm Remove two redundant validity checks from the LZMA decoder. 3731207753Smm These are already checked elsewhere, so omitting these 3732207753Smm gives (very) tiny speed up. 3733207753Smm 3734207753Smmcommit de7485806284d1614095ae8cb2ebbb5d74c9ac45 3735207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3736207753SmmDate: Wed Feb 6 13:25:32 2008 +0200 3737207753Smm 3738207753Smm Tiny clean up to file-format.txt. 3739207753Smm 3740207753Smmcommit 1a3b21859818e4d8e89a1da99699233c1bfd197d 3741207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3742207753SmmDate: Sat Feb 2 14:51:06 2008 +0200 3743207753Smm 3744207753Smm Don't memzero() the history buffer when initializing LZ 3745207753Smm decoder. There's no danger of information leak here, so 3746207753Smm it isn't required. Doing memzero() takes a lot of time 3747207753Smm with large dictionaries, which could make it easier to 3748207753Smm construct DoS attack to consume too much CPU time. 3749207753Smm 3750207753Smmcommit 7e796e312bf644ea95aea0ff85480f47cfa30fc0 3751207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3752207753SmmDate: Fri Feb 1 08:39:26 2008 +0200 3753207753Smm 3754207753Smm Do uncompressed size validation in raw encoder. This way 3755207753Smm it gets done for not only raw encoder, but also Block 3756207753Smm and LZMA_Alone encoders. 3757207753Smm 3758207753Smmcommit 7dd48578a3853e0cfab9f1830bc30927173ec4bc 3759207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3760207753SmmDate: Fri Feb 1 08:32:05 2008 +0200 3761207753Smm 3762207753Smm Avoid unneeded function call in raw_common.c. 3763207753Smm 3764207753Smmcommit b596fac963c3ff96f615d4d9b427a213ec341211 3765207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3766207753SmmDate: Sat Jan 26 21:42:38 2008 +0200 3767207753Smm 3768207753Smm Updated THANKS. 3769207753Smm 3770207753Smmcommit e9f6e9c075ad93141a568d94f7d4eb0f2edbd6c2 3771207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3772207753SmmDate: Sat Jan 26 21:40:23 2008 +0200 3773207753Smm 3774207753Smm Added note.GNU-stack to x86 assembler files. It is needed 3775207753Smm when using non-executable stack. 3776207753Smm 3777207753Smmcommit 4c7ad179c78f97f68ad548cb40a9dfa6871655ae 3778207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3779207753SmmDate: Sat Jan 26 19:12:50 2008 +0200 3780207753Smm 3781207753Smm Added api/lzma/easy.h. I had forgot to add this to the 3782207753Smm git repo. Thanks to Stephan Kulow. 3783207753Smm 3784207753Smmcommit 288b232f54c3692cd36f471d4042f51daf3ea79f 3785207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3786207753SmmDate: Sat Jan 26 11:09:17 2008 +0200 3787207753Smm 3788207753Smm Added more test files. 3789207753Smm 3790207753Smmcommit c467b0defccf233d0c79234407bc38d7d09574d3 3791207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3792207753SmmDate: Sat Jan 26 10:47:55 2008 +0200 3793207753Smm 3794207753Smm Added more test files. 3795207753Smm 3796207753Smmcommit f9842f712732c482f2def9f24437851e57dd83f8 3797207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3798207753SmmDate: Sat Jan 26 00:25:34 2008 +0200 3799207753Smm 3800207753Smm Return LZMA_HEADER_ERROR if LZMA_SYNC_FLUSH is used with any 3801207753Smm of the so called simple filters. If there is demand, limited 3802207753Smm support for LZMA_SYNC_FLUSH may be added in future. 3803207753Smm 3804207753Smm After this commit, using LZMA_SYNC_FLUSH shouldn't cause 3805207753Smm undefined behavior in any situation. 3806207753Smm 3807207753Smmcommit e988ea1d1a286dd0f27af0657f9665d5cd8573aa 3808207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3809207753SmmDate: Fri Jan 25 23:50:35 2008 +0200 3810207753Smm 3811207753Smm Added more Multi-Block test files. Improved some 3812207753Smm descriptions in the test files' README. 3813207753Smm 3814207753Smmcommit 4441e004185cd4c61bda184010eca5924c9dec87 3815207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3816207753SmmDate: Fri Jan 25 23:12:36 2008 +0200 3817207753Smm 3818207753Smm Combine lzma_options_block validation needed by both Block 3819207753Smm encoder and decoder, and put the shared things to 3820207753Smm block_private.h. Improved the checks a little so that 3821207753Smm they may detect too big Compressed Size at initialization 3822207753Smm time if lzma_options_block.total_size or .total_limit is 3823207753Smm known. 3824207753Smm 3825207753Smm Allow encoding and decoding Blocks with combinations of 3826207753Smm fields that are not allowed by the file format specification. 3827207753Smm Doing this requires that the application passes such a 3828207753Smm combination in lzma_options_lzma; liblzma doesn't do that, 3829207753Smm but it's not impossible that someone could find them useful 3830207753Smm in some custom file format. 3831207753Smm 3832207753Smmcommit bf4200c818fcf9102e56328d39cde91bfa13cfb6 3833207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3834207753SmmDate: Fri Jan 25 19:21:22 2008 +0200 3835207753Smm 3836207753Smm Added test_memlimit.c. 3837207753Smm 3838207753Smmcommit 7b8fc7e6b501a32a36636dac79ecb57099269005 3839207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3840207753SmmDate: Fri Jan 25 19:20:28 2008 +0200 3841207753Smm 3842207753Smm Improved the memory limitter: 3843207753Smm - Added lzma_memlimit_max() and lzma_memlimit_reached() 3844207753Smm API functions. 3845207753Smm - Added simple estimation of malloc()'s memory usage 3846207753Smm overhead. 3847207753Smm - Fixed integer overflow detection in lzma_memlimit_alloc(). 3848207753Smm - Made some white space cleanups and added more comments. 3849207753Smm 3850207753Smm The description of lzma_memlimit_max() in memlimit.h is bad 3851207753Smm and should be improved. 3852207753Smm 3853207753Smmcommit e0c3d0043da2f670cfdb1abbb3223d5a594ad8db 3854207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3855207753SmmDate: Fri Jan 25 13:55:52 2008 +0200 3856207753Smm 3857207753Smm Use more parenthesis in succeed() macro in tests/tests.h. 3858207753Smm 3859207753Smmcommit 1fd76d488179580d37f31ee11948f4932aed31fd 3860207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3861207753SmmDate: Thu Jan 24 14:49:34 2008 +0200 3862207753Smm 3863207753Smm Added more Multi-Block Stream test files. 3864207753Smm 3865207753Smmcommit 6e27b1098a28f4ce09bfa6df68ad94182dfc2936 3866207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3867207753SmmDate: Thu Jan 24 00:46:05 2008 +0200 3868207753Smm 3869207753Smm Added bunch of test files containing Multi-Block Streams. 3870207753Smm 3871207753Smmcommit db9df0a9609c01a00a227329fb96e983971040f5 3872207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3873207753SmmDate: Wed Jan 23 23:43:00 2008 +0200 3874207753Smm 3875207753Smm Fix decoding of empty Metadata Blocks, that don't have 3876207753Smm even the Metadata Flags field. Earlier the code allowed 3877207753Smm such files; now they are prohibited as the file format 3878207753Smm specification requires. 3879207753Smm 3880207753Smmcommit 765f0b05f6e95ed9194fb90819cee189ebbac36b 3881207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3882207753SmmDate: Wed Jan 23 23:38:18 2008 +0200 3883207753Smm 3884207753Smm Fix a bug related to 99e12af4e2b866c011fe0106cd1e0bfdcc8fe9c6. 3885207753Smm lzma_metadata.header_metadata_size was not properly set to 3886207753Smm zero if the Metadata had only the Metadata Flags field. 3887207753Smm 3888207753Smmcommit 3a7cc5c3dec7b078941f961b0393b86c418883b6 3889207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3890207753SmmDate: Wed Jan 23 23:35:49 2008 +0200 3891207753Smm 3892207753Smm Fix decoding of Extra Records that have empty Data. 3893207753Smm 3894207753Smmcommit e5fdec93e273855c1bcc2579b83cfb481a9a1492 3895207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3896207753SmmDate: Wed Jan 23 22:02:38 2008 +0200 3897207753Smm 3898207753Smm Add the trailing '\0' to lzma_extra.data as the API header 3899207753Smm already documents. 3900207753Smm 3901207753Smmcommit ed40dc5a2c28a8dfccab8c165b3780738eeef93e 3902207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3903207753SmmDate: Wed Jan 23 21:21:21 2008 +0200 3904207753Smm 3905207753Smm Added debug/full_flush.c. 3906207753Smm 3907207753Smmcommit ae0cd09a666a1682da8fc09487322227679e218d 3908207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3909207753SmmDate: Wed Jan 23 21:05:33 2008 +0200 3910207753Smm 3911207753Smm Return LZMA_STREAM_END instead of LZMA_OK if 3912207753Smm LZMA_SYNC_FLUSH or LZMA_FULL_FLUSH is used when 3913207753Smm there's no unfinished Block open. 3914207753Smm 3915207753Smmcommit 0e80ded13dfceb98f9494cbb5381a95eb44d03db 3916207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3917207753SmmDate: Wed Jan 23 20:05:01 2008 +0200 3918207753Smm 3919207753Smm Added bad-single-none-footer_filter_flags.lzma and 3920207753Smm bad-single-none-too_long_vli.lzma. 3921207753Smm 3922207753Smmcommit 8c8eb14055d8dd536b1b1c58fb284d34bb8ed1dd 3923207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3924207753SmmDate: Wed Jan 23 13:42:35 2008 +0200 3925207753Smm 3926207753Smm Fixed a typo. 3927207753Smm 3928207753Smmcommit 980f65a9a10160c4d105767871e3002b9aaba3e0 3929207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3930207753SmmDate: Wed Jan 23 13:40:45 2008 +0200 3931207753Smm 3932207753Smm Fix a memory leak in the Subblock encoder. 3933207753Smm 3934207753Smmcommit 99e12af4e2b866c011fe0106cd1e0bfdcc8fe9c6 3935207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3936207753SmmDate: Wed Jan 23 13:36:07 2008 +0200 3937207753Smm 3938207753Smm Fix Size of Header Metadata Block handling. Now 3939207753Smm lzma_metadata.header_metadata_size == LZMA_VLI_VALUE_UNKNOWN 3940207753Smm is not allowed at all. To indicate missing Header Metadata 3941207753Smm Block, header_metadata_size must be set to zero. This is 3942207753Smm what Metadata decoder does after this patch too. 3943207753Smm 3944207753Smm Note that other missing fields in lzma_metadata are still 3945207753Smm indicated with LZMA_VLI_VALUE_UNKNOWN. This isn't as 3946207753Smm illogical as it sounds at first, because missing Size of 3947207753Smm Header Metadata Block means that Header Metadata Block is 3948207753Smm not present in the Stream. With other Metadata fields, 3949207753Smm a missing field means only that the value is unknown. 3950207753Smm 3951207753Smmcommit 58b78ab20c1bcced45cf71ae6684868fc90b4b81 3952207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3953207753SmmDate: Wed Jan 23 13:15:55 2008 +0200 3954207753Smm 3955207753Smm Fix a memory leak in metadata_decoder.c. 3956207753Smm 3957207753Smmcommit 4d8cdbdab44400fd98f0f18a0f701e27cd1acdae 3958207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3959207753SmmDate: Wed Jan 23 13:13:58 2008 +0200 3960207753Smm 3961207753Smm Fix the fix 863028cb7ad6d8d0455fa69348f56b376d7b908f which 3962207753Smm just moved to problem. Now it's really fixed. 3963207753Smm 3964207753Smmcommit 67321de963ccf69410b3868b8e31534fe18a90de 3965207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3966207753SmmDate: Wed Jan 23 00:21:04 2008 +0200 3967207753Smm 3968207753Smm Take advantage of return_if_error() macro in 3969207753Smm lzma_info_metadata_set() in info.c. 3970207753Smm 3971207753Smmcommit 863028cb7ad6d8d0455fa69348f56b376d7b908f 3972207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3973207753SmmDate: Wed Jan 23 00:18:32 2008 +0200 3974207753Smm 3975207753Smm Fixed a dangling pointer that caused invalid free(). 3976207753Smm 3977207753Smmcommit cf49f42a6bd40143f54a6b10d6e605599e958c0b 3978207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3979207753SmmDate: Tue Jan 22 22:49:24 2008 +0200 3980207753Smm 3981207753Smm Added lzma_easy_* functions. These should make using 3982207753Smm liblzma as easy as using zlib, because the easy API 3983207753Smm don't require developers to know any fancy LZMA options. 3984207753Smm 3985207753Smm Note that Multi-Block Stream encoding is currently broken. 3986207753Smm The easy API should be OK, the bug(s) are elsewhere. 3987207753Smm 3988207753Smmcommit 1747b85a43abc1c3f152dbd349be2ef4089ecf6a 3989207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3990207753SmmDate: Tue Jan 22 21:16:22 2008 +0200 3991207753Smm 3992207753Smm Fix Multi-Block Stream encoder's EOPM usage. 3993207753Smm 3994207753Smmcommit 0ed6f1adcea540fb9593ca115d36de537f7f0dc6 3995207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3996207753SmmDate: Tue Jan 22 00:15:11 2008 +0200 3997207753Smm 3998207753Smm Made lzma_extra pointers const in lzma_options_stream. 3999207753Smm 4000207753Smmcommit 305afa38f64c75af8e81c4167e2d8fa8d85b53a4 4001207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4002207753SmmDate: Sun Jan 20 20:15:21 2008 +0200 4003207753Smm 4004207753Smm Updated debug/sync_flush.c. 4005207753Smm 4006207753Smmcommit d53e9b77054cfade6a643e77d085273a348b189c 4007207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4008207753SmmDate: Sun Jan 20 20:14:26 2008 +0200 4009207753Smm 4010207753Smm Added debug/repeat.c. 4011207753Smm 4012207753Smmcommit 107259e306bcfc2336a0fb870fb58034c28faa52 4013207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4014207753SmmDate: Sun Jan 20 20:12:58 2008 +0200 4015207753Smm 4016207753Smm Fix alignment handling bugs in Subblock encoder. 4017207753Smm 4018207753Smm This leaves one known alignment bug unfixed: If repeat count 4019207753Smm doesn't fit into 28-bit integer, the encoder has to split 4020207753Smm this to multiple Subblocks with Subblock Type `Repeating Data'. 4021207753Smm The extra Subblocks may have wrong alignment. Correct alignment 4022207753Smm is restored after the split Repeating Data has been completely 4023207753Smm written out. 4024207753Smm 4025207753Smm Since the encoder doesn't even try to fix the alignment unless 4026207753Smm the size of Data is at least 4 bytes, to trigger this bug you 4027207753Smm need at least 4 GiB of repeating data with sequence length of 4028207753Smm 4 or more bytes. Since the worst thing done by this bug is 4029207753Smm misaligned data (no data corruption), this bug simply isn't 4030207753Smm worth fixing, because a proper fix isn't simple. 4031207753Smm 4032207753Smmcommit e141fe18950400faaa3503ff88ac20eacd73e88c 4033207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4034207753SmmDate: Sat Jan 19 21:16:33 2008 +0200 4035207753Smm 4036207753Smm Implemented LZMA_SYNC_FLUSH support to the Subblock encoder. 4037207753Smm The API for handing Subfilters was changed to make it 4038207753Smm consistent with LZMA_SYNC_FLUSH. 4039207753Smm 4040207753Smm A few sanity checks were added for Subfilter handling. Some 4041207753Smm small bugs were fixed. More comments were added. 4042207753Smm 4043207753Smmcommit 23c227a864a3b69f38c6a74306161d4e6918d1cc 4044207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4045207753SmmDate: Sat Jan 19 15:19:21 2008 +0200 4046207753Smm 4047207753Smm Revised the Delta filter implementation. The initialization 4048207753Smm function is still shared between encoder and decoder, but the 4049207753Smm actual coding is in separate files for encoder and decoder. 4050207753Smm 4051207753Smm There are now separate functions for the actual delta 4052207753Smm calculation depending on if Delta is the last filter in the 4053207753Smm chain or not. If it is the last, the new code copies the 4054207753Smm data from input to output buffer and does the delta 4055207753Smm calculation at the same time. The old code first copied the 4056207753Smm data, then did the delta in the target buffer, which required 4057207753Smm reading through the data twice. 4058207753Smm 4059207753Smm Support for LZMA_SYNC_FLUSH was added to the Delta encoder. 4060207753Smm This doesn't change anything in the file format. 4061207753Smm 4062207753Smmcommit 61dc82f3e306b25ce3cd3d529df9ec7a0ec04b73 4063207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4064207753SmmDate: Fri Jan 18 20:18:08 2008 +0200 4065207753Smm 4066207753Smm Added the debug directory and the first debug tool 4067207753Smm (sync_flush). These tools are not built unless the 4068207753Smm user runs "make" in the debug directory. 4069207753Smm 4070207753Smmcommit 0ae3208db94585eb8294b97ded387de0a3a07646 4071207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4072207753SmmDate: Fri Jan 18 20:13:00 2008 +0200 4073207753Smm 4074207753Smm Added test files to test usage of flush marker in LZMA. 4075207753Smm 4076207753Smmcommit ab5feaf1fcc146ef9fd39360c53c290bec39524e 4077207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4078207753SmmDate: Fri Jan 18 20:02:52 2008 +0200 4079207753Smm 4080207753Smm Fix LZMA_SYNC_FLUSH handling in LZ and LZMA encoders. 4081207753Smm That code is now almost completely in LZ coder, where 4082207753Smm it can be shared with other LZ77-based algorithms in 4083207753Smm future. 4084207753Smm 4085207753Smmcommit 079c4f7fc26b3d0b33d9ae7536697b45f3b73585 4086207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4087207753SmmDate: Fri Jan 18 17:21:24 2008 +0200 4088207753Smm 4089207753Smm Don't add -g to CFLAGS when --enable-debug is specified. 4090207753Smm It's the job of the user to put that in CFLAGS. 4091207753Smm 4092207753Smmcommit 61d1784d8f1761d979a6da6e223e279ca33815e6 4093207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4094207753SmmDate: Fri Jan 18 14:17:37 2008 +0200 4095207753Smm 4096207753Smm Set stdin and stdout to binary mode on Windows. This patch is 4097207753Smm a forward port of b7b22fcb979a16d3a47c8001f058c9f7d4416068 4098207753Smm from lzma-utils-legacy.git. I don't know if the new code base 4099207753Smm builds on Windows, but this is a start. 4100207753Smm 4101207753Smmcommit c9cba976913e55ff9aac8a8133cc94416c7c1c9c 4102207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4103207753SmmDate: Fri Jan 18 00:50:29 2008 +0200 4104207753Smm 4105207753Smm Added test_compress.sh and bunch of files needed by it. 4106207753Smm This new set of tests compress and decompress several 4107207753Smm test files with many different compression options. 4108207753Smm This set of tests will be extended later. 4109207753Smm 4110207753Smmcommit 33be3c0e24d8f43376ccf71cc77d53671e792f07 4111207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4112207753SmmDate: Thu Jan 17 18:56:53 2008 +0200 4113207753Smm 4114207753Smm Subblock decoder: Don't exit the main loop in decode_buffer() 4115207753Smm too early if we hit End of Input while decoding a Subblock of 4116207753Smm type Repeating Data. To keep the loop termination condition 4117207753Smm elegant, the order of enumerations in coder->sequence were 4118207753Smm changed. 4119207753Smm 4120207753Smm To keep the case-labels in roughly the same order as the 4121207753Smm enumerations in coder->sequence, large chunks of code was 4122207753Smm moved around. This made the diff big and ugly compared to 4123207753Smm the amount of the actual changes made. 4124207753Smm 4125207753Smmcommit b254bd97b1cdb68d127523d91ca9e054ed89c4fd 4126207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4127207753SmmDate: Thu Jan 17 17:39:42 2008 +0200 4128207753Smm 4129207753Smm Fix wrong too small size of argument unfiltered_max 4130207753Smm in ia64_coder_init(). It triggered assert() in 4131207753Smm simple_coder.c, and could have caused a buffer overflow. 4132207753Smm 4133207753Smm This error was probably a copypaste mistake, since most 4134207753Smm of the simple filters use unfiltered_max = 4. 4135207753Smm 4136207753Smmcommit 8f5794c8f1a30e8e3b524b415bbe81af2e04c64a 4137207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4138207753SmmDate: Thu Jan 17 17:27:45 2008 +0200 4139207753Smm 4140207753Smm Added --delta to the output of "lzma --help". 4141207753Smm 4142207753Smmcommit f88590e0014b38d40465937c19f25f05f16c79ae 4143207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4144207753SmmDate: Thu Jan 17 13:14:20 2008 +0200 4145207753Smm 4146207753Smm Fix Subblock docoder: If Subblock filter was used with known 4147207753Smm Uncompressed Size, and the last output byte was from RLE, 4148207753Smm the code didn't stop decoding as it should have done. 4149207753Smm 4150207753Smmcommit bc0b945ca376e333077644d2f7fd54c2848aab8a 4151207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4152207753SmmDate: Wed Jan 16 16:33:37 2008 +0200 4153207753Smm 4154207753Smm Tiny non-technical edits to file-format.txt. 4155207753Smm 4156207753Smmcommit 7599bb7064ccf007f054595dedda7927af868252 4157207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4158207753SmmDate: Wed Jan 16 14:48:04 2008 +0200 4159207753Smm 4160207753Smm Plugged a memory leak in stream_decoder.c. 4161207753Smm 4162207753Smmcommit 0b581539311f3712946e81e747839f8fb5f441a7 4163207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4164207753SmmDate: Wed Jan 16 14:47:27 2008 +0200 4165207753Smm 4166207753Smm Added memory leak detection to lzmadec.c. 4167207753Smm 4168207753Smmcommit 5b5b13c7bb8fde6331064d21f3ebde41072480c4 4169207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4170207753SmmDate: Wed Jan 16 14:46:50 2008 +0200 4171207753Smm 4172207753Smm Added lzma_memlimit_count(). 4173207753Smm 4174207753Smmcommit 19389f2b82ec54fd4c847a18f16482e7be4c9887 4175207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4176207753SmmDate: Wed Jan 16 14:31:44 2008 +0200 4177207753Smm 4178207753Smm Added ARRAY_SIZE(array) macro. 4179207753Smm 4180207753Smmcommit 9bc33a54cbf83952130adbcb1be32c6882485416 4181207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4182207753SmmDate: Wed Jan 16 13:27:03 2008 +0200 4183207753Smm 4184207753Smm Make Uncompresed Size validation more strict 4185207753Smm in alone_decoder.c. 4186207753Smm 4187207753Smmcommit 01d71d60b79027e1ce3eb9c79ae5191e1407c883 4188207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4189207753SmmDate: Tue Jan 15 17:46:59 2008 +0200 4190207753Smm 4191207753Smm Free the allocated memory in lzmadec if debugging is 4192207753Smm enabled. This should make it possible to detect possible 4193207753Smm memory leaks with Valgrind. 4194207753Smm 4195207753Smmcommit 8235e6e5b2878f76633afcda9a334640db503ef5 4196207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4197207753SmmDate: Tue Jan 15 16:25:38 2008 +0200 4198207753Smm 4199207753Smm Fix memory leaks from test_block_header.c. 4200207753Smm 4201207753Smmcommit f10fc6a69d40b6d5c9cfbf8d3746f49869c2e2f6 4202207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4203207753SmmDate: Tue Jan 15 14:23:35 2008 +0200 4204207753Smm 4205207753Smm Use fastpos.h when encoding LZMA dictionary size in 4206207753Smm Filter Flags encoder. 4207207753Smm 4208207753Smmcommit e5728142a2048979f5c0c2149ce71ae952a092e1 4209207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4210207753SmmDate: Tue Jan 15 14:02:22 2008 +0200 4211207753Smm 4212207753Smm Revised the fastpos code. It now uses the slightly faster 4213207753Smm table-based version from LZMA SDK 4.57. This should be 4214207753Smm fast on most systems. 4215207753Smm 4216207753Smm A simpler and smaller alternative version is also provided. 4217207753Smm On some CPUs this can be even a little faster than the 4218207753Smm default table-based version (see comments in fastpos.h), 4219207753Smm but on most systems the table-based code is faster. 4220207753Smm 4221207753Smmcommit 10437b5b567f6a025ff16c45a572e417a0a9cc26 4222207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4223207753SmmDate: Tue Jan 15 13:32:13 2008 +0200 4224207753Smm 4225207753Smm Added bsr.h. 4226207753Smm 4227207753Smmcommit f3c88e8b8d8dd57f4bba5f0921eebf276437c244 4228207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4229207753SmmDate: Tue Jan 15 13:29:14 2008 +0200 4230207753Smm 4231207753Smm Fixed assembler detection in configure.ac, and added 4232207753Smm detection for x86_64. 4233207753Smm 4234207753Smmcommit 54ec204f58287f50d3976288295da4188a19192b 4235207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4236207753SmmDate: Tue Jan 15 12:20:41 2008 +0200 4237207753Smm 4238207753Smm Omit invalid space from printf() format string 4239207753Smm in price_table_gen.c. 4240207753Smm 4241207753Smmcommit 01b4b19f49f00e17a0f9cb8754c672ac0847b6e1 4242207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4243207753SmmDate: Tue Jan 15 09:54:34 2008 +0200 4244207753Smm 4245207753Smm Removed a few unused macros from lzma_common.h. 4246207753Smm 4247207753Smmcommit 19bd7f3cf25e4ff8487ef7098ca4a7b58681961d 4248207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4249207753SmmDate: Tue Jan 15 08:37:42 2008 +0200 4250207753Smm 4251207753Smm Fix a typo in lzma_encoder.c. 4252207753Smm 4253207753Smmcommit 9f9b1983013048f2142e8bc7e240149d2687bedc 4254207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4255207753SmmDate: Tue Jan 15 08:36:25 2008 +0200 4256207753Smm 4257207753Smm Convert bittree_get_price() and bittree_reverse_get_price() 4258207753Smm from macros to inline functions. 4259207753Smm 4260207753Smmcommit 78e85cb1a7667c54853670d2eb09d754bcbda87d 4261207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4262207753SmmDate: Tue Jan 15 07:44:59 2008 +0200 4263207753Smm 4264207753Smm Fix CRC code in case --enable-small is used. 4265207753Smm 4266207753Smmcommit 949d4346e2d75bcd9dcb66c394d8d851d8db3aa0 4267207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4268207753SmmDate: Tue Jan 15 07:41:39 2008 +0200 4269207753Smm 4270207753Smm Fix typo in test_index.c. 4271207753Smm 4272207753Smmcommit d13d693155c176fc9e9ad5c50d48ccba27c2d9c6 4273207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4274207753SmmDate: Tue Jan 15 07:40:21 2008 +0200 4275207753Smm 4276207753Smm Added precomputed range coder probability price table. 4277207753Smm 4278207753Smmcommit 362dc3843b373c1007a50a4719f378981f18ae03 4279207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4280207753SmmDate: Mon Jan 14 13:42:43 2008 +0200 4281207753Smm 4282207753Smm Remove RC_BUFFER_SIZE from lzma_encoder_private.h 4283207753Smm and replace it with a sanity check. 4284207753Smm 4285207753Smmcommit e22b37968d153683fec61ad37b6b160cb7ca4ddc 4286207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4287207753SmmDate: Mon Jan 14 13:39:54 2008 +0200 4288207753Smm 4289207753Smm Major changes to LZ encoder, LZMA encoder, and range encoder. 4290207753Smm These changes implement support for LZMA_SYNC_FLUSH in LZMA 4291207753Smm encoder, and move the temporary buffer needed by range encoder 4292207753Smm from lzma_range_encoder structure to lzma_lz_encoder. 4293207753Smm 4294207753Smmcommit b59ef3973781f892c0a72b5e5934194567100be5 4295207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4296207753SmmDate: Mon Jan 14 13:34:29 2008 +0200 4297207753Smm 4298207753Smm Added one assert() to process.c of the command line tool. 4299207753Smm 4300207753Smmcommit 9547e734a00ddb64c851fa3f116e4f9e7d763ea7 4301207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4302207753SmmDate: Mon Jan 14 12:09:52 2008 +0200 4303207753Smm 4304207753Smm Don't use coder->lz.stream_end_was_reached in assertions 4305207753Smm in match_c.h. 4306207753Smm 4307207753Smmcommit 3e09e1c05871f3757f759b801890ccccc9286608 4308207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4309207753SmmDate: Mon Jan 14 12:08:02 2008 +0200 4310207753Smm 4311207753Smm In lzma_read_match_distances(), don't use 4312207753Smm coder->lz.stream_end_was_reached. That variable 4313207753Smm will be removed, and the check isn't required anyway. 4314207753Smm Rearrange the check so that it doesn't make one to 4315207753Smm think that there could be an integer overflow. 4316207753Smm 4317207753Smmcommit a670fec8021e5962429689c194148a04c3418872 4318207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4319207753SmmDate: Mon Jan 14 11:56:41 2008 +0200 4320207753Smm 4321207753Smm Small LZMA_SYNC_FLUSH fixes to Block and Single-Stream encoders. 4322207753Smm 4323207753Smmcommit 3599dba9570a6972a16b6398d6c838e9b420e985 4324207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4325207753SmmDate: Mon Jan 14 11:54:56 2008 +0200 4326207753Smm 4327207753Smm More fixes to LZMA decoder's flush marker handling. 4328207753Smm 4329207753Smmcommit f73c2ab6079ed5675a42b39d584a567befbd4624 4330207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4331207753SmmDate: Thu Jan 10 17:13:42 2008 +0200 4332207753Smm 4333207753Smm Eliminate lzma_lz_encoder.must_move_pos. It's needed 4334207753Smm only in one place which isn't performance criticial. 4335207753Smm 4336207753Smmcommit 382808514a42b2f4b4a64515e2dfb3fc1bc48ecd 4337207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4338207753SmmDate: Wed Jan 9 20:05:57 2008 +0200 4339207753Smm 4340207753Smm Define HAVE_ASM_X86 when x86 assembler optimizations are 4341207753Smm used. This #define will be useful for inline assembly. 4342207753Smm 4343207753Smmcommit 0e70fbe4032351aab13a1cd8e5deced105c0b276 4344207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4345207753SmmDate: Wed Jan 9 12:06:46 2008 +0200 4346207753Smm 4347207753Smm Added good-single-none-empty_3.lzma and 4348207753Smm bad-single-none-empty.lzma. 4349207753Smm 4350207753Smmcommit 379fbbe84d922c7cc00afa65c6f0c095da596b19 4351207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4352207753SmmDate: Tue Jan 8 23:11:59 2008 +0200 4353207753Smm 4354207753Smm Take advantage of return_if_error() in block_decoder.c. 4355207753Smm 4356207753Smmcommit 97d5fa82077e57815dfad995dc393c2809a78539 4357207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4358207753SmmDate: Tue Jan 8 23:10:57 2008 +0200 4359207753Smm 4360207753Smm Updated tests/files/README. 4361207753Smm 4362207753Smmcommit 3bb9bb310936cba6a743b4f06739a397dec7c28f 4363207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4364207753SmmDate: Tue Jan 8 23:05:40 2008 +0200 4365207753Smm 4366207753Smm Added test files with empty Compressed Data. 4367207753Smm 4368207753Smmcommit 7054c5f5888ac6a7178cd43dc9583ce6c7e78c9f 4369207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4370207753SmmDate: Tue Jan 8 22:58:42 2008 +0200 4371207753Smm 4372207753Smm Fix decoding of Blocks that have only Block Header. 4373207753Smm 4374207753Smmcommit 753e4d95cd1cf29c632dfe1a670af7c67aeffbf4 4375207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4376207753SmmDate: Tue Jan 8 22:27:46 2008 +0200 4377207753Smm 4378207753Smm Added good-single-subblock_implicit.lzma. 4379207753Smm 4380207753Smmcommit faeac7b7aca75f86afed1e7cc06279d9d497c627 4381207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4382207753SmmDate: Tue Jan 8 18:50:30 2008 +0200 4383207753Smm 4384207753Smm Disable CRC32 from Block Headers when --check=none 4385207753Smm has been specified. 4386207753Smm 4387207753Smmcommit a751126dbb656767ed4666cf0e5d3e17349d93d1 4388207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4389207753SmmDate: Tue Jan 8 13:36:29 2008 +0200 4390207753Smm 4391207753Smm Fixed encoding of empty files. Arguments to is_size_valid() 4392207753Smm were in wrong order in block_encoder.c. 4393207753Smm 4394207753Smmcommit 9080267603b1006c4867c823307dca9df8be0d20 4395207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4396207753SmmDate: Tue Jan 8 13:35:36 2008 +0200 4397207753Smm 4398207753Smm Added a few test files. 4399207753Smm 4400207753Smmcommit b4943ccf73b64fc93a90a23474509c316f55eb2b 4401207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4402207753SmmDate: Tue Jan 8 12:29:58 2008 +0200 4403207753Smm 4404207753Smm Avoid using ! in test_files.sh, because that doesn't work 4405207753Smm with some ancient /bin/sh versions. 4406207753Smm 4407207753Smmcommit e2417b2b9134f3f65e14b61e23cd3644d8954353 4408207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4409207753SmmDate: Tue Jan 8 00:48:30 2008 +0200 4410207753Smm 4411207753Smm More pre-C99 inttypes.h compatibility fixes. Now the code 4412207753Smm should work even if the system has no inttypes.h. 4413207753Smm 4414207753Smmcommit 5d227e51c23639423f4ade06aabb54e131f8505e 4415207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4416207753SmmDate: Mon Jan 7 23:25:32 2008 +0200 4417207753Smm 4418207753Smm Updated fi.po although it's currently pretty much crap. 4419207753Smm 4420207753Smmcommit c7189d981a1b27c63da0c1ee80d9b5cd8ce1733d 4421207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4422207753SmmDate: Mon Jan 7 23:14:25 2008 +0200 4423207753Smm 4424207753Smm Test for $GCC = yes instead of if it is non-empty. This 4425207753Smm way it is possible to use ac_cv_c_compiler_gnu=no to 4426207753Smm force configure to think it is using non-GNU C compiler. 4427207753Smm 4428207753Smmcommit 3dbbea82b74bb841c995ad332a3aeca613015e10 4429207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4430207753SmmDate: Mon Jan 7 21:49:41 2008 +0200 4431207753Smm 4432207753Smm Added test_files.sh to tests/Makefile.am so it gets 4433207753Smm included in the tarball with "make dist". 4434207753Smm 4435207753Smmcommit 2fd2d181543feab1b4003f3ac6e85625fbee04f0 4436207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4437207753SmmDate: Mon Jan 7 18:22:24 2008 +0200 4438207753Smm 4439207753Smm Cosmetic edit to test_files.sh. 4440207753Smm 4441207753Smmcommit 9a71d573100a990ceb30ce0bec6a9a15d795605f 4442207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4443207753SmmDate: Mon Jan 7 18:09:44 2008 +0200 4444207753Smm 4445207753Smm Added tests/files/README. 4446207753Smm 4447207753Smmcommit 47f48fe9936ed72617a60fbd015df7e0e47a1e43 4448207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4449207753SmmDate: Mon Jan 7 14:20:57 2008 +0200 4450207753Smm 4451207753Smm Tell in COPYING that everything in tests/files is 4452207753Smm public domain. 4453207753Smm 4454207753Smmcommit 3502b3e1d00251d3c8dda96079440705c28d8225 4455207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4456207753SmmDate: Mon Jan 7 14:19:05 2008 +0200 4457207753Smm 4458207753Smm Cleaned up the tests/files directory. 4459207753Smm 4460207753Smmcommit 908b2ac604b9940369d7fe8a45e9eb6da5d2a24c 4461207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4462207753SmmDate: Mon Jan 7 13:49:19 2008 +0200 4463207753Smm 4464207753Smm Added test_files.sh to test decoding of the files in 4465207753Smm the tests/files directory. It doesn't test the malicious 4466207753Smm files yet. 4467207753Smm 4468207753Smmcommit ecb2a6548f5978022a8fa931719dc575f5fd3bf6 4469207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4470207753SmmDate: Mon Jan 7 11:23:13 2008 +0200 4471207753Smm 4472207753Smm Updated README regarding the assembler optimizations. 4473207753Smm 4474207753Smmcommit eacb8050438d3e6146c86eb9732d3fb1ef1825cb 4475207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4476207753SmmDate: Mon Jan 7 10:58:00 2008 +0200 4477207753Smm 4478207753Smm Updated THANKS. 4479207753Smm 4480207753Smmcommit 1239649f96132b18e3b7e2dd152ecf53a195caa8 4481207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4482207753SmmDate: Sun Jan 6 21:47:17 2008 +0200 4483207753Smm 4484207753Smm Cosmetic changes to configure.ac. 4485207753Smm 4486207753Smmcommit 88ee301ec2e4506a30ec7ac9aaa2288e2dcadd0e 4487207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4488207753SmmDate: Sun Jan 6 19:46:38 2008 +0200 4489207753Smm 4490207753Smm Automatically disable assembler code on Darwin x86. 4491207753Smm Darwin has different ABI than GNU+Linux and Solaris, 4492207753Smm thus the assembler code doesn't assemble on Darwin. 4493207753Smm 4494207753Smmcommit c15a7abf66e3a70792f7444115e484c7981c8284 4495207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4496207753SmmDate: Sun Jan 6 19:45:27 2008 +0200 4497207753Smm 4498207753Smm With printf(), use PRIu64 with a cast to uint64_t instead 4499207753Smm of %zu, because some pre-C99 libc versions don't support %zu. 4500207753Smm 4501207753Smmcommit 4e7e54c4c522ab2f6a7abb92cefc4f707e9568fb 4502207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4503207753SmmDate: Sun Jan 6 16:27:41 2008 +0200 4504207753Smm 4505207753Smm Introduced compatibility with systems that have pre-C99 4506207753Smm or no inttypes.h. This is useful when the compiler has 4507207753Smm good enough support for C99, but libc headers don't. 4508207753Smm 4509207753Smm Changed liblzma API so that sys/types.h and inttypes.h 4510207753Smm have to be #included before #including lzma.h. On systems 4511207753Smm that don't have C99 inttypes.h, it's the problem of the 4512207753Smm applications to provide the required types and macros 4513207753Smm before #including lzma.h. 4514207753Smm 4515207753Smm If lzma.h defined the missing types and macros, it could 4516207753Smm conflict with third-party applications whose configure 4517207753Smm has detected that the types are missing and defined them 4518207753Smm in config.h already. An alternative would have been 4519207753Smm introducing lzma_uint32 and similar types, but that would 4520207753Smm just be an extra pain on modern systems. 4521207753Smm 4522207753Smmcommit a71864f77dfb76b5d78a270641539947c312583a 4523207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4524207753SmmDate: Sat Jan 5 19:57:00 2008 +0200 4525207753Smm 4526207753Smm Fix typo in comment (INT64_MAX -> UINT64_MAX). 4527207753Smm 4528207753Smmcommit 072927905a3b66281c6311b4b351caa501d8b73a 4529207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4530207753SmmDate: Sat Jan 5 19:42:04 2008 +0200 4531207753Smm 4532207753Smm Rearranged testing of GCC-specific flags. 4533207753Smm 4534207753Smmcommit d160ee32598c6d1cd9054ef019e8c9331208b188 4535207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4536207753SmmDate: Sat Jan 5 01:20:24 2008 +0200 4537207753Smm 4538207753Smm Another bug fix for flush marker detection. 4539207753Smm 4540207753Smmcommit fc67f79f607cbfa78c6f47a69dec098d8659b162 4541207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4542207753SmmDate: Fri Jan 4 21:37:01 2008 +0200 4543207753Smm 4544207753Smm Fix stupid bugs in flush marker detection. 4545207753Smm 4546207753Smmcommit 0029cbbabe87d491fc046a55a629a6d556010baa 4547207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4548207753SmmDate: Fri Jan 4 21:30:33 2008 +0200 4549207753Smm 4550207753Smm Added support for flush marker, which will be in files 4551207753Smm that use LZMA_SYNC_FLUSH with encoder (not implemented 4552207753Smm yet). This is a new feature in the raw LZMA format, 4553207753Smm which isn't supported by old decoders. This shouldn't 4554207753Smm be a problem in practice, since lzma_alone_encoder() 4555207753Smm will not allow LZMA_SYNC_FLUSH, and thus not allow 4556207753Smm creating files on decodable with old decoders. 4557207753Smm 4558207753Smm Made lzma_decoder.c to require tab width of 4 characters 4559207753Smm if one wants to fit the code in 80 columns. This makes 4560207753Smm the code easier to read. 4561207753Smm 4562207753Smmcommit bbfd1f6ab058a7e661545205befcb7f70c5685ab 4563207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4564207753SmmDate: Fri Jan 4 20:45:05 2008 +0200 4565207753Smm 4566207753Smm Moved range decoder initialization (reading the first 4567207753Smm five input bytes) from LZMA decoder to range decoder 4568207753Smm header. Did the same for decoding of direct bits. 4569207753Smm 4570207753Smmcommit 5db745cd2a74f6ed2e52f5c716c08ed0daf17ebc 4571207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4572207753SmmDate: Fri Dec 14 11:15:21 2007 +0200 4573207753Smm 4574207753Smm Added a note to README that --disable-assembler 4575207753Smm must be used on Darwin. 4576207753Smm 4577207753Smmcommit 44b333d4615b5aabc557a0e1b6bb0096da3fae24 4578207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4579207753SmmDate: Fri Dec 14 10:07:10 2007 +0200 4580207753Smm 4581207753Smm Use the filename suffix .S instead of .s for assembler files 4582207753Smm so that the preprocessor removes the /* */ style comments, 4583207753Smm which are not supported by some non-GNU assemblers (Solaris) 4584207753Smm that otherwise work with this code. 4585207753Smm 4586207753Smmcommit ec1c82b2e82f395f6e8e19ac212a639644330cd7 4587207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4588207753SmmDate: Fri Dec 14 09:59:05 2007 +0200 4589207753Smm 4590207753Smm Fixed wrong symbol name in crc64_x86.s. 4591207753Smm 4592207753Smmcommit 2881570df6803eed2fe550af34574e8e61794804 4593207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4594207753SmmDate: Fri Dec 14 09:53:24 2007 +0200 4595207753Smm 4596207753Smm Use .globl instead of .global in x86 assembler code for 4597207753Smm better portability. Still needs fixing the commenting. 4598207753Smm 4599207753Smmcommit 698470b8f33fc0e5f27dafa93b39b6dd5dde5a66 4600207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4601207753SmmDate: Thu Dec 13 20:14:37 2007 +0200 4602207753Smm 4603207753Smm Fixed a few short options that take an argument. 4604207753Smm short_opts[] was missing colons to indicate 4605207753Smm required argument. Thanks to Fabio Pedretti for 4606207753Smm the bug report. 4607207753Smm 4608207753Smmcommit 918bcb0e0728d2d976621e9f35b56f224f11d989 4609207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4610207753SmmDate: Tue Dec 11 17:08:04 2007 +0200 4611207753Smm 4612207753Smm Removed uncompressed size tracking from Delta encoder too. 4613207753Smm 4614207753Smmcommit 3e16d51dd645667b05ff826665b1fc353aa41cd9 4615207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4616207753SmmDate: Tue Dec 11 16:49:19 2007 +0200 4617207753Smm 4618207753Smm Remove uncompressed size tracking from the filter encoders. 4619207753Smm It's not strictly needed there, and just complicates the 4620207753Smm code. LZ encoder never even had this feature. 4621207753Smm 4622207753Smm The primary reason to have uncompressed size tracking in 4623207753Smm filter encoders was validating that the application 4624207753Smm doesn't give different amount of input that it had 4625207753Smm promised. A side effect was to validate internal workings 4626207753Smm of liblzma. 4627207753Smm 4628207753Smm Uncompressed size tracking is still present in the Block 4629207753Smm encoder. Maybe it should be added to LZMA_Alone and raw 4630207753Smm encoders too. It's simpler to have one coder just to 4631207753Smm validate the uncompressed size instead of having it 4632207753Smm in every filter. 4633207753Smm 4634207753Smmcommit 5286723e0d1ac386d5b07f08d78e61becf895a5a 4635207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4636207753SmmDate: Tue Dec 11 14:10:53 2007 +0200 4637207753Smm 4638207753Smm Get rid of no-NLS gnulib. I don't know how to get it 4639207753Smm working with Automake. People who want smaller lzmadec 4640207753Smm should use --disable-nls on non-GNU systems. 4641207753Smm 4642207753Smmcommit ce8b036a6c7a43b290356b673d953f6d76b2be64 4643207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4644207753SmmDate: Tue Dec 11 14:09:35 2007 +0200 4645207753Smm 4646207753Smm Fixed a typo in tests/Makefile.am which prevented 4647207753Smm building the tests if gnulib was needed. 4648207753Smm 4649207753Smmcommit 7c1ad41eb611ed89e5bb8792a3beb533b7aa59f4 4650207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4651207753SmmDate: Tue Dec 11 11:18:58 2007 +0200 4652207753Smm 4653207753Smm Fixed wrong type of flags_size in Subblock encoder. 4654207753Smm 4655207753Smmcommit ce64df716243fdc40359090d1f6541f3a4f5f21a 4656207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4657207753SmmDate: Mon Dec 10 20:44:16 2007 +0200 4658207753Smm 4659207753Smm Bumped version number to 4.42.3alpha. 4660207753Smm 4661207753Smmcommit b499a0403ea5c41d6a25b40275eb6c57643052ce 4662207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4663207753SmmDate: Mon Dec 10 15:02:50 2007 +0200 4664207753Smm 4665207753Smm Disabled some unneeded warnings and made "make dist" work. 4666207753Smm 4667207753Smmcommit 2ab8adb5165a0b77114a7eb21f9ff1e6a266f172 4668207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4669207753SmmDate: Sun Dec 9 21:43:15 2007 +0200 4670207753Smm 4671207753Smm Added LZMA_SYNC_FLUSH support to the Copy filter. 4672207753Smm 4673207753Smmcommit 329c272d501e88793dda5540358d55c12428d194 4674207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4675207753SmmDate: Sun Dec 9 17:14:07 2007 +0200 4676207753Smm 4677207753Smm Added missing LZMA_API to the C versions of the CRC functions. 4678207753Smm The x86 assembler versions were already OK. 4679207753Smm 4680207753Smmcommit c90daf86ce683fa8cf80491d624ffb158dfbd9d7 4681207753SmmAuthor: Jim Meyering <meyering@redhat.com> 4682207753SmmDate: Sun Dec 9 15:34:25 2007 +0100 4683207753Smm 4684207753Smm * tests/test_block_header.c (test3): Remove duplicate initializer. 4685207753Smm 4686207753Smmcommit 07ac881779a8477f2c1ab112b91a129e24aa743c 4687207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4688207753SmmDate: Sun Dec 9 17:06:45 2007 +0200 4689207753Smm 4690207753Smm Take advantage of return_if_error() macro in more places. 4691207753Smm Cleaned Subblock filter's initialization code too. 4692207753Smm 4693207753Smmcommit 41338717964f510ee61d70b25bd4c502ec9f77cf 4694207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4695207753SmmDate: Sun Dec 9 12:13:01 2007 +0200 4696207753Smm 4697207753Smm Added a bunch of .lzma test files. 4698207753Smm 4699207753Smmcommit ff946ceb7975d4f11950afd33f6315b4d20d1a03 4700207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4701207753SmmDate: Sun Dec 9 11:24:48 2007 +0200 4702207753Smm 4703207753Smm Re-enabled the security checks in Subblock decoder 4704207753Smm that were disabled for debugging reasons. 4705207753Smm 4706207753Smmcommit 2bf36d22d2c24ac3f488e63b35564fa2f6dab8d1 4707207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4708207753SmmDate: Sun Dec 9 11:03:28 2007 +0200 4709207753Smm 4710207753Smm Fixed the tests to build with -Werror. 4711207753Smm 4712207753Smmcommit 5d018dc03549c1ee4958364712fb0c94e1bf2741 4713207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4714207753SmmDate: Sun Dec 9 00:42:33 2007 +0200 4715207753Smm 4716207753Smm Imported to git. 4717