1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

Commit graph

  • 3a62a5fb85 Fixed compilation of test_filter_flags.c, which was broken by 1dcecfb09b. Lasse Collin 2008-09-27 23:01:15 +0300
  • c6ca26eef7 Updated file format specification. It changes the suffix of the new format to .xz and removes the recently added LZMA filter. Lasse Collin 2008-09-27 19:11:02 +0300
  • 1dcecfb09b Some API changes, bug fixes, cleanups etc. Lasse Collin 2008-09-27 19:09:21 +0300
  • 5cc5064cae Added 7z2lzma.bash. Lasse Collin 2008-09-27 11:28:49 +0300
  • f147666a5c Miscellaneous LZ and LZMA encoder cleanups Lasse Collin 2008-09-17 22:11:39 +0300
  • 13d68b0698 LZ decoder cleanup Lasse Collin 2008-09-13 13:54:00 +0300
  • 13a74b78e3 Renamed constants: - LZMA_VLI_VALUE_MAX -> LZMA_VLI_MAX - LZMA_VLI_VALUE_UNKNOWN -> LZMA_VLI_UNKNOWN - LZMA_HEADER_ERRRO -> LZMA_OPTIONS_ERROR Lasse Collin 2008-09-13 12:10:43 +0300
  • 320601b2c7 Improved the Stream Flags handling API. Lasse Collin 2008-09-12 22:41:40 +0300
  • ec490da522 Simplified debug/known_sizes.c to match the relaxed requirements of Block encoder. Lasse Collin 2008-09-11 23:10:44 +0300
  • 16e8b98f26 Remove a check from Block encoder that should have already been removed in 2ba01bfa75. Lasse Collin 2008-09-11 23:09:24 +0300
  • 5a710c3805 Remove bogus #includes. Lasse Collin 2008-09-11 20:02:38 +0300
  • 01892b2ca5 Updated THANKS. Lasse Collin 2008-09-11 10:49:14 +0300
  • 962f2231d4 Fix a compiler error on big endian systems that don't support unaligned memory access. Lasse Collin 2008-09-11 10:48:12 +0300
  • fa3ab0df8a Silence a compiler warning. Lasse Collin 2008-09-11 10:46:14 +0300
  • 9373e81e18 Bumped version to 4.999.6alpha. Lasse Collin 2008-09-10 19:16:32 +0300
  • cb072b7c84 Check for LZMA_FILTER_RESERVED_START in filter_flags_encoder.c. Use LZMA_PROG_ERROR instead of LZMA_HEADER_ERROR if the Filter ID is in the reserved range. This allows Block Header encoder to detect unallowed Filter IDs, which is good for Stream encoder. v4.999.5alpha Lasse Collin 2008-09-10 17:02:00 +0300
  • 123ab0acec Filter handling cleanups Lasse Collin 2008-09-10 16:44:32 +0300
  • 9cfcd0c4f2 Comments Lasse Collin 2008-09-10 00:33:00 +0300
  • 2ba01bfa75 Cleaned up Block encoder and moved the no longer shared code from block_private.h to block_decoder.c. Now the Block encoder doesn't need compressed_size and uncompressed_size from lzma_block structure to be initialized. Lasse Collin 2008-09-10 00:27:02 +0300
  • 07efcb5a6b Changed Filter ID of LZMA to 0x20. Lasse Collin 2008-09-07 10:23:13 +0300
  • 32fe5fa541 Comments Lasse Collin 2008-09-06 23:42:50 +0300
  • 0a31ed9d5e Some API cleanups Lasse Collin 2008-09-06 15:14:30 +0300
  • da98df5440 Added support for raw encoding and decoding to the command line tool, and made various cleanups. --lzma was renamed to --lzma1 to prevent people from accidentally using LZMA when they want LZMA2. Lasse Collin 2008-09-04 11:53:06 +0300
  • 2496aee8a7 Don't allow LZMA_SYNC_FLUSH with decoders anymore. There's simply nothing that would use it. Allow LZMA_FINISH to the decoders, which will usually ignore it (auto decoder and Stream decoder being exceptions). Lasse Collin 2008-09-04 10:39:15 +0300
  • bea301c26d Minor updates to the file format specification. Lasse Collin 2008-09-03 17:06:25 +0300
  • 9c75b089b4 Command line tool fixes Lasse Collin 2008-09-02 19:33:32 +0300
  • bab0590504 Auto decoder cleanup Lasse Collin 2008-09-02 19:31:42 +0300
  • 689602336d Updated auto decoder to handle LZMA_CONCATENATED when decoding LZMA_Alone files. Decoding of concatenated LZMA_Alone files is intentionally not supported, so it is better to put this in auto decoder than LZMA_Alone decoder. Lasse Collin 2008-09-02 19:12:12 +0300
  • 80c4158f19 Stream decoder cleanups Lasse Collin 2008-09-02 14:56:52 +0300
  • fc68165745 Some fixes to LZ encoder. Lasse Collin 2008-09-02 11:45:39 +0300
  • ede675f9ac Fix wrong pointer calculation in LZMA encoder. Lasse Collin 2008-08-31 11:47:01 +0300
  • 3b34851de1 Sort of garbage collection commit. :-| Many things are still broken. API has changed a lot and it will still change a little more here and there. The command line tool doesn't have all the required changes to reflect the API changes, so it's easy to get "internal error" or trigger assertions. Lasse Collin 2008-08-28 22:53:15 +0300
  • 57b9a145a5 Fix test_filter_flags to match the new restriction of lc+lp. Lasse Collin 2008-06-20 17:16:32 +0300
  • eaafc4367c Remove some redundant code from LZMA encoder. Lasse Collin 2008-06-20 16:19:54 +0300
  • 0809c46534 Add limit of lc + lp <= 4. Now we can allocate the literal coder as part of the main LZMA encoder or decoder structure. Lasse Collin 2008-06-19 16:35:08 +0300
  • d25ab1b961 Comments Lasse Collin 2008-06-18 21:45:19 +0300
  • 6368a2fa59 Delete old code that was supposed to be already deleted from test_block_header.c. Lasse Collin 2008-06-18 19:19:02 +0300
  • 7d17818cec Update the code to mostly match the new simpler file format specification. Simplify things by removing most of the support for known uncompressed size in most places. There are some miscellaneous changes here and there too. Lasse Collin 2008-06-18 18:02:10 +0300
  • bf6348d1a3 Update the file format specification draft. The new one is a lot simpler than the previous versions, but it also means that the existing code will change a lot. Lasse Collin 2008-06-17 15:03:46 +0300
  • 803194ddd2 Fix uninitialized variable in LZMA encoder. This was introduced in 369f72fd65. Lasse Collin 2008-06-11 21:42:47 +0300
  • 0ea98e52ba Improve command line integer parsing a little in lzma and lzmadec to make them accept also KiB in addition Ki etc. Fix also memory usage information in lzmadec --help. Lasse Collin 2008-06-11 15:08:44 +0300
  • 436fa5fae9 s/decompressed/compressed/ in the command line tool's error message. Lasse Collin 2008-06-10 20:36:12 +0300
  • 369f72fd65 Fix a buffer overflow in the LZMA encoder. It was due to my misunderstanding of the code. There's no tiny fix for this problem, so I also cleaned up the code in general. Lasse Collin 2008-06-01 12:48:17 +0300
  • e55e0e873c Typo fixes from meyering. Lasse Collin 2008-05-30 11:53:41 +0300
  • ed6664146f Remove support for pre-C89 libc versions that lack memcpy, memmove, and memset. Lasse Collin 2008-05-11 14:24:42 +0300
  • b09464bf9a Improved C99 compiler detection in configure.ac. It will pass -std=gnu99 instead of -std=c99 to GCC now, but -pedantic should still give warnings about GNU extensions like before except with some special keywords like asm(). Lasse Collin 2008-05-11 14:17:21 +0300
  • 11de5d5267 Bunch of grammar fixes from meyering. Lasse Collin 2008-05-06 15:15:07 +0300
  • dc192b6343 Typo fix Lasse Collin 2008-05-06 13:41:05 +0300
  • 944b62b932 Don't print an error message on broken pipe unless --verbose is used. Lasse Collin 2008-05-04 22:29:27 +0300
  • 8e074349e4 Fix a crash with --format=alone if other filters than LZMA are specified on the command line. Lasse Collin 2008-04-30 22:16:17 +0300
  • 2f361ac19b Updated THANKS. Lasse Collin 2008-04-28 17:08:27 +0300
  • 3be21fb12f Fixed wrong spelling "limitter" to "limiter". This affects liblzma's API. Lasse Collin 2008-04-28 17:06:34 +0300
  • beeb810608 Prevent LZ encoder from hanging with known uncompressed size. The "fix" breaks LZMA_SYNC_FLUSH at end of stream with known uncompressed size, but since it currently seems likely that support for encoding with known uncompressed size will go away anyway, I'm not fixing this problem now. v4.999.3alpha Lasse Collin 2008-04-25 15:39:50 +0300
  • c324325f9f Removed src/liblzma/common/sysdefs.h symlink, which was annoying, because "make dist" put two copies of sysdefs.h into the tarball instead of the symlink. Lasse Collin 2008-04-25 13:58:56 +0300
  • d3ba30243c Added memusage.c to debug directory. Lasse Collin 2008-04-25 13:41:29 +0300
  • 8f804c29aa Bumped version number to 4.999.3alpha. It will become 5.0.0 once we have a stable release (won't be very soon). The version number is no longer related to version of LZMA SDK. Lasse Collin 2008-04-25 13:32:35 +0300
  • c99037ea10 Fix a memory leak by calling free(extra->data) in lzma_extra_free(). Lasse Collin 2008-04-24 20:25:39 +0300
  • 22ba3b0b50 Make unlzma and lzcat symlinks. Lasse Collin 2008-04-24 20:23:05 +0300
  • 17c36422d4 Fixed a bug in command line option parsing. Lasse Collin 2008-04-24 20:20:27 +0300
  • 283f939974 Added two assert()s. Lasse Collin 2008-04-24 20:19:20 +0300
  • eb348a60b6 Switch to uint16_t as the type of range coder probabilities. Lasse Collin 2008-04-24 19:22:53 +0300
  • 6c5306e312 Fix wrong return type (uint32_t -> bool). Lasse Collin 2008-04-24 18:39:57 +0300
  • 712cfe3ebf Fix data corruption in LZ encoder with LZMA_SYNC_FLUSH. Lasse Collin 2008-04-24 18:38:00 +0300
  • bc04486e36 Fix fastpos problem in Makefile.am when built with --enable-small. Lasse Collin 2008-04-24 17:33:01 +0300
  • 7ab493924e Use 64-bit integer as range encoder's cache size. This fixes a theoretical data corruption, which should be very hard to trigger even intentionally. Lasse Collin 2008-04-24 17:30:51 +0300
  • 641998c3e1 Replaced the range decoder optimization that used arithmetic right shift with as fast version that doesn't need arithmetic right shift. Removed the related check from configure.ac. Lasse Collin 2008-03-24 16:38:40 +0200
  • ad999efd27 Take advantage of arithmetic right shift in range decoder. Lasse Collin 2008-03-22 14:39:34 +0200
  • 03e0e8a0d7 Added autoconf check to detect if we can use arithmetic right shift for optimizations. Lasse Collin 2008-03-22 14:18:29 +0200
  • 7521bbdc83 Update a comment to use the variable name rep_len_decoder. Lasse Collin 2008-03-22 01:26:36 +0200
  • 63b74d000e Demystified the "state" variable in LZMA code. Use the word literal instead of char for better consistency. There are still some names with _char instead of _literal in lzma_optimum, these may be changed later. Lasse Collin 2008-03-22 00:57:33 +0200
  • e6eb0a2675 Fix data corruption in LZMA encoder. Note that this bug was specific to liblzma and was *not* present in LZMA SDK. Lasse Collin 2008-03-14 23:16:11 +0200
  • 7d516f5129 Fix a comment API header. Lasse Collin 2008-03-14 21:32:37 +0200
  • 748d6e4274 Make lzma_stream.next_in const. Let's see if anyone complains. Lasse Collin 2008-03-12 23:14:50 +0200
  • bfde3b24a5 Apply a minor speed optimization to LZMA decoder. Lasse Collin 2008-03-11 15:35:34 +0200
  • f310c50286 Initialize the last byte of the dictionary to zero so that lz_get_byte(lz, 0) returns zero. This was broken by 1a3b218598. Lasse Collin 2008-03-11 15:17:16 +0200
  • 5ead36cf7f Really fix the price count initialization. Lasse Collin 2008-03-10 15:57:55 +0200
  • d4d7feb83d Updated THANKS. Lasse Collin 2008-03-10 13:47:17 +0200
  • 0541c5ea63 Initialize align_price_count and match_price_count in lzma_encoder_init.c. While we don't call fill_distances_prices() and fill_align_prices() in lzma_lzma_encoder_init(), we still need to initialize these two variables so that the fill functions get called in lzma_encoder_getoptimum.c in the beginning of a stream. Lasse Collin 2008-03-10 13:46:48 +0200
  • 596fa1fac7 Always initialize lz->temp_size in lz_decoder.c. temp_size did get initialized as a side-effect after allocating a new decoder, but not when the decoder was reused. Lasse Collin 2008-03-10 13:44:29 +0200
  • 45e43e1695 Don't fill allocated memory with 0xFD when debugging is enabled. It hides errors from Valgrind. Lasse Collin 2008-03-10 13:41:25 +0200
  • c0e19e0662 Remove two redundant validity checks from the LZMA decoder. These are already checked elsewhere, so omitting these gives (very) tiny speed up. Lasse Collin 2008-02-28 10:24:31 +0200
  • de74858062 Tiny clean up to file-format.txt. Lasse Collin 2008-02-06 13:25:32 +0200
  • 1a3b218598 Don't memzero() the history buffer when initializing LZ decoder. There's no danger of information leak here, so it isn't required. Doing memzero() takes a lot of time with large dictionaries, which could make it easier to construct DoS attack to consume too much CPU time. Lasse Collin 2008-02-02 14:51:06 +0200
  • 7e796e312b Do uncompressed size validation in raw encoder. This way it gets done for not only raw encoder, but also Block and LZMA_Alone encoders. Lasse Collin 2008-02-01 08:39:26 +0200
  • 7dd48578a3 Avoid unneeded function call in raw_common.c. Lasse Collin 2008-02-01 08:32:05 +0200
  • b596fac963 Updated THANKS. Lasse Collin 2008-01-26 21:42:38 +0200
  • e9f6e9c075 Added note.GNU-stack to x86 assembler files. It is needed when using non-executable stack. Lasse Collin 2008-01-26 21:40:23 +0200
  • 4c7ad179c7 Added api/lzma/easy.h. I had forgot to add this to the git repo. Thanks to Stephan Kulow. Lasse Collin 2008-01-26 19:12:50 +0200
  • 288b232f54 Added more test files. Lasse Collin 2008-01-26 11:09:17 +0200
  • c467b0defc Added more test files. Lasse Collin 2008-01-26 10:47:55 +0200
  • f9842f7127 Return LZMA_HEADER_ERROR if LZMA_SYNC_FLUSH is used with any of the so called simple filters. If there is demand, limited support for LZMA_SYNC_FLUSH may be added in future. Lasse Collin 2008-01-26 00:25:34 +0200
  • e988ea1d1a Added more Multi-Block test files. Improved some descriptions in the test files' README. Lasse Collin 2008-01-25 23:50:35 +0200
  • 4441e00418 Combine lzma_options_block validation needed by both Block encoder and decoder, and put the shared things to block_private.h. Improved the checks a little so that they may detect too big Compressed Size at initialization time if lzma_options_block.total_size or .total_limit is known. Lasse Collin 2008-01-25 23:12:36 +0200
  • bf4200c818 Added test_memlimit.c. Lasse Collin 2008-01-25 19:21:22 +0200
  • 7b8fc7e6b5 Improved the memory limitter: - Added lzma_memlimit_max() and lzma_memlimit_reached() API functions. - Added simple estimation of malloc()'s memory usage overhead. - Fixed integer overflow detection in lzma_memlimit_alloc(). - Made some white space cleanups and added more comments. Lasse Collin 2008-01-25 19:20:28 +0200
  • e0c3d0043d Use more parenthesis in succeed() macro in tests/tests.h. Lasse Collin 2008-01-25 13:55:52 +0200
  • 1fd76d4881 Added more Multi-Block Stream test files. Lasse Collin 2008-01-24 14:49:34 +0200
  • 6e27b1098a Added bunch of test files containing Multi-Block Streams. Lasse Collin 2008-01-24 00:46:05 +0200
  • db9df0a960 Fix decoding of empty Metadata Blocks, that don't have even the Metadata Flags field. Earlier the code allowed such files; now they are prohibited as the file format specification requires. Lasse Collin 2008-01-23 23:43:00 +0200
  • 765f0b05f6 Fix a bug related to 99e12af4e2. lzma_metadata.header_metadata_size was not properly set to zero if the Metadata had only the Metadata Flags field. Lasse Collin 2008-01-23 23:38:18 +0200