Lasse Collin [Fri, 10 Apr 2009 08:17:02 +0000 (11:17 +0300)]
Fix off-by-one in LZ decoder.
Fortunately, this bug had no security risk other than accepting
some corrupt files as valid.
Pavel Roskin [Tue, 31 Mar 2009 16:15:01 +0000 (12:15 -0400)]
Fix minor typos in README
Lasse Collin [Tue, 31 Mar 2009 18:52:51 +0000 (21:52 +0300)]
Add a note and work-around instructions to README about
problems detecting a C99 compiler when some standard
headers are missing.
Lasse Collin [Wed, 18 Mar 2009 14:54:38 +0000 (16:54 +0200)]
Updated THANKS.
Lasse Collin [Wed, 18 Mar 2009 14:51:41 +0000 (16:51 +0200)]
Fix wrong macro names in lc_cpucores.m4 and cpucores.h.
Thanks to Bert Wesarg.
Lasse Collin [Sun, 1 Mar 2009 07:03:08 +0000 (09:03 +0200)]
Test for Linux-specific sysinfo() only on Linux systems.
Some other systems have sysinfo() with different semantics.
Lasse Collin [Sun, 1 Mar 2009 07:00:06 +0000 (09:00 +0200)]
Added AC_CONFIG_MACRO_DIR to configure.ac.
Lasse Collin [Sun, 1 Mar 2009 06:58:41 +0000 (08:58 +0200)]
Fix the Autoconf test for getopt_long replacement.
It was broken by
e114502b2bc371e4a45449832cb69be036360722.
Lasse Collin [Sun, 22 Feb 2009 17:07:54 +0000 (19:07 +0200)]
Add a rough explanation of --extreme to output of --help.
Lasse Collin [Sun, 22 Feb 2009 16:52:49 +0000 (18:52 +0200)]
Fixes to progress message handling in xz:
- Don't use Windows-specific code on Windows. The old code
required at least Windows 2000. Now it should work on
Windows 98 and later, and maybe on Windows 95 too.
- Use less precision when showing estimated remaining time.
- Fix some small design issues.
Lasse Collin [Wed, 18 Feb 2009 11:00:10 +0000 (13:00 +0200)]
Added files missing from the previous commit.
Lasse Collin [Tue, 17 Feb 2009 08:43:00 +0000 (10:43 +0200)]
Added lzma_easy_buffer_encode(). Splitted easy.c into small
pieces to avoid unneeded dependencies making statically
linked applications bigger than needed.
Lasse Collin [Sun, 15 Feb 2009 13:48:45 +0000 (15:48 +0200)]
Make physmem.h work on old Windows versions.
Thanks to Hongbo Ni for the original patch.
Lasse Collin [Sat, 14 Feb 2009 18:44:52 +0000 (20:44 +0200)]
Fix microsecond vs. nanosecond confusion in my_time().
Lasse Collin [Fri, 13 Feb 2009 22:45:29 +0000 (00:45 +0200)]
Cleanups to the code that detects the amount of RAM and
the number of CPU cores. Added support for using sysinfo()
on Linux systems whose libc lacks appropriate sysconf()
support (at least dietlibc). The Autoconf macros were
split into separate files, and CPU core count detection
was moved from hardware.c to cpucores.h. The core count
isn't used for anything real for now, so a problematic
part in process.c was commented out.
Lasse Collin [Fri, 13 Feb 2009 16:23:50 +0000 (18:23 +0200)]
Initial port to DOS using DJGPP.
Lasse Collin [Fri, 13 Feb 2009 16:02:05 +0000 (18:02 +0200)]
Windows port: Take advantage of the version number macros.
Now the version number is not duplicated in the
Windows-specific files anymore.
Lasse Collin [Fri, 13 Feb 2009 16:00:03 +0000 (18:00 +0200)]
Changed how the version number is specified in various places.
Now configure.ac will get the version number directly from
src/liblzma/api/lzma/version.h. The intent is to reduce the
number of places where the version number is duplicated. In
future, support for displaying Git commit ID may be added too.
Lasse Collin [Fri, 13 Feb 2009 15:30:30 +0000 (17:30 +0200)]
Fix handling of integrity check type in the xz command line tool.
Lasse Collin [Fri, 13 Feb 2009 15:29:02 +0000 (17:29 +0200)]
Improve support for DOS-like systems.
Here DOS-like means DOS, Windows, and OS/2.
Lasse Collin [Wed, 11 Feb 2009 18:02:32 +0000 (20:02 +0200)]
Remove dead directories from .gitignore.
Jim Meyering [Wed, 11 Feb 2009 13:45:14 +0000 (14:45 +0100)]
.gitignore vs. Makefiles
How about this for those of us who do srcdir builds?
Lasse Collin [Tue, 10 Feb 2009 19:48:35 +0000 (21:48 +0200)]
Removed Makefile from .gitignore since not all Makefiles
in the repository are generated by Autotools. People
should do test builds in a separate build directory anyway.
Lasse Collin [Tue, 10 Feb 2009 19:48:05 +0000 (21:48 +0200)]
Added resource files for the Windows build.
Lasse Collin [Mon, 9 Feb 2009 12:54:31 +0000 (14:54 +0200)]
Let the user specify custom CFLAGS on the make command
line. Previously custom CFLAGS worked only when they were
passed to configure.
Lasse Collin [Sun, 8 Feb 2009 19:35:11 +0000 (21:35 +0200)]
Fix aliasing issue in physmem.h.
Lasse Collin [Sun, 8 Feb 2009 16:24:50 +0000 (18:24 +0200)]
Add a separate internal function to initialize the CRC32
table, which is used also by LZ encoder. This was needed
because calling lzma_crc32() and ignoring the result is
a no-op due to lzma_attr_pure.
Lasse Collin [Sun, 8 Feb 2009 16:17:05 +0000 (18:17 +0200)]
Make "xz --force" to write to terminal as the error
message suggests.
Lasse Collin [Sun, 8 Feb 2009 08:37:50 +0000 (10:37 +0200)]
Support both slash and backslash as path component
separator on Windows when parsing argv[0].
Lasse Collin [Sat, 7 Feb 2009 21:18:13 +0000 (23:18 +0200)]
Omit the wrong and (even if corrected) nowadays useless rm
from autogen.sh.
Lasse Collin [Sat, 7 Feb 2009 19:41:52 +0000 (21:41 +0200)]
Updated THANKS.
Lasse Collin [Sat, 7 Feb 2009 19:17:07 +0000 (21:17 +0200)]
Make it easy to choose if command line tools should be
linked statically or dynamically against liblzma. The
default is still to use static liblzma, but it can now
be changed by passing --enable-dynamic to configure.
Thanks to Mike Frysinger for the original patch.
Fixed a few minor bugs in configure.ac.
Mike Frysinger [Sat, 7 Feb 2009 04:38:39 +0000 (23:38 -0500)]
add gitignore files
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Lasse Collin [Sat, 7 Feb 2009 15:07:52 +0000 (17:07 +0200)]
Assume 32 MiB of RAM on unsupported operating systems like
the comment in hardware.c already said.
Lasse Collin [Sat, 7 Feb 2009 14:26:58 +0000 (16:26 +0200)]
MinGW support: Don't build fastpos_tablegen.c as part of
liblzma. Build both static and dynamic liblzma, and also
static and dynamic versions of the command line tools.
Lasse Collin [Sat, 7 Feb 2009 13:55:47 +0000 (15:55 +0200)]
Support LZMA_API_STATIC in assembler files to
avoid __declspec(dllexport) equivalent.
Lasse Collin [Sat, 7 Feb 2009 09:11:50 +0000 (11:11 +0200)]
Introduced LZMA_API_STATIC macro, which the applications
need to #define when linking against static liblzma on
platforms like Windows. Most developers don't need to
care about LZMA_API_STATIC at all.
Lasse Collin [Fri, 6 Feb 2009 14:55:45 +0000 (16:55 +0200)]
Another grammar fix
Lasse Collin [Fri, 6 Feb 2009 10:30:23 +0000 (12:30 +0200)]
Grammar fix in README.
Lasse Collin [Fri, 6 Feb 2009 08:06:32 +0000 (10:06 +0200)]
Some MSYS installations (e.g. MsysGit) don't include
install.exe, so don't rely on it.
Lasse Collin [Fri, 6 Feb 2009 07:13:15 +0000 (09:13 +0200)]
Recreated the BCJ test files for x86 and SPARC. The old files
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.
Lasse Collin [Thu, 5 Feb 2009 19:21:27 +0000 (21:21 +0200)]
Add the "windows" directory to EXTRA_DIST.
Lasse Collin [Thu, 5 Feb 2009 07:17:51 +0000 (09:17 +0200)]
Added initial experimental makefile for use with MinGW.
Lasse Collin [Thu, 5 Feb 2009 07:12:57 +0000 (09:12 +0200)]
Various code cleanups the the xz command line tool.
It now builds with MinGW.
Lasse Collin [Tue, 3 Feb 2009 10:15:17 +0000 (12:15 +0200)]
Another utime() fix.
Lasse Collin [Tue, 3 Feb 2009 08:41:11 +0000 (10:41 +0200)]
Fix wrong filename argument for utime() and utimes().
This doesn't affect most systems, since most systems
have better functions available.
Lasse Collin [Mon, 2 Feb 2009 19:19:01 +0000 (21:19 +0200)]
Updated the x86 assembler code:
- 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.
Lasse Collin [Mon, 2 Feb 2009 18:14:03 +0000 (20:14 +0200)]
Modify LZMA_API macro so that it works on Windows with
other compilers than MinGW. This may hurt readability
of the API headers slightly, but I don't know any
better way to do this.
Lasse Collin [Sun, 1 Feb 2009 20:40:35 +0000 (22:40 +0200)]
Fix a bug in lzma_block_buffer_decode(), although this
function should be rewritten anyway.
Lasse Collin [Sun, 1 Feb 2009 20:39:07 +0000 (22:39 +0200)]
Added initial version of raw buffer-to-buffer coding
functions, and cleaned up filter.h API header a little.
May be very buggy, not tested yet.
Lasse Collin [Sat, 31 Jan 2009 22:11:20 +0000 (00:11 +0200)]
Fix missing newlines in xzdec.c.
Lasse Collin [Sat, 31 Jan 2009 22:10:07 +0000 (00:10 +0200)]
Use __cdecl also for function pointers in liblzma API when
on Windows.
Lasse Collin [Sat, 31 Jan 2009 09:01:48 +0000 (11:01 +0200)]
Add LZMA_API to liblzma API headers. It's useful at least
on Windows. sysdefs.h no longer #includes lzma.h, so lzma.h
has to be #included separately where needed.
Lasse Collin [Sat, 31 Jan 2009 08:13:09 +0000 (10:13 +0200)]
Use _WIN32 instead of WIN32 in xzdec.c to test if compiling on Windows.
Lasse Collin [Sat, 31 Jan 2009 08:02:52 +0000 (10:02 +0200)]
Fix two lines in lzma.h on which the # wasn't at the
beginning of the line.
Lasse Collin [Sat, 31 Jan 2009 07:55:05 +0000 (09:55 +0200)]
Add support for using liblzma headers in MSVC, which has no
stdint.h or inttypes.h.
Lasse Collin [Sat, 31 Jan 2009 06:49:54 +0000 (08:49 +0200)]
Fix # -> ## in a macro in lzma.h.
Lasse Collin [Fri, 30 Jan 2009 16:50:16 +0000 (18:50 +0200)]
Updated README.
Lasse Collin [Thu, 29 Jan 2009 22:29:58 +0000 (00:29 +0200)]
Remove dangling crc64_init.c.
Lasse Collin [Wed, 28 Jan 2009 15:16:38 +0000 (17:16 +0200)]
The .xz file format specification version 1.0.0 is now
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.
Lasse Collin [Wed, 28 Jan 2009 06:45:59 +0000 (08:45 +0200)]
Updated THANKS.
Lasse Collin [Wed, 28 Jan 2009 06:43:26 +0000 (08:43 +0200)]
Fix uninitialized variables in alone_decoder.c. This bug was
triggered by the previous commit, since these variables were
not used by anything before support for a preset dictionary.
Lasse Collin [Tue, 27 Jan 2009 16:36:05 +0000 (18:36 +0200)]
Added initial support for preset dictionary for raw LZMA1
and LZMA2. It is not supported by the .xz format or the xz
command line tool yet.
Lasse Collin [Mon, 26 Jan 2009 18:09:17 +0000 (20:09 +0200)]
Regenerate the CRC tables without trailing blanks.
Jim Meyering [Mon, 19 Jan 2009 20:37:16 +0000 (21:37 +0100)]
remove trailing blanks from all but .xz files
Lasse Collin [Mon, 26 Jan 2009 12:34:10 +0000 (14:34 +0200)]
Add lzma_block_buffer_decode().
Lasse Collin [Mon, 26 Jan 2009 12:33:28 +0000 (14:33 +0200)]
Add more sanity checks to lzma_stream_buffer_decode().
Lasse Collin [Mon, 26 Jan 2009 12:33:13 +0000 (14:33 +0200)]
Avoid hardcoded constant in easy.c.
Lasse Collin [Mon, 26 Jan 2009 11:06:49 +0000 (13:06 +0200)]
Tiny bit better sanity check in block_util.c
Lasse Collin [Sat, 24 Jan 2009 23:35:56 +0000 (01:35 +0200)]
Fix a dumb bug in Block decoder, which made it return
LZMA_DATA_ERROR with valid data. The bug was added in
e114502b2bc371e4a45449832cb69be036360722.
Lasse Collin [Fri, 23 Jan 2009 20:27:50 +0000 (22:27 +0200)]
Added lzma_stream_buffer_decode() and made minor cleanups.
Lasse Collin [Thu, 22 Jan 2009 10:53:33 +0000 (12:53 +0200)]
Fix a comment.
Lasse Collin [Tue, 20 Jan 2009 14:37:27 +0000 (16:37 +0200)]
Add some single-call buffer-to-buffer coding functions.
Lasse Collin [Tue, 20 Jan 2009 11:45:41 +0000 (13:45 +0200)]
Block encoder cleanups
Lasse Collin [Tue, 20 Jan 2009 08:35:15 +0000 (10:35 +0200)]
Use LZMA_PROG_ERROR in lzma_code() as documented in base.h.
Lasse Collin [Mon, 19 Jan 2009 20:53:18 +0000 (22:53 +0200)]
Fix handling of non-fatal errors in lzma_code().
Lasse Collin [Mon, 19 Jan 2009 12:00:33 +0000 (14:00 +0200)]
Move some LZMA2 constants to lzma2_encoder.h so that they
can be used outside lzma2_encoder.c.
Lasse Collin [Mon, 19 Jan 2009 11:52:36 +0000 (13:52 +0200)]
Remove dead code.
Lasse Collin [Sat, 17 Jan 2009 12:24:25 +0000 (14:24 +0200)]
Beta was supposed to be API stable but I had forgot to rename
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.
Lasse Collin [Thu, 15 Jan 2009 12:29:22 +0000 (14:29 +0200)]
Updated THANKS.
Lasse Collin [Thu, 15 Jan 2009 12:27:32 +0000 (14:27 +0200)]
Fixed a bug in 7z2lzma.bash to make it work with .7z files
that use something else than 2^n as the dictionary size.
Thanks to Dan Shechter for the bug report.
Lasse Collin [Wed, 7 Jan 2009 16:41:15 +0000 (18:41 +0200)]
Use pthread_sigmask() instead of sigprocmask() when pthreads
are enabled.
Lasse Collin [Wed, 31 Dec 2008 18:01:00 +0000 (20:01 +0200)]
Bumped version to 4.999.8beta right after the release
of 4.999.7beta.
Lasse Collin [Wed, 31 Dec 2008 16:59:02 +0000 (18:59 +0200)]
Disable Subblock filter from test_compress.sh since it is
disabled by default in configure.ac.
Lasse Collin [Wed, 31 Dec 2008 15:44:20 +0000 (17:44 +0200)]
Disable both Subblock encoder and decoder my default,
since they are not finished and may have security issues too.
Lasse Collin [Wed, 31 Dec 2008 15:42:50 +0000 (17:42 +0200)]
Update some files in debug directory.
Lasse Collin [Wed, 31 Dec 2008 15:41:46 +0000 (17:41 +0200)]
Prepare for 4.999.7beta release.
Lasse Collin [Wed, 31 Dec 2008 15:15:03 +0000 (17:15 +0200)]
Cleaned up some comments in the API headers.
Lasse Collin [Wed, 31 Dec 2008 14:29:39 +0000 (16:29 +0200)]
Renamed lzma_options_simple to lzma_options_bcj in the API.
The internal implementation is still using the name "simple".
It may need some cleanups, so I look at it later.
Lasse Collin [Tue, 30 Dec 2008 22:57:27 +0000 (00:57 +0200)]
Fixed missing quoting in configure.ac.
Lasse Collin [Tue, 30 Dec 2008 22:48:23 +0000 (00:48 +0200)]
Updated src/liblzma/Makefile.am to use liblzma.pc.in, which
should have been in the previous commit.
Lasse Collin [Tue, 30 Dec 2008 22:30:49 +0000 (00:30 +0200)]
Remove lzma_init() and other init functions from liblzma API.
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.
Lasse Collin [Sat, 27 Dec 2008 17:40:31 +0000 (19:40 +0200)]
Use 28 MiB as memory usage limit for encoding in test_compress.sh.
Lasse Collin [Sat, 27 Dec 2008 17:32:20 +0000 (19:32 +0200)]
Revert a change made in
3b34851de1eaf358cf9268922fa0eeed8278d680
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.
Lasse Collin [Sat, 27 Dec 2008 17:30:19 +0000 (19:30 +0200)]
Some xz command line tool improvements.
Lasse Collin [Sat, 27 Dec 2008 17:27:49 +0000 (19:27 +0200)]
Bunch of liblzma tweaks, including some API changes.
The API and ABI should now be very close to stable,
although the code behind it isn't yet.
Lasse Collin [Thu, 18 Dec 2008 11:42:52 +0000 (13:42 +0200)]
Updated Makefile.am that was missing from the previous commit.
Lasse Collin [Wed, 17 Dec 2008 19:49:53 +0000 (21:49 +0200)]
Remove the alignment functions for now. Maybe they will
be added back in some form later, but the current version
wasn't modular, so it would need fixing anyway.
Lasse Collin [Wed, 17 Dec 2008 18:11:23 +0000 (20:11 +0200)]
xz message handling improvements
Lasse Collin [Mon, 15 Dec 2008 21:26:43 +0000 (23:26 +0200)]
Fix a dumb bug in .lzma decoder which was introduced in
the previous commit. (Probably the previous commit has
other bugs too, it wasn't tested.)