aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-02-06Another grammar fixLasse Collin1-1/+1
2009-02-06Grammar fix in README.Lasse Collin1-1/+1
2009-02-06Some MSYS installations (e.g. MsysGit) don't includelarhzu/v4.999.8betaLasse Collin2-10/+13
install.exe, so don't rely on it.
2009-02-06Recreated the BCJ test files for x86 and SPARC. The old filesLasse Collin5-1/+1
were linked with crt*.o, which are copyrighted, and thus the old test files were not in the public domain as a whole. They are freely distributable though, but it is better to be careful and avoid including any copyrighted pieces in the test files. The new files are just compiled and assembled object files, and thus don't contain any copyrighted code.
2009-02-05Add the "windows" directory to EXTRA_DIST.Lasse Collin1-0/+1
2009-02-05Added initial experimental makefile for use with MinGW.Lasse Collin3-0/+597
2009-02-05Various code cleanups the the xz command line tool.Lasse Collin18-246/+399
It now builds with MinGW.
2009-02-03Another utime() fix.Lasse Collin1-4/+5
2009-02-03Fix wrong filename argument for utime() and utimes().Lasse Collin1-2/+2
This doesn't affect most systems, since most systems have better functions available.
2009-02-02Updated the x86 assembler code:Lasse Collin3-28/+144
- Use call/ret pair to get instruction pointer for PIC. - Use PIC only if PIC or __PIC__ is #defined. - The code should work on MinGW and Darwin in addition to GNU/Linux and Solaris.
2009-02-02Modify LZMA_API macro so that it works on Windows withLasse Collin54-176/+177
other compilers than MinGW. This may hurt readability of the API headers slightly, but I don't know any better way to do this.
2009-02-01Fix a bug in lzma_block_buffer_decode(), although thisLasse Collin1-4/+4
function should be rewritten anyway.
2009-02-01Added initial version of raw buffer-to-buffer codingLasse Collin4-20/+221
functions, and cleaned up filter.h API header a little. May be very buggy, not tested yet.
2009-02-01Fix missing newlines in xzdec.c.Lasse Collin1-3/+3
2009-02-01Use __cdecl also for function pointers in liblzma API whenLasse Collin3-20/+20
on Windows.
2009-01-31Add LZMA_API to liblzma API headers. It's useful at leastLasse Collin17-88/+131
on Windows. sysdefs.h no longer #includes lzma.h, so lzma.h has to be #included separately where needed.
2009-01-31Use _WIN32 instead of WIN32 in xzdec.c to test if compiling on Windows.Lasse Collin1-2/+2
2009-01-31Fix two lines in lzma.h on which the # wasn't at theLasse Collin1-2/+2
beginning of the line.
2009-01-31Add support for using liblzma headers in MSVC, which has noLasse Collin1-24/+46
stdint.h or inttypes.h.
2009-01-31Fix # -> ## in a macro in lzma.h.Lasse Collin1-1/+1
2009-01-30Updated README.Lasse Collin1-10/+20
2009-01-30Remove dangling crc64_init.c.Lasse Collin1-55/+0
2009-01-28The .xz file format specification version 1.0.0 is nowLasse Collin1-35/+49
officially released. The format has been technically the same since 2008-11-19, but now that it is frozen, people can start using it without a fear that the format will break.
2009-01-28Updated THANKS.Lasse Collin1-0/+1
2009-01-28Fix uninitialized variables in alone_decoder.c. This bug wasLasse Collin1-0/+2
triggered by the previous commit, since these variables were not used by anything before support for a preset dictionary.
2009-01-27Added initial support for preset dictionary for raw LZMA1Lasse Collin8-27/+77
and LZMA2. It is not supported by the .xz format or the xz command line tool yet.
2009-01-26Regenerate the CRC tables without trailing blanks.Lasse Collin4-2024/+2024
2009-01-26remove trailing blanks from all but .xz filesJim Meyering7-13/+12
2009-01-26Add lzma_block_buffer_decode().Lasse Collin3-0/+129
2009-01-26Add more sanity checks to lzma_stream_buffer_decode().Lasse Collin1-0/+7
2009-01-26Avoid hardcoded constant in easy.c.Lasse Collin1-1/+1
2009-01-26Tiny bit better sanity check in block_util.cLasse Collin1-1/+1
2009-01-25Fix a dumb bug in Block decoder, which made it returnLasse Collin1-3/+3
LZMA_DATA_ERROR with valid data. The bug was added in e114502b2bc371e4a45449832cb69be036360722.
2009-01-23Added lzma_stream_buffer_decode() and made minor cleanups.Lasse Collin4-2/+144
2009-01-22Fix a comment.Lasse Collin1-1/+1
2009-01-20Add some single-call buffer-to-buffer coding functions.Lasse Collin9-26/+768
2009-01-20Block encoder cleanupsLasse Collin2-21/+32
2009-01-20Use LZMA_PROG_ERROR in lzma_code() as documented in base.h.Lasse Collin1-16/+8
2009-01-19Fix handling of non-fatal errors in lzma_code().Lasse Collin1-1/+8
2009-01-19Move some LZMA2 constants to lzma2_encoder.h so that theyLasse Collin3-14/+16
can be used outside lzma2_encoder.c.
2009-01-19Remove dead code.Lasse Collin1-8/+0
2009-01-17Beta was supposed to be API stable but I had forgot to renameLasse Collin8-14/+14
lzma_memlimit_encoder and lzma_memlimit_decoder to lzma_raw_encoder_memlimit and lzma_raw_decoder_memlimit. :-( Now it is fixed. Hopefully it doesn't cause too much trouble to those who already thought API is stable.
2009-01-15Updated THANKS.Lasse Collin1-0/+1
2009-01-15Fixed a bug in 7z2lzma.bash to make it work with .7z filesLasse Collin1-23/+24
that use something else than 2^n as the dictionary size. Thanks to Dan Shechter for the bug report.
2009-01-07Use pthread_sigmask() instead of sigprocmask() when pthreadsLasse Collin3-2/+9
are enabled.
2008-12-31Bumped version to 4.999.8beta right after the releaseLasse Collin2-2/+2
of 4.999.7beta.
2008-12-31Disable Subblock filter from test_compress.sh since it islarhzu/v4.999.7betaLasse Collin1-9/+13
disabled by default in configure.ac.
2008-12-31Disable both Subblock encoder and decoder my default,Lasse Collin1-1/+1
since they are not finished and may have security issues too.
2008-12-31Update some files in debug directory.Lasse Collin3-6/+0
2008-12-31Prepare for 4.999.7beta release.Lasse Collin4-22/+22
2008-12-31Cleaned up some comments in the API headers.Lasse Collin3-14/+15
2008-12-31Renamed lzma_options_simple to lzma_options_bcj in the API.Lasse Collin7-22/+22
The internal implementation is still using the name "simple". It may need some cleanups, so I look at it later.
2008-12-31Fixed missing quoting in configure.ac.Lasse Collin1-19/+19
2008-12-31Updated src/liblzma/Makefile.am to use liblzma.pc.in, whichLasse Collin1-2/+2
should have been in the previous commit.
2008-12-31Remove lzma_init() and other init functions from liblzma API.Lasse Collin37-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-27Use 28 MiB as memory usage limit for encoding in test_compress.sh.Lasse Collin1-1/+1
2008-12-27Revert a change made in 3b34851de1eaf358cf9268922fa0eeed8278d680Lasse Collin1-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-27Some xz command line tool improvements.Lasse Collin5-44/+121
2008-12-27Bunch of liblzma tweaks, including some API changes.Lasse Collin23-262/+294
The API and ABI should now be very close to stable, although the code behind it isn't yet.
2008-12-18Updated Makefile.am that was missing from the previous commit.Lasse Collin1-1/+0
2008-12-17Remove the alignment functions for now. Maybe they willLasse Collin4-176/+0
be added back in some form later, but the current version wasn't modular, so it would need fixing anyway.
2008-12-17xz message handling improvementsLasse Collin3-14/+146
2008-12-15Fix a dumb bug in .lzma decoder which was introduced inLasse Collin1-15/+14
the previous commit. (Probably the previous commit has other bugs too, it wasn't tested.)
2008-12-15Bunch of liblzma API cleanups and fixes.Lasse Collin27-426/+863
2008-12-15The LZMA2 decoder fix introduced a bug to LZ decoder,Lasse Collin1-10/+23
which made LZ decoder return too early after dictionary reset. This fixes it.
2008-12-15Added two new test files.Lasse Collin3-0/+7
2008-12-15Fix data corruption in LZMA2 decoder.Lasse Collin3-8/+32
2008-12-13Name the package "xz" in configure.ac.Lasse Collin1-7/+4
2008-12-12Some adjustments to GCC warning flags. The important changeLasse Collin1-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-10Remove obsolete comment.Lasse Collin1-1/+0
2008-12-10Use "decompression" consistently in --long-help.Lasse Collin1-1/+1
2008-12-10Added preset=NUM to --lzma1 and --lzma2. This makes it easyLasse Collin2-0/+9
to take a preset as a template and modify it a little.
2008-12-09Put the file format specification into the public domain.Lasse Collin1-15/+9
Same will be done to the actual code later.
2008-12-09Make the memusage functions of LZMA1 and LZMA2 encodersLasse Collin3-16/+35
to validate the filter options. Add missing validation to LZMA2 encoder when options are changed in the middle of encoding.
2008-12-09Updated THANKS.Lasse Collin1-0/+1
2008-12-01In command line tool, take advantage of memusage calculation'sLasse Collin1-4/+4
ability to also validate the filter chain and options (not implemented yet for all filters).
2008-12-01Validate the filter chain before checking filter-specificLasse Collin1-4/+10
memory usage.
2008-12-01Make the memusage functions of LZMA1 and LZMA2 decodersLasse Collin3-9/+17
to validate the filter options.
2008-12-01Added the changes for Delta filter that should have beenLasse Collin2-2/+2
part of 656ec87882ee74b192c4ea4a233a235eca7b04d4.
2008-12-01LZMA2 decoder cleanups. Make it require new LZMA propertiesLasse Collin1-54/+41
also in the first LZMA chunk after a dictionary reset in uncompressed chunk.
2008-12-01Added lzma_delta_coder_memusage() which also validatesLasse Collin8-39/+75
the options.
2008-11-29Automake includes the m4 directory, so don't add it inLasse Collin2-1/+1
Makefile.am separately. Updated THANKS.
2008-11-28Tested using COLUMNS environment variable to avoid brokenLasse Collin1-5/+9
progress indicator but since COLUMNS isn't usually available, the code was left commented out.
2008-11-27Cleanups to message.c.Lasse Collin1-29/+18
2008-11-25Remove the nowadays unneeded memory limitting malloc() wrapper.Lasse Collin7-614/+0
2008-11-23VLI encoder and decoder cleanups. Made encoder returnLasse Collin2-13/+33
LZMA_PROG_ERROR in single-call mode if there's no output space.
2008-11-22Typo fixLasse Collin1-1/+1
2008-11-20Support NetBSD's errno for O_NOFOLLOW.Lasse Collin1-0/+8
2008-11-20Build xzdec and lzmadec from xzdec.c. xzdec supports only .xzLasse Collin2-178/+140
files and lzmadec only .lzma files.
2008-11-20Minor cleanups to xzdec.Lasse Collin1-10/+10
2008-11-19Added missing check for uint16_t.Lasse Collin1-0/+1
2008-11-19Renamed lzma to xz and lzmadec to xzdec. We create symlinksLasse Collin28-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-19Oh well, big messy commit again. Some highlights:Lasse Collin112-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-09Fixed the test that should have been fixed as partLasse Collin1-1/+1
of 1e8e4fd1f3e50129b4541406ad765d2aa1233943.
2008-10-07Fixed some help messages.Lasse Collin1-3/+3
2008-10-07Made the preset numbering more logical in liblzma API.Lasse Collin5-17/+18
2008-10-03Removed fi from po/LINGUAS.Lasse Collin1-1/+0
2008-10-03Fixed suffix handling with --format=raw.Lasse Collin1-9/+19
2008-10-02Initial changes to change the suffix of the new format to .xz.Lasse Collin6-52/+133
This also fixes a bug related to --suffix option. Some issues with suffixes with --format=raw were not fixed.
2008-09-30Renamed the test files from .lzma suffix to .xz suffix.Lasse Collin59-68/+66
2008-09-30Fixed Stream decoder to actually use the first_stream variable.Lasse Collin1-0/+5
2008-09-30Added one more test file.Lasse Collin2-4/+11
2008-09-30Fixed uninitialized variable in Stream decoder.Lasse Collin1-0/+1
2008-09-30Added two test files.Lasse Collin3-0/+6
2008-09-27Fix conflicting Subblock helper filter's ID.Lasse Collin1-1/+1
2008-09-27Changed magic bytes to match the updated spec. FilenameLasse Collin56-3/+3
suffix wasn't changed yet.
2008-09-27Remove po/fi.po since I'm not keeping it updated for now.Lasse Collin1-446/+0
2008-09-27Fix also test_compress.sh.Lasse Collin1-3/+3
2008-09-27Fixed compilation of test_filter_flags.c, which was broken byLasse Collin1-8/+8
1dcecfb09b55157b8653d747963069c8bed74f04.
2008-09-27Updated file format specification. It changes the suffixLasse Collin1-93/+32
of the new format to .xz and removes the recently added LZMA filter.
2008-09-27Some API changes, bug fixes, cleanups etc.Lasse Collin41-398/+482
2008-09-27Added 7z2lzma.bash.Lasse Collin1-0/+114
2008-09-17Miscellaneous LZ and LZMA encoder cleanupsLasse Collin5-117/+29
2008-09-13LZ decoder cleanupLasse Collin1-3/+2
2008-09-13Renamed constants:Lasse Collin58-224/+220
- LZMA_VLI_VALUE_MAX -> LZMA_VLI_MAX - LZMA_VLI_VALUE_UNKNOWN -> LZMA_VLI_UNKNOWN - LZMA_HEADER_ERRRO -> LZMA_OPTIONS_ERROR
2008-09-12Improved the Stream Flags handling API.Lasse Collin8-20/+129
2008-09-11Simplified debug/known_sizes.c to match the relaxedLasse Collin1-9/+5
requirements of Block encoder.
2008-09-11Remove a check from Block encoder that should have alreadyLasse Collin1-5/+0
been removed in 2ba01bfa755e47ff6af84a978e3c8d63d7d2775e.
2008-09-11Remove bogus #includes.Lasse Collin4-36/+0
2008-09-11Updated THANKS.Lasse Collin1-0/+1
2008-09-11Fix a compiler error on big endian systems that don'tLasse Collin1-14/+18
support unaligned memory access.
2008-09-11Silence a compiler warning.Lasse Collin1-1/+1
2008-09-10Bumped version to 4.999.6alpha.Lasse Collin2-2/+2
2008-09-10Check for LZMA_FILTER_RESERVED_START in filter_flags_encoder.c.larhzu/v4.999.5alphaLasse Collin1-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-10Filter handling cleanupsLasse Collin6-151/+156
2008-09-10CommentsLasse Collin1-1/+5
2008-09-10Cleaned up Block encoder and moved the no longer sharedLasse Collin5-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-07Changed Filter ID of LZMA to 0x20.Lasse Collin2-3/+3
2008-09-06CommentsLasse Collin5-39/+65
2008-09-06Some API cleanupsLasse Collin11-219/+301
2008-09-04Added support for raw encoding and decoding to the commandLasse Collin4-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-04Don't allow LZMA_SYNC_FLUSH with decoders anymore. There'sLasse Collin3-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-03Minor updates to the file format specification.Lasse Collin1-20/+85
2008-09-02Command line tool fixesLasse Collin1-8/+13
2008-09-02Auto decoder cleanupLasse Collin1-1/+1
2008-09-02Updated auto decoder to handle LZMA_CONCATENATED when decodingLasse Collin1-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-02Stream decoder cleanupsLasse Collin1-25/+32
2008-09-02Some fixes to LZ encoder.Lasse Collin3-75/+94
2008-08-31Fix wrong pointer calculation in LZMA encoder.Lasse Collin1-1/+3
2008-08-28Sort of garbage collection commit. :-| Many things are stillLasse Collin277-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-20Fix test_filter_flags to match the new restriction of lc+lp.Lasse Collin1-0/+3
2008-06-20Remove some redundant code from LZMA encoder.Lasse Collin1-14/+1
2008-06-19Add limit of lc + lp <= 4. Now we can allocate theLasse Collin6-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-18CommentsLasse Collin1-5/+2
2008-06-18Delete old code that was supposed to be already deletedLasse Collin1-30/+0
from test_block_header.c.
2008-06-18Update the code to mostly match the new simpler file formatLasse Collin109-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-17Update the file format specification draft. The new one isLasse Collin1-1286/+508
a lot simpler than the previous versions, but it also means that the existing code will change a lot.
2008-06-11Fix uninitialized variable in LZMA encoder. This wasLasse Collin1-0/+2
introduced in 369f72fd656f537a9a8e06f13e6d0d4c242be22f.
2008-06-11Improve command line integer parsing a little in lzma andLasse Collin2-22/+32
lzmadec to make them accept also KiB in addition Ki etc. Fix also memory usage information in lzmadec --help.
2008-06-10s/decompressed/compressed/ in the command line tool'sLasse Collin1-1/+1
error message.
2008-06-01Fix a buffer overflow in the LZMA encoder. It was due to myLasse Collin8-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-30Typo fixes from meyering.Lasse Collin2-3/+3
2008-05-11Remove support for pre-C89 libc versions that lack memcpy,Lasse Collin3-15/+4
memmove, and memset.
2008-05-11Improved C99 compiler detection in configure.ac. It willLasse Collin1-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-06Bunch of grammar fixes from meyering.Lasse Collin4-9/+9
2008-05-06Typo fixLasse Collin1-1/+1
2008-05-04Don't print an error message on broken pipe unless --verboseLasse Collin1-1/+14
is used.
2008-04-30Fix a crash with --format=alone if other filters than LZMALasse Collin1-0/+9
are specified on the command line.
2008-04-28Updated THANKS.Lasse Collin1-0/+1
2008-04-28Fixed wrong spelling "limitter" to "limiter". This affectsLasse Collin9-29/+29
liblzma's API.
2008-04-25Prevent LZ encoder from hanging with known uncompressedlarhzu/v4.999.3alphaLasse Collin1-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-25Removed src/liblzma/common/sysdefs.h symlink, which wasLasse Collin5-5/+3
annoying, because "make dist" put two copies of sysdefs.h into the tarball instead of the symlink.
2008-04-25Added memusage.c to debug directory.Lasse Collin2-1/+57
2008-04-25Bumped version number to 4.999.3alpha. It will become 5.0.0Lasse Collin4-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-24Fix a memory leak by calling free(extra->data) inLasse Collin1-0/+1
lzma_extra_free().
2008-04-24Make unlzma and lzcat symlinks.Lasse Collin1-0/+12
2008-04-24Fixed a bug in command line option parsing.Lasse Collin1-1/+1
2008-04-24Added two assert()s.Lasse Collin1-1/+3
2008-04-24Switch to uint16_t as the type of range coder probabilities.Lasse Collin1-6/+19
2008-04-24Fix wrong return type (uint32_t -> bool).Lasse Collin2-2/+2
2008-04-24Fix data corruption in LZ encoder with LZMA_SYNC_FLUSH.Lasse Collin3-5/+38
2008-04-24Fix fastpos problem in Makefile.am when built with --enable-small.Lasse Collin1-1/+4
2008-04-24Use 64-bit integer as range encoder's cache size. This fixes aLasse Collin1-1/+1
theoretical data corruption, which should be very hard to trigger even intentionally.
2008-03-24Replaced the range decoder optimization that used arithmeticLasse Collin3-74/+16
right shift with as fast version that doesn't need arithmetic right shift. Removed the related check from configure.ac.
2008-03-22Take advantage of arithmetic right shift in range decoder.Lasse Collin1-15/+37
2008-03-22Added autoconf check to detect if we can use arithmeticLasse Collin2-0/+37
right shift for optimizations.
2008-03-22Update a comment to use the variable name rep_len_decoder.Lasse Collin1-1/+1
(And BTW, the previous commit actually did change the program logic slightly.)
2008-03-22Demystified the "state" variable in LZMA code. Use theLasse Collin6-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-14Fix data corruption in LZMA encoder. Note that this bug wasLasse Collin1-0/+4
specific to liblzma and was *not* present in LZMA SDK.
2008-03-14Fix a comment API header.Lasse Collin1-1/+1
2008-03-12Make lzma_stream.next_in const. Let's see if anyone complains.Lasse Collin1-1/+1
2008-03-11Apply a minor speed optimization to LZMA decoder.Lasse Collin1-42/+43
2008-03-11Initialize the last byte of the dictionary to zero so thatLasse Collin1-0/+1
lz_get_byte(lz, 0) returns zero. This was broken by 1a3b21859818e4d8e89a1da99699233c1bfd197d.
2008-03-10Really fix the price count initialization.Lasse Collin1-2/+2
2008-03-10Updated THANKS.Lasse Collin1-0/+1
2008-03-10Initialize align_price_count and match_price_count inLasse Collin1-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-10Always initialize lz->temp_size in lz_decoder.c. temp_size didLasse Collin1-5/+6
get initialized as a side-effect after allocating a new decoder, but not when the decoder was reused.
2008-03-10Don't fill allocated memory with 0xFD when debugging isLasse Collin1-3/+4
enabled. It hides errors from Valgrind.
2008-02-28Remove two redundant validity checks from the LZMA decoder.Lasse Collin1-19/+4
These are already checked elsewhere, so omitting these gives (very) tiny speed up.
2008-02-06Tiny clean up to file-format.txt.Lasse Collin1-3/+3
2008-02-02Don't memzero() the history buffer when initializing LZLasse Collin1-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-01Do uncompressed size validation in raw encoder. This wayLasse Collin1-17/+73
it gets done for not only raw encoder, but also Block and LZMA_Alone encoders.
2008-02-01Avoid unneeded function call in raw_common.c.Lasse Collin1-9/+11
2008-01-26Updated THANKS.Lasse Collin1-0/+1
2008-01-26Added note.GNU-stack to x86 assembler files. It is neededLasse Collin2-0/+18
when using non-executable stack.
2008-01-26Added api/lzma/easy.h. I had forgot to add this to theLasse Collin1-0/+174
git repo. Thanks to Stephan Kulow.
2008-01-26Added more test files.Lasse Collin4-0/+11
2008-01-26Added more test files.Lasse Collin3-0/+6
2008-01-26Return LZMA_HEADER_ERROR if LZMA_SYNC_FLUSH is used with anyLasse Collin2-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-25Added more Multi-Block test files. Improved someLasse Collin4-6/+28
descriptions in the test files' README.