Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2008-12-31 | Renamed lzma_options_simple to lzma_options_bcj in the API. | Lasse Collin | 7 | -22/+22 | |
The internal implementation is still using the name "simple". It may need some cleanups, so I look at it later. | |||||
2008-12-31 | Fixed missing quoting in configure.ac. | Lasse Collin | 1 | -19/+19 | |
2008-12-31 | Updated src/liblzma/Makefile.am to use liblzma.pc.in, which | Lasse Collin | 1 | -2/+2 | |
should have been in the previous commit. | |||||
2008-12-31 | Remove lzma_init() and other init functions from liblzma API. | Lasse Collin | 37 | -456/+347 | |
Half of developers were already forgetting to use these functions, which could have caused total breakage in some future liblzma version or even now if --enable-small was used. Now liblzma uses pthread_once() to do the initializations unless it has been built with --disable-threads which make these initializations thread-unsafe. When --enable-small isn't used, liblzma currently gets needlessly linked against libpthread (on systems that have it). While it is stupid for now, liblzma will need threads in future anyway, so this stupidity will be temporary only. When --enable-small is used, different code CRC32 and CRC64 is now used than without --enable-small. This made the resulting binary slightly smaller, but the main reason was to clean it up and to handle the lack of lzma_init_check(). The pkg-config file lzma.pc was renamed to liblzma.pc. I'm not sure if it works correctly and portably for static linking (Libs.private includes -pthread or other operating system specific flags). Hopefully someone complains if it is bad. lzma_rc_prices[] is now included as a precomputed array even with --enable-small. It's just 128 bytes now that it uses uint8_t instead of uint32_t. Smaller array seemed to be at least as fast as the more bloated uint32_t array on x86; hopefully it's not bad on other architectures. | |||||
2008-12-27 | Use 28 MiB as memory usage limit for encoding in test_compress.sh. | Lasse Collin | 1 | -1/+1 | |
2008-12-27 | Revert a change made in 3b34851de1eaf358cf9268922fa0eeed8278d680 | Lasse Collin | 1 | -15/+8 | |
that was related to LZMA_MODE_FAST. The original code is slightly faster although it compresses slightly worse. But since it is fast mode, it is better to select the faster version. | |||||
2008-12-27 | Some xz command line tool improvements. | Lasse Collin | 5 | -44/+121 | |
2008-12-27 | Bunch of liblzma tweaks, including some API changes. | Lasse Collin | 23 | -262/+294 | |
The API and ABI should now be very close to stable, although the code behind it isn't yet. | |||||
2008-12-18 | Updated Makefile.am that was missing from the previous commit. | Lasse Collin | 1 | -1/+0 | |
2008-12-17 | Remove the alignment functions for now. Maybe they will | Lasse Collin | 4 | -176/+0 | |
be added back in some form later, but the current version wasn't modular, so it would need fixing anyway. | |||||
2008-12-17 | xz message handling improvements | Lasse Collin | 3 | -14/+146 | |
2008-12-15 | Fix a dumb bug in .lzma decoder which was introduced in | Lasse Collin | 1 | -15/+14 | |
the previous commit. (Probably the previous commit has other bugs too, it wasn't tested.) | |||||
2008-12-15 | Bunch of liblzma API cleanups and fixes. | Lasse Collin | 27 | -426/+863 | |
2008-12-15 | The LZMA2 decoder fix introduced a bug to LZ decoder, | Lasse Collin | 1 | -10/+23 | |
which made LZ decoder return too early after dictionary reset. This fixes it. | |||||
2008-12-15 | Added two new test files. | Lasse Collin | 3 | -0/+7 | |
2008-12-15 | Fix data corruption in LZMA2 decoder. | Lasse Collin | 3 | -8/+32 | |
2008-12-13 | Name the package "xz" in configure.ac. | Lasse Collin | 1 | -7/+4 | |
2008-12-12 | Some adjustments to GCC warning flags. The important change | Lasse Collin | 1 | -3/+5 | |
is the removal of -pedantic. It messes up -Werror (which I really want to keep so that I don't miss any warnings) with printf format strings that are in POSIX but not in C99. | |||||
2008-12-10 | Remove obsolete comment. | Lasse Collin | 1 | -1/+0 | |
2008-12-10 | Use "decompression" consistently in --long-help. | Lasse Collin | 1 | -1/+1 | |
2008-12-10 | Added preset=NUM to --lzma1 and --lzma2. This makes it easy | Lasse Collin | 2 | -0/+9 | |
to take a preset as a template and modify it a little. | |||||
2008-12-09 | Put the file format specification into the public domain. | Lasse Collin | 1 | -15/+9 | |
Same will be done to the actual code later. | |||||
2008-12-09 | Make the memusage functions of LZMA1 and LZMA2 encoders | Lasse Collin | 3 | -16/+35 | |
to validate the filter options. Add missing validation to LZMA2 encoder when options are changed in the middle of encoding. | |||||
2008-12-09 | Updated THANKS. | Lasse Collin | 1 | -0/+1 | |
2008-12-01 | In command line tool, take advantage of memusage calculation's | Lasse Collin | 1 | -4/+4 | |
ability to also validate the filter chain and options (not implemented yet for all filters). | |||||
2008-12-01 | Validate the filter chain before checking filter-specific | Lasse Collin | 1 | -4/+10 | |
memory usage. | |||||
2008-12-01 | Make the memusage functions of LZMA1 and LZMA2 decoders | Lasse Collin | 3 | -9/+17 | |
to validate the filter options. | |||||
2008-12-01 | Added the changes for Delta filter that should have been | Lasse Collin | 2 | -2/+2 | |
part of 656ec87882ee74b192c4ea4a233a235eca7b04d4. | |||||
2008-12-01 | LZMA2 decoder cleanups. Make it require new LZMA properties | Lasse Collin | 1 | -54/+41 | |
also in the first LZMA chunk after a dictionary reset in uncompressed chunk. | |||||
2008-12-01 | Added lzma_delta_coder_memusage() which also validates | Lasse Collin | 8 | -39/+75 | |
the options. | |||||
2008-11-29 | Automake includes the m4 directory, so don't add it in | Lasse Collin | 2 | -1/+1 | |
Makefile.am separately. Updated THANKS. | |||||
2008-11-28 | Tested using COLUMNS environment variable to avoid broken | Lasse Collin | 1 | -5/+9 | |
progress indicator but since COLUMNS isn't usually available, the code was left commented out. | |||||
2008-11-27 | Cleanups to message.c. | Lasse Collin | 1 | -29/+18 | |
2008-11-25 | Remove the nowadays unneeded memory limitting malloc() wrapper. | Lasse Collin | 7 | -614/+0 | |
2008-11-23 | VLI encoder and decoder cleanups. Made encoder return | Lasse Collin | 2 | -13/+33 | |
LZMA_PROG_ERROR in single-call mode if there's no output space. | |||||
2008-11-22 | Typo fix | Lasse Collin | 1 | -1/+1 | |
2008-11-20 | Support NetBSD's errno for O_NOFOLLOW. | Lasse Collin | 1 | -0/+8 | |
2008-11-20 | Build xzdec and lzmadec from xzdec.c. xzdec supports only .xz | Lasse Collin | 2 | -178/+140 | |
files and lzmadec only .lzma files. | |||||
2008-11-20 | Minor cleanups to xzdec. | Lasse Collin | 1 | -10/+10 | |
2008-11-19 | Added missing check for uint16_t. | Lasse Collin | 1 | -0/+1 | |
2008-11-19 | Renamed lzma to xz and lzmadec to xzdec. We create symlinks | Lasse Collin | 28 | -55/+53 | |
lzma, unlzma, and lzcat in "make install" for backwards compatibility with LZMA Utils 4.32.x; I'm not sure if this should be the default though. | |||||
2008-11-19 | Oh well, big messy commit again. Some highlights: | Lasse Collin | 112 | -2724/+3240 | |
- Updated to the latest, probably final file format version. - Command line tool reworked to not use threads anymore. Threading will probably go into liblzma anyway. - Memory usage limit is now about 30 % for uncompression and about 90 % for compression. - Progress indicator with --verbose - Simplified --help and full --long-help - Upgraded to the last LGPLv2.1+ getopt_long from gnulib. - Some bug fixes | |||||
2008-10-09 | Fixed the test that should have been fixed as part | Lasse Collin | 1 | -1/+1 | |
of 1e8e4fd1f3e50129b4541406ad765d2aa1233943. | |||||
2008-10-07 | Fixed some help messages. | Lasse Collin | 1 | -3/+3 | |
2008-10-07 | Made the preset numbering more logical in liblzma API. | Lasse Collin | 5 | -17/+18 | |
2008-10-03 | Removed fi from po/LINGUAS. | Lasse Collin | 1 | -1/+0 | |
2008-10-03 | Fixed suffix handling with --format=raw. | Lasse Collin | 1 | -9/+19 | |
2008-10-02 | Initial changes to change the suffix of the new format to .xz. | Lasse Collin | 6 | -52/+133 | |
This also fixes a bug related to --suffix option. Some issues with suffixes with --format=raw were not fixed. | |||||
2008-09-30 | Renamed the test files from .lzma suffix to .xz suffix. | Lasse Collin | 59 | -68/+66 | |
2008-09-30 | Fixed Stream decoder to actually use the first_stream variable. | Lasse Collin | 1 | -0/+5 | |
2008-09-30 | Added one more test file. | Lasse Collin | 2 | -4/+11 | |
2008-09-30 | Fixed uninitialized variable in Stream decoder. | Lasse Collin | 1 | -0/+1 | |
2008-09-30 | Added two test files. | Lasse Collin | 3 | -0/+6 | |
2008-09-27 | Fix conflicting Subblock helper filter's ID. | Lasse Collin | 1 | -1/+1 | |
2008-09-27 | Changed magic bytes to match the updated spec. Filename | Lasse Collin | 56 | -3/+3 | |
suffix wasn't changed yet. | |||||
2008-09-27 | Remove po/fi.po since I'm not keeping it updated for now. | Lasse Collin | 1 | -446/+0 | |
2008-09-27 | Fix also test_compress.sh. | Lasse Collin | 1 | -3/+3 | |
2008-09-27 | Fixed compilation of test_filter_flags.c, which was broken by | Lasse Collin | 1 | -8/+8 | |
1dcecfb09b55157b8653d747963069c8bed74f04. | |||||
2008-09-27 | Updated file format specification. It changes the suffix | Lasse Collin | 1 | -93/+32 | |
of the new format to .xz and removes the recently added LZMA filter. | |||||
2008-09-27 | Some API changes, bug fixes, cleanups etc. | Lasse Collin | 41 | -398/+482 | |
2008-09-27 | Added 7z2lzma.bash. | Lasse Collin | 1 | -0/+114 | |
2008-09-17 | Miscellaneous LZ and LZMA encoder cleanups | Lasse Collin | 5 | -117/+29 | |
2008-09-13 | LZ decoder cleanup | Lasse Collin | 1 | -3/+2 | |
2008-09-13 | Renamed constants: | Lasse Collin | 58 | -224/+220 | |
- LZMA_VLI_VALUE_MAX -> LZMA_VLI_MAX - LZMA_VLI_VALUE_UNKNOWN -> LZMA_VLI_UNKNOWN - LZMA_HEADER_ERRRO -> LZMA_OPTIONS_ERROR | |||||
2008-09-12 | Improved the Stream Flags handling API. | Lasse Collin | 8 | -20/+129 | |
2008-09-11 | Simplified debug/known_sizes.c to match the relaxed | Lasse Collin | 1 | -9/+5 | |
requirements of Block encoder. | |||||
2008-09-11 | Remove a check from Block encoder that should have already | Lasse Collin | 1 | -5/+0 | |
been removed in 2ba01bfa755e47ff6af84a978e3c8d63d7d2775e. | |||||
2008-09-11 | Remove bogus #includes. | Lasse Collin | 4 | -36/+0 | |
2008-09-11 | Updated THANKS. | Lasse Collin | 1 | -0/+1 | |
2008-09-11 | Fix a compiler error on big endian systems that don't | Lasse Collin | 1 | -14/+18 | |
support unaligned memory access. | |||||
2008-09-11 | Silence a compiler warning. | Lasse Collin | 1 | -1/+1 | |
2008-09-10 | Bumped version to 4.999.6alpha. | Lasse Collin | 2 | -2/+2 | |
2008-09-10 | Check for LZMA_FILTER_RESERVED_START in filter_flags_encoder.c.larhzu/v4.999.5alpha | Lasse Collin | 1 | -3/+4 | |
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. | |||||
2008-09-10 | Filter handling cleanups | Lasse Collin | 6 | -151/+156 | |
2008-09-10 | Comments | Lasse Collin | 1 | -1/+5 | |
2008-09-10 | Cleaned up Block encoder and moved the no longer shared | Lasse Collin | 5 | -100/+66 | |
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. | |||||
2008-09-07 | Changed Filter ID of LZMA to 0x20. | Lasse Collin | 2 | -3/+3 | |
2008-09-06 | Comments | Lasse Collin | 5 | -39/+65 | |
2008-09-06 | Some API cleanups | Lasse Collin | 11 | -219/+301 | |
2008-09-04 | Added support for raw encoding and decoding to the command | Lasse Collin | 4 | -34/+50 | |
line tool, and made various cleanups. --lzma was renamed to --lzma1 to prevent people from accidentally using LZMA when they want LZMA2. | |||||
2008-09-04 | Don't allow LZMA_SYNC_FLUSH with decoders anymore. There's | Lasse Collin | 3 | -3/+2 | |
simply nothing that would use it. Allow LZMA_FINISH to the decoders, which will usually ignore it (auto decoder and Stream decoder being exceptions). | |||||
2008-09-03 | Minor updates to the file format specification. | Lasse Collin | 1 | -20/+85 | |
2008-09-02 | Command line tool fixes | Lasse Collin | 1 | -8/+13 | |
2008-09-02 | Auto decoder cleanup | Lasse Collin | 1 | -1/+1 | |
2008-09-02 | Updated auto decoder to handle LZMA_CONCATENATED when decoding | Lasse Collin | 1 | -16/+71 | |
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. | |||||
2008-09-02 | Stream decoder cleanups | Lasse Collin | 1 | -25/+32 | |
2008-09-02 | Some fixes to LZ encoder. | Lasse Collin | 3 | -75/+94 | |
2008-08-31 | Fix wrong pointer calculation in LZMA encoder. | Lasse Collin | 1 | -1/+3 | |
2008-08-28 | Sort of garbage collection commit. :-| Many things are still | Lasse Collin | 277 | -7477/+9050 | |
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. | |||||
2008-06-20 | Fix test_filter_flags to match the new restriction of lc+lp. | Lasse Collin | 1 | -0/+3 | |
2008-06-20 | Remove some redundant code from LZMA encoder. | Lasse Collin | 1 | -14/+1 | |
2008-06-19 | Add limit of lc + lp <= 4. Now we can allocate the | Lasse Collin | 6 | -91/+43 | |
literal coder as part of the main LZMA encoder or decoder structure. Make the LZMA decoder to rely on the current internal API to free the allocated memory in case an error occurs. | |||||
2008-06-18 | Comments | Lasse Collin | 1 | -5/+2 | |
2008-06-18 | Delete old code that was supposed to be already deleted | Lasse Collin | 1 | -30/+0 | |
from test_block_header.c. | |||||
2008-06-18 | Update the code to mostly match the new simpler file format | Lasse Collin | 109 | -7965/+4655 | |
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. The API of liblzma has got many changes and still some more will be done soon. While most of the code has been updated, some things are not fixed (the command line tool will choke with invalid filter chain, if nothing else). Subblock filter is somewhat broken for now. It will be updated once the encoded format of the Subblock filter has been decided. | |||||
2008-06-17 | Update the file format specification draft. The new one is | Lasse Collin | 1 | -1286/+508 | |
a lot simpler than the previous versions, but it also means that the existing code will change a lot. | |||||
2008-06-11 | Fix uninitialized variable in LZMA encoder. This was | Lasse Collin | 1 | -0/+2 | |
introduced in 369f72fd656f537a9a8e06f13e6d0d4c242be22f. | |||||
2008-06-11 | Improve command line integer parsing a little in lzma and | Lasse Collin | 2 | -22/+32 | |
lzmadec to make them accept also KiB in addition Ki etc. Fix also memory usage information in lzmadec --help. | |||||
2008-06-10 | s/decompressed/compressed/ in the command line tool's | Lasse Collin | 1 | -1/+1 | |
error message. | |||||
2008-06-01 | Fix a buffer overflow in the LZMA encoder. It was due to my | Lasse Collin | 8 | -620/+532 | |
misunderstanding of the code. There's no tiny fix for this problem, so I also cleaned up the code in general. This reduces the speed of the encoder 2-5 % in the fastest compression mode ("lzma -1"). High compression modes should have no noticeable performance difference. This commit breaks things (especially LZMA_SYNC_FLUSH) but I will fix them once the new format and LZMA2 has been roughly implemented. Plain LZMA won't support LZMA_SYNC_FLUSH at all and won't be supported in the new .lzma format. This may change still but this is what it looks like now. Support for known uncompressed size (that is, LZMA or LZMA2 without EOPM) is likely to go away. This means there will be API changes. | |||||
2008-05-30 | Typo fixes from meyering. | Lasse Collin | 2 | -3/+3 | |
2008-05-11 | Remove support for pre-C89 libc versions that lack memcpy, | Lasse Collin | 3 | -15/+4 | |
memmove, and memset. | |||||
2008-05-11 | Improved C99 compiler detection in configure.ac. It will | Lasse Collin | 1 | -12/+12 | |
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(). | |||||
2008-05-06 | Bunch of grammar fixes from meyering. | Lasse Collin | 4 | -9/+9 | |
2008-05-06 | Typo fix | Lasse Collin | 1 | -1/+1 | |
2008-05-04 | Don't print an error message on broken pipe unless --verbose | Lasse Collin | 1 | -1/+14 | |
is used. | |||||
2008-04-30 | Fix a crash with --format=alone if other filters than LZMA | Lasse Collin | 1 | -0/+9 | |
are specified on the command line. | |||||
2008-04-28 | Updated THANKS. | Lasse Collin | 1 | -0/+1 | |
2008-04-28 | Fixed wrong spelling "limitter" to "limiter". This affects | Lasse Collin | 9 | -29/+29 | |
liblzma's API. | |||||
2008-04-25 | Prevent LZ encoder from hanging with known uncompressedlarhzu/v4.999.3alpha | Lasse Collin | 1 | -2/+7 | |
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. | |||||
2008-04-25 | Removed src/liblzma/common/sysdefs.h symlink, which was | Lasse Collin | 5 | -5/+3 | |
annoying, because "make dist" put two copies of sysdefs.h into the tarball instead of the symlink. | |||||
2008-04-25 | Added memusage.c to debug directory. | Lasse Collin | 2 | -1/+57 | |
2008-04-25 | Bumped version number to 4.999.3alpha. It will become 5.0.0 | Lasse Collin | 4 | -16/+46 | |
once we have a stable release (won't be very soon). The version number is no longer related to version of LZMA SDK. Made some small Automake-related changes to toplevel Makefile.am and configure.ac. | |||||
2008-04-24 | Fix a memory leak by calling free(extra->data) in | Lasse Collin | 1 | -0/+1 | |
lzma_extra_free(). | |||||
2008-04-24 | Make unlzma and lzcat symlinks. | Lasse Collin | 1 | -0/+12 | |
2008-04-24 | Fixed a bug in command line option parsing. | Lasse Collin | 1 | -1/+1 | |
2008-04-24 | Added two assert()s. | Lasse Collin | 1 | -1/+3 | |
2008-04-24 | Switch to uint16_t as the type of range coder probabilities. | Lasse Collin | 1 | -6/+19 | |
2008-04-24 | Fix wrong return type (uint32_t -> bool). | Lasse Collin | 2 | -2/+2 | |
2008-04-24 | Fix data corruption in LZ encoder with LZMA_SYNC_FLUSH. | Lasse Collin | 3 | -5/+38 | |
2008-04-24 | Fix fastpos problem in Makefile.am when built with --enable-small. | Lasse Collin | 1 | -1/+4 | |
2008-04-24 | Use 64-bit integer as range encoder's cache size. This fixes a | Lasse Collin | 1 | -1/+1 | |
theoretical data corruption, which should be very hard to trigger even intentionally. | |||||
2008-03-24 | Replaced the range decoder optimization that used arithmetic | Lasse Collin | 3 | -74/+16 | |
right shift with as fast version that doesn't need arithmetic right shift. Removed the related check from configure.ac. | |||||
2008-03-22 | Take advantage of arithmetic right shift in range decoder. | Lasse Collin | 1 | -15/+37 | |
2008-03-22 | Added autoconf check to detect if we can use arithmetic | Lasse Collin | 2 | -0/+37 | |
right shift for optimizations. | |||||
2008-03-22 | Update a comment to use the variable name rep_len_decoder. | Lasse Collin | 1 | -1/+1 | |
(And BTW, the previous commit actually did change the program logic slightly.) | |||||
2008-03-22 | Demystified the "state" variable in LZMA code. Use the | Lasse Collin | 6 | -70/+107 | |
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. Renamed length coder variables. This commit doesn't change the program logic. | |||||
2008-03-14 | Fix data corruption in LZMA encoder. Note that this bug was | Lasse Collin | 1 | -0/+4 | |
specific to liblzma and was *not* present in LZMA SDK. | |||||
2008-03-14 | Fix a comment API header. | Lasse Collin | 1 | -1/+1 | |
2008-03-12 | Make lzma_stream.next_in const. Let's see if anyone complains. | Lasse Collin | 1 | -1/+1 | |
2008-03-11 | Apply a minor speed optimization to LZMA decoder. | Lasse Collin | 1 | -42/+43 | |
2008-03-11 | Initialize the last byte of the dictionary to zero so that | Lasse Collin | 1 | -0/+1 | |
lz_get_byte(lz, 0) returns zero. This was broken by 1a3b21859818e4d8e89a1da99699233c1bfd197d. | |||||
2008-03-10 | Really fix the price count initialization. | Lasse Collin | 1 | -2/+2 | |
2008-03-10 | Updated THANKS. | Lasse Collin | 1 | -0/+1 | |
2008-03-10 | Initialize align_price_count and match_price_count in | Lasse Collin | 1 | -0/+2 | |
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. | |||||
2008-03-10 | Always initialize lz->temp_size in lz_decoder.c. temp_size did | Lasse Collin | 1 | -5/+6 | |
get initialized as a side-effect after allocating a new decoder, but not when the decoder was reused. | |||||
2008-03-10 | Don't fill allocated memory with 0xFD when debugging is | Lasse Collin | 1 | -3/+4 | |
enabled. It hides errors from Valgrind. | |||||
2008-02-28 | Remove two redundant validity checks from the LZMA decoder. | Lasse Collin | 1 | -19/+4 | |
These are already checked elsewhere, so omitting these gives (very) tiny speed up. | |||||
2008-02-06 | Tiny clean up to file-format.txt. | Lasse Collin | 1 | -3/+3 | |
2008-02-02 | Don't memzero() the history buffer when initializing LZ | Lasse Collin | 1 | -4/+3 | |
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. | |||||
2008-02-01 | Do uncompressed size validation in raw encoder. This way | Lasse Collin | 1 | -17/+73 | |
it gets done for not only raw encoder, but also Block and LZMA_Alone encoders. | |||||
2008-02-01 | Avoid unneeded function call in raw_common.c. | Lasse Collin | 1 | -9/+11 | |
2008-01-26 | Updated THANKS. | Lasse Collin | 1 | -0/+1 | |
2008-01-26 | Added note.GNU-stack to x86 assembler files. It is needed | Lasse Collin | 2 | -0/+18 | |
when using non-executable stack. | |||||
2008-01-26 | Added api/lzma/easy.h. I had forgot to add this to the | Lasse Collin | 1 | -0/+174 | |
git repo. Thanks to Stephan Kulow. | |||||
2008-01-26 | Added more test files. | Lasse Collin | 4 | -0/+11 | |
2008-01-26 | Added more test files. | Lasse Collin | 3 | -0/+6 | |
2008-01-26 | Return LZMA_HEADER_ERROR if LZMA_SYNC_FLUSH is used with any | Lasse Collin | 2 | -0/+17 | |
of the so called simple filters. If there is demand, limited support for LZMA_SYNC_FLUSH may be added in future. After this commit, using LZMA_SYNC_FLUSH shouldn't cause undefined behavior in any situation. | |||||
2008-01-25 | Added more Multi-Block test files. Improved some | Lasse Collin | 4 | -6/+28 | |
descriptions in the test files' README. | |||||
2008-01-25 | Combine lzma_options_block validation needed by both Block | Lasse Collin | 3 | -48/+71 | |
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. Allow encoding and decoding Blocks with combinations of fields that are not allowed by the file format specification. Doing this requires that the application passes such a combination in lzma_options_lzma; liblzma doesn't do that, but it's not impossible that someone could find them useful in some custom file format. | |||||
2008-01-25 | Added test_memlimit.c. | Lasse Collin | 2 | -0/+116 | |
2008-01-25 | Improved the memory limitter: | Lasse Collin | 2 | -14/+118 | |
- 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. The description of lzma_memlimit_max() in memlimit.h is bad and should be improved. | |||||
2008-01-25 | Use more parenthesis in succeed() macro in tests/tests.h. | Lasse Collin | 1 | -1/+1 | |
2008-01-24 | Added more Multi-Block Stream test files. | Lasse Collin | 7 | -0/+23 | |
2008-01-24 | Added bunch of test files containing Multi-Block Streams. | Lasse Collin | 19 | -0/+53 | |
2008-01-23 | Fix decoding of empty Metadata Blocks, that don't have | Lasse Collin | 1 | -1/+3 | |
even the Metadata Flags field. Earlier the code allowed such files; now they are prohibited as the file format specification requires. | |||||
2008-01-23 | Fix a bug related to 99e12af4e2b866c011fe0106cd1e0bfdcc8fe9c6. | Lasse Collin | 1 | -6/+7 | |
lzma_metadata.header_metadata_size was not properly set to zero if the Metadata had only the Metadata Flags field. | |||||
2008-01-23 | Fix decoding of Extra Records that have empty Data. | Lasse Collin | 1 | -1/+12 | |
2008-01-23 | Add the trailing '\0' to lzma_extra.data as the API header | Lasse Collin | 1 | -1/+3 | |
already documents. | |||||
2008-01-23 | Added debug/full_flush.c. | Lasse Collin | 2 | -1/+107 | |
2008-01-23 | Return LZMA_STREAM_END instead of LZMA_OK if | Lasse Collin | 1 | -1/+5 | |
LZMA_SYNC_FLUSH or LZMA_FULL_FLUSH is used when there's no unfinished Block open. | |||||
2008-01-23 | Added bad-single-none-footer_filter_flags.lzma and | Lasse Collin | 3 | -0/+5 | |
bad-single-none-too_long_vli.lzma. | |||||
2008-01-23 | Fixed a typo. | Lasse Collin | 1 | -1/+1 | |
2008-01-23 | Fix a memory leak in the Subblock encoder. | Lasse Collin | 1 | -0/+1 | |
2008-01-23 | Fix Size of Header Metadata Block handling. Now | Lasse Collin | 4 | -17/+17 | |
lzma_metadata.header_metadata_size == LZMA_VLI_VALUE_UNKNOWN is not allowed at all. To indicate missing Header Metadata Block, header_metadata_size must be set to zero. This is what Metadata decoder does after this patch too. Note that other missing fields in lzma_metadata are still indicated with LZMA_VLI_VALUE_UNKNOWN. This isn't as illogical as it sounds at first, because missing Size of Header Metadata Block means that Header Metadata Block is not present in the Stream. With other Metadata fields, a missing field means only that the value is unknown. | |||||
2008-01-23 | Fix a memory leak in metadata_decoder.c. | Lasse Collin | 1 | -0/+1 | |
2008-01-23 | Fix the fix 863028cb7ad6d8d0455fa69348f56b376d7b908f which | Lasse Collin | 1 | -1/+4 | |
just moved to problem. Now it's really fixed. | |||||
2008-01-23 | Take advantage of return_if_error() macro in | Lasse Collin | 1 | -16/+8 | |
lzma_info_metadata_set() in info.c. | |||||
2008-01-23 | Fixed a dangling pointer that caused invalid free(). | Lasse Collin | 1 | -0/+1 | |
2008-01-22 | Added lzma_easy_* functions. These should make using | Lasse Collin | 9 | -2/+256 | |
liblzma as easy as using zlib, because the easy API don't require developers to know any fancy LZMA options. Note that Multi-Block Stream encoding is currently broken. The easy API should be OK, the bug(s) are elsewhere. | |||||
2008-01-22 | Fix Multi-Block Stream encoder's EOPM usage. | Lasse Collin | 1 | -1/+1 | |
2008-01-22 | Made lzma_extra pointers const in lzma_options_stream. | Lasse Collin | 2 | -4/+8 | |
2008-01-20 | Updated debug/sync_flush.c. | Lasse Collin | 1 | -2/+24 | |
2008-01-20 | Added debug/repeat.c. | Lasse Collin | 2 | -0/+44 | |
2008-01-20 | Fix alignment handling bugs in Subblock encoder. | Lasse Collin | 1 | -51/+119 | |
This leaves one known alignment bug unfixed: If repeat count doesn't fit into 28-bit integer, the encoder has to split this to multiple Subblocks with Subblock Type `Repeating Data'. The extra Subblocks may have wrong alignment. Correct alignment is restored after the split Repeating Data has been completely written out. Since the encoder doesn't even try to fix the alignment unless the size of Data is at least 4 bytes, to trigger this bug you need at least 4 GiB of repeating data with sequence length of 4 or more bytes. Since the worst thing done by this bug is misaligned data (no data corruption), this bug simply isn't worth fixing, because a proper fix isn't simple. | |||||
2008-01-19 | Implemented LZMA_SYNC_FLUSH support to the Subblock encoder. | Lasse Collin | 2 | -78/+214 | |
The API for handing Subfilters was changed to make it consistent with LZMA_SYNC_FLUSH. A few sanity checks were added for Subfilter handling. Some small bugs were fixed. More comments were added. | |||||
2008-01-19 | Revised the Delta filter implementation. The initialization | Lasse Collin | 10 | -200/+363 | |
function is still shared between encoder and decoder, but the actual coding is in separate files for encoder and decoder. There are now separate functions for the actual delta calculation depending on if Delta is the last filter in the chain or not. If it is the last, the new code copies the data from input to output buffer and does the delta calculation at the same time. The old code first copied the data, then did the delta in the target buffer, which required reading through the data twice. Support for LZMA_SYNC_FLUSH was added to the Delta encoder. This doesn't change anything in the file format. | |||||
2008-01-18 | Added the debug directory and the first debug tool | Lasse Collin | 5 | -0/+165 | |
(sync_flush). These tools are not built unless the user runs "make" in the debug directory. | |||||
2008-01-18 | Added test files to test usage of flush marker in LZMA. | Lasse Collin | 5 | -0/+12 | |
2008-01-18 | Fix LZMA_SYNC_FLUSH handling in LZ and LZMA encoders. | Lasse Collin | 3 | -33/+29 | |
That code is now almost completely in LZ coder, where it can be shared with other LZ77-based algorithms in future. | |||||
2008-01-18 | Don't add -g to CFLAGS when --enable-debug is specified. | Lasse Collin | 1 | -1/+0 | |
It's the job of the user to put that in CFLAGS. | |||||
2008-01-18 | Set stdin and stdout to binary mode on Windows. This patch is | Lasse Collin | 1 | -0/+9 | |
a forward port of b7b22fcb979a16d3a47c8001f058c9f7d4416068 from lzma-utils-legacy.git. I don't know if the new code base builds on Windows, but this is a start. | |||||
2008-01-18 | Added test_compress.sh and bunch of files needed by it. | Lasse Collin | 6 | -10/+433 | |
This new set of tests compress and decompress several test files with many different compression options. This set of tests will be extended later. | |||||
2008-01-17 | Subblock decoder: Don't exit the main loop in decode_buffer() | Lasse Collin | 1 | -133/+139 | |
too early if we hit End of Input while decoding a Subblock of type Repeating Data. To keep the loop termination condition elegant, the order of enumerations in coder->sequence were changed. To keep the case-labels in roughly the same order as the enumerations in coder->sequence, large chunks of code was moved around. This made the diff big and ugly compared to the amount of the actual changes made. | |||||
2008-01-17 | Fix wrong too small size of argument unfiltered_max | Lasse Collin | 1 | -1/+1 | |
in ia64_coder_init(). It triggered assert() in simple_coder.c, and could have caused a buffer overflow. This error was probably a copypaste mistake, since most of the simple filters use unfiltered_max = 4. | |||||
2008-01-17 | Added --delta to the output of "lzma --help". | Lasse Collin | 1 | -0/+4 | |
2008-01-17 | Fix Subblock docoder: If Subblock filter was used with known | Lasse Collin | 1 | -0/+6 | |
Uncompressed Size, and the last output byte was from RLE, the code didn't stop decoding as it should have done. | |||||
2008-01-16 | Tiny non-technical edits to file-format.txt. | Lasse Collin | 1 | -3/+3 | |
2008-01-16 | Plugged a memory leak in stream_decoder.c. | Lasse Collin | 1 | -0/+20 | |
2008-01-16 | Added memory leak detection to lzmadec.c. | Lasse Collin | 1 | -0/+3 | |
2008-01-16 | Added lzma_memlimit_count(). | Lasse Collin | 2 | -0/+29 | |
2008-01-16 | Added ARRAY_SIZE(array) macro. | Lasse Collin | 1 | -0/+4 | |
2008-01-16 | Make Uncompresed Size validation more strict | Lasse Collin | 1 | -1/+2 | |
in alone_decoder.c. | |||||
2008-01-15 | Free the allocated memory in lzmadec if debugging is | Lasse Collin | 1 | -0/+7 | |
enabled. This should make it possible to detect possible memory leaks with Valgrind. | |||||
2008-01-15 | Fix memory leaks from test_block_header.c. | Lasse Collin | 1 | -2/+17 | |
2008-01-15 | Use fastpos.h when encoding LZMA dictionary size in | Lasse Collin | 1 | -21/+19 | |
Filter Flags encoder. | |||||
2008-01-15 | Revised the fastpos code. It now uses the slightly faster | Lasse Collin | 10 | -47/+746 | |
table-based version from LZMA SDK 4.57. This should be fast on most systems. A simpler and smaller alternative version is also provided. On some CPUs this can be even a little faster than the default table-based version (see comments in fastpos.h), but on most systems the table-based code is faster. | |||||
2008-01-15 | Added bsr.h. | Lasse Collin | 2 | -0/+62 | |
2008-01-15 | Fixed assembler detection in configure.ac, and added | Lasse Collin | 1 | -16/+16 | |
detection for x86_64. | |||||
2008-01-15 | Omit invalid space from printf() format string | Lasse Collin | 1 | -1/+1 | |
in price_table_gen.c. |