Commit graph

967 commits

Author SHA1 Message Date
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
Con Kolivas 597be1ffbd
Merge pull request #159 from ckolivas/revert-157-Fix_imply_lrz_ext
Revert "BUGFIX: lrzip -d, -t should allow a file with or without an lrz extension and add if necessary"
2020-06-01 13:17:48 +10:00
Con Kolivas de2930dc0a
Revert "BUGFIX: lrzip -d, -t should allow a file with or without an lrz extension and add if necessary" 2020-06-01 13:16:39 +10:00
Con Kolivas 1cfcd57fcf
Merge pull request #157 from pete4abw/Fix_imply_lrz_ext
BUGFIX: lrzip -d, -t should allow a file with or without an lrz extension and add if necessary
2020-05-29 07:16:17 +10:00
Peter Hyman f9b127cd5a BUGFIX: lrzip -d, -t should allow a file with or without an lrz extension and add it if necessary 2020-05-28 11:43:11 -05:00
Con Kolivas 7f3bf46203
Merge pull request #154 from ffontaine/master
lzma/C/Makefile.am: fix install with asm
2020-05-23 09:24:30 +10:00
Fabrice Fontaine 844b8c057c lzma/C/Makefile.am: fix install with asm
Commit 3734448abc fixed the build failure
due to .libs being missing but it raises a build failure when .libs is
already there:

nasm -I../ASM/x86/ -Dx64 -f elf64 -o 7zCrcOpt_asm.o ../../lzma/ASM/x86/7zCrcOpt_asm.asm
mkdir .libs
mkdir: cannot create directory '.libs': File exists

Fix this error by adding -p argument to mkdir

Fixes:
- http://autobuild.buildroot.org/results/1ca6db24ef26c57d4c129de7e98383e7e58b366b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-05-22 18:42:19 +02:00
Con Kolivas 8781292dd5
Merge pull request #152 from ffontaine/master
lzma/C/Makefile.am: fix install with asm
2020-05-16 17:45:02 +10:00
Fabrice Fontaine 3734448abc lzma/C/Makefile.am: fix install with asm
Since commit 9f16f65705, build with asm
can fail on:

nasm -I../ASM/x86/ -Dx64 -f elf64 -o 7zCrcOpt_asm.o ../../lzma/ASM/x86/7zCrcOpt_asm.asm
  CC       LzmaEnc.lo
  CC       LzmaLib.lo
  CC       Alloc.lo
  CC       Threads.lo
cp 7zCrcOpt_asm.o .libs/
cp: cannot create regular file '.libs/': Not a directory
make[4]: *** [Makefile:678: 7zCrcOpt_asm.lo] Error 1
make[4]: *** Waiting for unfinished jobs....

So create .libs directory before copying 7zCrcOpt_asm.o

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-05-16 09:33:48 +02:00
Con Kolivas 4101fc8279
Merge pull request #151 from ffontaine/master
Lrzip.h: add missing header for va_list on some platforms
2020-05-16 08:12:30 +10:00
Fabrice Fontaine 37c539d6da Lrzip.h: add missing header for va_list on some platforms
Signed-off-by: Sam Lancia <sam@gpsm.co.uk>
[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/lrzip/0001-missing-stdarg.patch]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-05-16 00:10:38 +02:00
Con Kolivas 4f1adeaec4 Attempt to allocate buffer when it is larger than maxram instead of aborting without even trying. 2019-12-03 12:40:06 +11:00
Con Kolivas 86661e68bf Skip empty match blocks if they're found at the end as they may be created with incompressible data. 2019-12-03 12:22:11 +11:00
Con Kolivas 93d579a1b8 Fix misuse of static variable in a header. 2019-12-03 11:23:58 +11:00
Con Kolivas c90c71782e
Merge pull request #137 from pete4abw/fixasm
HOTFIX for compiling with --disable-asm or no assembler present
2019-12-03 07:09:01 +11:00
Peter Hyman db8d1d56e7 HOTFIX for compiling with --disable-asm or no assembler present 2019-12-02 12:30:26 -06:00
Con Kolivas ee14f163f7
Merge pull request #134 from pete4abw/lzma-memory
Small changes to control->threads and memory overhead for LZMA.
2019-12-02 22:31:55 +11:00
Con Kolivas 3d7eb6fbae
Merge pull request #128 from pete4abw/conf_file_fix
fix to allow compression in lrzip.conf to be overridden by command line
2019-12-02 22:31:22 +11:00
Con Kolivas a82adac548
Merge pull request #135 from pete4abw/fixasm
Update and bring back Assembler code for CRC check.
2019-12-02 22:30:40 +11:00
Con Kolivas 4af85e0496
Merge pull request #136 from pete4abw/set_priority
Fixups to nice handling. Users can't normally lower niceness.
2019-12-02 22:28:15 +11:00
Con Kolivas ffd4a2df50
Merge pull request #121 from pete4abw/lrztar
lrztar -o fix
2019-12-02 22:26:50 +11:00