Commit graph

987 commits

Author SHA1 Message Date
Ville Skyttä
ce409990e7 Spelling fixes. 2021-08-29 10:15:14 +03:00
Oded Shimon
acaa8374d0 Fix & optimization for unzip_match
read_fdhist() cannot be called after write_1g() is called, in case that write() caused a switch to !TMP_OUTBUF, moving the read pointer.
read_fdhist() should only be called immediately after seekto_fdhist()

In this case, only one call to read_fdhist() was enough, before the loop, as subsuequent calls only gave repeats of the same data.
2021-07-11 11:20:04 +03:00
Con Kolivas
465afe830f Bump version to 0.641 2021-03-06 10:20:42 +11:00
Con Kolivas
a4d3fa14cf Update whats new for critical fix. 2021-03-06 10:19:58 +11:00
Con Kolivas
042eb57e03 Simplify and fix lz4 compresses function. 2021-03-06 10:18:17 +11:00
Con Kolivas
467fd92605 Update version to 0.640. 2021-02-16 15:53:30 +11:00
Con Kolivas
ef8773132e Minor makefile cleanups. 2021-02-16 15:51:36 +11:00
Con Kolivas
58d3110407 Add demo executables to .gitignore. 2021-02-16 14:42:14 +11:00
Con Kolivas
dd81769f88 Update .gitignore. 2021-02-16 14:29:10 +11:00
Con Kolivas
c5e0df5cf9 Update copyright notices. 2021-02-16 14:20:06 +11:00
Con Kolivas
3818727a72 Fix warning. 2021-02-16 14:05:22 +11:00
Con Kolivas
321c9ce93e Fix warnings in liblrzip_demo.c 2021-02-16 11:54:56 +11:00
Con Kolivas
2f5c9c083e Add liblz4-dev to github integration. 2021-02-16 09:51:20 +11:00
Con Kolivas
3345a239b7 Use lz4 for compressibility testing only, which won't break existing archives, but speeds up testing slightly. This makes liblz4 a required library. 2021-02-16 09:41:14 +11:00
Con Kolivas
224a6306e9 Put a workaround to possibly read previously corrupted archives missing lzma properties. 2021-02-16 01:20:29 +11:00
Con Kolivas
de2c9c5f62 Work around corrupt archives when compressing small files with lzma to stdout. 2021-02-16 01:14:32 +11:00
Con Kolivas
590377819c Revert "Chunk size should not be zero."
This reverts commit a80c0b5e20.

