Lasse Collin
ef7890d564
In command line tool, take advantage of memusage calculation's
...
ability to also validate the filter chain and options (not
implemented yet for all filters).
2008-12-01 23:04:12 +02:00
Lasse Collin
ccd57afa09
Validate the filter chain before checking filter-specific
...
memory usage.
2008-12-01 22:59:28 +02:00
Lasse Collin
c596fda40b
Make the memusage functions of LZMA1 and LZMA2 decoders
...
to validate the filter options.
2008-12-01 22:58:22 +02:00
Lasse Collin
c58f469be5
Added the changes for Delta filter that should have been
...
part of 656ec87882
.
2008-12-01 22:55:18 +02:00
Lasse Collin
cd70801520
LZMA2 decoder cleanups. Make it require new LZMA properties
...
also in the first LZMA chunk after a dictionary reset in
uncompressed chunk.
2008-12-01 22:50:28 +02:00
Lasse Collin
656ec87882
Added lzma_delta_coder_memusage() which also validates
...
the options.
2008-12-01 16:30:11 +02:00
Lasse Collin
c7007ddf06
Tested using COLUMNS environment variable to avoid broken
...
progress indicator but since COLUMNS isn't usually available,
the code was left commented out.
2008-11-28 12:00:48 +02:00
Lasse Collin
ae65dcfde2
Cleanups to message.c.
2008-11-27 19:28:59 +02:00
Lasse Collin
a8368b75cd
Remove the nowadays unneeded memory limitting malloc() wrapper.
2008-11-25 02:37:47 +02:00
Lasse Collin
69472ee5f0
VLI encoder and decoder cleanups. Made encoder return
...
LZMA_PROG_ERROR in single-call mode if there's no output
space.
2008-11-23 15:09:03 +02:00
Lasse Collin
4249c8c15a
Typo fix
2008-11-22 17:44:33 +02:00
Lasse Collin
6d1d6f4598
Support NetBSD's errno for O_NOFOLLOW.
2008-11-20 22:59:10 +02:00
Lasse Collin
f901a290ee
Build xzdec and lzmadec from xzdec.c. xzdec supports only .xz
...
files and lzmadec only .lzma files.
2008-11-20 18:05:52 +02:00
Lasse Collin
86a0ed8f01
Minor cleanups to xzdec.
2008-11-20 11:01:29 +02:00
Lasse Collin
1880a3927b
Renamed lzma to xz and lzmadec to xzdec. We create symlinks
...
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 23:52:24 +02:00
Lasse Collin
e114502b2b
Oh well, big messy commit again. Some highlights:
...
- 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-11-19 20:46:52 +02:00
Lasse Collin
0f295bf7a3
Fixed some help messages.
2008-10-07 16:42:18 +03:00
Lasse Collin
1e8e4fd1f3
Made the preset numbering more logical in liblzma API.
2008-10-07 09:40:31 +03:00
Lasse Collin
fcfb86c777
Fixed suffix handling with --format=raw.
2008-10-03 07:06:48 +03:00
Lasse Collin
bd137524f2
Initial changes to change the suffix of the new format to .xz.
...
This also fixes a bug related to --suffix option. Some issues
with suffixes with --format=raw were not fixed.
2008-10-02 22:51:46 +03:00
Lasse Collin
8e60c889a2
Fixed Stream decoder to actually use the first_stream variable.
2008-09-30 13:57:44 +03:00
Lasse Collin
a6639022fd
Fixed uninitialized variable in Stream decoder.
2008-09-30 13:34:07 +03:00
Lasse Collin
ea560b0ea8
Fix conflicting Subblock helper filter's ID.
2008-09-27 23:49:24 +03:00
Lasse Collin
ad97483b6e
Changed magic bytes to match the updated spec. Filename
...
suffix wasn't changed yet.
2008-09-27 23:37:13 +03:00
Lasse Collin
1dcecfb09b
Some API changes, bug fixes, cleanups etc.
2008-09-27 19:09:21 +03:00
Lasse Collin
f147666a5c
Miscellaneous LZ and LZMA encoder cleanups
2008-09-17 22:11:39 +03:00
Lasse Collin
13d68b0698
LZ decoder cleanup
2008-09-13 13:54:00 +03:00
Lasse Collin
13a74b78e3
Renamed constants:
...
- LZMA_VLI_VALUE_MAX -> LZMA_VLI_MAX
- LZMA_VLI_VALUE_UNKNOWN -> LZMA_VLI_UNKNOWN
- LZMA_HEADER_ERRRO -> LZMA_OPTIONS_ERROR
2008-09-13 12:10:43 +03:00
Lasse Collin
320601b2c7
Improved the Stream Flags handling API.
2008-09-12 22:41:40 +03:00
Lasse Collin
16e8b98f26
Remove a check from Block encoder that should have already
...
been removed in 2ba01bfa75
.
2008-09-11 23:09:24 +03:00
Lasse Collin
5a710c3805
Remove bogus #includes.
2008-09-11 20:02:38 +03:00
Lasse Collin
962f2231d4
Fix a compiler error on big endian systems that don't
...
support unaligned memory access.
2008-09-11 10:48:12 +03:00
Lasse Collin
fa3ab0df8a
Silence a compiler warning.
2008-09-11 10:46:14 +03:00
Lasse Collin
9373e81e18
Bumped version to 4.999.6alpha.
2008-09-10 19:16:32 +03:00
Lasse Collin
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.
2008-09-10 17:02:00 +03:00
Lasse Collin
123ab0acec
Filter handling cleanups
2008-09-10 16:44:32 +03:00
Lasse Collin
9cfcd0c4f2
Comments
2008-09-10 00:33:00 +03:00
Lasse Collin
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.
2008-09-10 00:27:02 +03:00
Lasse Collin
07efcb5a6b
Changed Filter ID of LZMA to 0x20.
2008-09-07 10:23:13 +03:00
Lasse Collin
32fe5fa541
Comments
2008-09-06 23:42:50 +03:00
Lasse Collin
0a31ed9d5e
Some API cleanups
2008-09-06 15:14:30 +03:00
Lasse Collin
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.
2008-09-04 11:53:06 +03:00
Lasse Collin
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).
2008-09-04 10:39:15 +03:00
Lasse Collin
9c75b089b4
Command line tool fixes
2008-09-02 19:33:32 +03:00
Lasse Collin
bab0590504
Auto decoder cleanup
2008-09-02 19:31:42 +03:00
Lasse Collin
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.
2008-09-02 19:12:12 +03:00
Lasse Collin
80c4158f19
Stream decoder cleanups
2008-09-02 14:56:52 +03:00
Lasse Collin
fc68165745
Some fixes to LZ encoder.
2008-09-02 11:45:39 +03:00
Lasse Collin
ede675f9ac
Fix wrong pointer calculation in LZMA encoder.
2008-08-31 11:47:01 +03:00
Lasse Collin
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.
2008-08-28 22:53:15 +03:00