Incorrect fix, needs reworking.
2021-02-16 01:10:01 +11:00
Con Kolivas
786cdf3463 Fix make install with asm. 2021-02-15 23:25:20 +11:00
Con Kolivas
d877d11468 Revert to hard coding the version number in configure.ac for the master tree. Using git describe for version numbering can be reserved to 100% git repository based builds. 2021-02-15 23:05:10 +11:00
Con Kolivas
f27facbb16 Fix distdir to include ASM files. 2021-02-15 22:45:37 +11:00
Con Kolivas
867ba8d629 Missing boolean needs to be set for nice to work. 2021-02-15 21:05:43 +11:00
Con Kolivas
c7b94b236d Allow lrztar to work without the 'which' application. 2021-02-15 20:25:46 +11:00
Con Kolivas
03f498a5ed Fix potential race condition on checksum.len 2021-02-15 20:17:05 +11:00
Con Kolivas
eb9e660d56 Silence nice warnings if lrzip is launched from a non-zero nice value. 2021-02-15 20:07:23 +11:00
Con Kolivas
6bc4977e9a Print version number to stdout. 2021-02-15 19:45:01 +11:00
Con Kolivas
71bbbe9e3d Graciously handle signals when in a detached state. 2021-02-15 18:47:03 +11:00
Con Kolivas
073cdb2175 Delete broken files if application is interrupted unless the keep-broken option is enabled, and return 1 as exit code on interruption. 2021-02-15 17:13:57 +11:00
Con Kolivas
dd58a58692 Put a lower bound on the amount of memory available during malloc testing and shrinking the window. 2021-02-15 15:43:06 +11:00
Con Kolivas
a0bacc90ee Encryption is not possible for stdin or stdout. 2021-02-15 15:28:46 +11:00
Con Kolivas
be884d09e0 Deallocate runzip structures after all runzip chunks are complete to avoid a race in the case of a failed chunk decompressing. 2021-02-15 15:20:12 +11:00
Con Kolivas
2c7c4832b3 Move thread pthread_t to control structure for later access. 2021-02-14 20:37:03 +11:00
Con Kolivas
a71f7bdb57 Make ucthreads part of the stream_info struct. 2021-02-14 20:19:47 +11:00
Con Kolivas
0d34833601 Differentiate naming of u/cthread arrays from single structs. 2021-02-14 17:16:25 +11:00
Con Kolivas
e74a11c21b Use lzo1x decompress safe to cope with corrupt archives. 2021-02-14 12:58:22 +11:00
Con Kolivas
a80c0b5e20 Chunk size should not be zero. 2021-02-14 11:20:53 +11:00
Con Kolivas
96c7c62584 Create a linked list to safely release data which cannot be released earlier after all compression is complete and all compressionthreads have returned, fixing a minor leak. 2021-02-09 18:05:49 +11:00
Con Kolivas
9f544dc372 Fail on unparsed characters after numeric arguments. 2021-02-09 15:54:54 +11:00
Con Kolivas
2713fef4b6
Merge pull request #184 from SSSSeb/master
check lrzip builds on ubuntu using github actions
2021-02-09 14:50:45 +11:00
SSSSeb
5f4a537cd8
Merge pull request #1 from SSSSeb/SSSSeb-autobuild
build using github actions
2021-02-08 21:33:07 +01:00
SSSSeb
9070c8a5f7 build into ubuntu-latest using github actions 2021-02-08 21:28:28 +01:00
Sébastien Cabaniols
9f3c995601 explicitely require bash so that autogen.sh now pass on ubuntu20/mint 2021-02-08 20:43:47 +01:00
Con Kolivas
3f1ded76eb
Merge pull request #182 from SSSSeb/fix_build
explicitely require bash so that autogen.sh now pass on ubuntu20/mint
2021-02-08 22:29:20 +11:00
Sébastien Cabaniols
661249831a explicitely require bash so that autogen.sh now pass on ubuntu20/mint 2021-02-08 12:27:36 +01:00
Con Kolivas
ce923dbd17
Merge pull request #179 from pete4abw/git-describe-version
Use git describe to present version number to configure.ac
2020-12-25 07:06:37 +11:00
Peter Hyman
c2001e2281 Use git describe to present version number to configure.ac
gitdesc.sh assumes tag will have format v#.### and will return
major version, minor version, and micro version depending on
command.
gitdesc.sh will also add tag revision and HEAD commit if tag is
not equal to HEAD. So lrzip version may appear as
`#.###' or
`#.###-R-#######'
where `R' is count of commits since last tag.
usage
gitdesc.sh command [-r]
where command is one of:
all - entire git describe
commit - commit, omitting v
tagrev - tag revision count
major - major release version
ninor - minor release version
micro - micro release version + [tag release count-HEAD commit]
version - M.mic
-r -- get release tag only
2020-12-24 10:45:04 -06:00
Con Kolivas
ff04150aaa
Merge pull request #176 from pete4abw/debugger_fix
Fix so that debugger will load and Assembler code will debug.
2020-11-15 16:23:29 +11:00
Con Kolivas
f9217bf7b8
Merge pull request #175 from pete4abw/head_off_always_0
get_fileinfo always shows 0 file offset
2020-11-15 16:22:52 +11:00
Peter Hyman
f5c19dbde8 Fix so that debugger will load and Assembler code will debug. 2020-11-14 16:30:28 -06:00
Peter Hyman
4b7301f435
Update lrzip.c
Offset always zero because of missing parenstheses.

OLD
Block   Comp    Percent Size
1       lzma    21.4%   22356255 / 104376320    Offset: 0       Head: 22356294
2       lzma    16.8%   17506482 / 104376320    Offset: 0       Head: 39862789
3       lzma    16.8%   17532322 / 104376320    Offset: 0       Head: 57395124

NEW
Block   Comp    Percent Size
1       lzma    21.4%   22356255 / 104376320    Offset: 56      Head: 22356294
2       lzma    16.8%   17506482 / 104376320    Offset: 22356324        Head: 39862789
3       lzma    16.8%   17532322 / 104376320    Offset: 39862819        Head: 57395124
2020-11-14 15:32:32 -06:00
Con Kolivas
8af8ad17e4 Fix error with failure to write with stdout due to different semantics with fwrite vs write. 2020-11-11 23:19:29 +11:00