Commit graph

993 commits

Author SHA1 Message Date
ckolivas
9702dece4f Fail on attempting to have no output and show info.
Some checks are pending
check_build / build (push) Waiting to run
2026-02-12 20:10:23 +11:00
ckolivas
835fd30e35 Disable inappropriate warning on small file compression. 2026-02-12 19:48:12 +11:00
ckolivas
ed62b873f2 Disable JIT on non x86 platforms for zpaq to build. 2026-02-12 19:35:23 +11:00
ckolivas
43d2f3dc70 Prevent attempted left shift of negative value of possibly maliciously crafted file. 2026-02-12 19:25:08 +11:00
ckolivas
21d97a3b6c Sanity check for potentially maliciously encoded expected size in magic header. 2026-02-12 19:10:09 +11:00
ckolivas
4eefa39477 Remove Doxygen doc build, patch courtesy of Peter Hyman. 2026-02-12 18:15:04 +11:00
ckolivas
1cfbf86e2f Update github workflow to install libbz2 2026-02-12 18:05:46 +11:00
ckolivas
7a473e2318 Fix incorrect number of parameters being passed to print_maxverbose. 2026-02-12 17:59:04 +11:00
ckolivas
c29eaa3aa5 Silence dangling pointer warning in lzma enc code. 2026-02-12 15:45:25 +11:00
ckolivas
50ed4896a9 Silence unitialised variable warnings. 2026-02-12 15:37:08 +11:00
ckolivas
acfd35587e Unused variable. 2026-02-12 15:34:01 +11:00
Con Kolivas
1242aecfed
Merge pull request #258 from eli-schwartz/dont-use-echo
build: fix incorrect use of shell commands in handmade libtool file
2025-02-07 09:59:26 +11:00
Eli Schwartz
dc6342ea61
build: fix incorrect use of shell commands in handmade libtool file
The "echo" command was soft-deprecated from the shell programming
language in ~1992. There is no way to use it correctly if:

- the "-e" or "-n" or "-E" or any other options are used
- backslash escape sequences are used
- the printed string contains shell variables containing either of the
  above

In recognition of the fact that echo was historically used in many
scripts, some of which avoided these issues and therefore succeeded when
run, the "echo" command was NOT marked as obsolescent, out of fear that
marking it as obsolescent would lead to vendors removing "echo" entirely
and breaking existing scripts (or at least, the subset of scripts which
managed to work correctly).

However, it is warned against, that after 1992 you should avoid writing
new code that uses "echo" and instead use "printf".

printf has an actual definition of its behavior, which echo did not, and
that behavior is to interpret backslash escapes in the first parameter,
which is necessary by this Makefile.am in order to embed newlines into
the generated libtool file. Simply replacing "echo -e" with "printf"
will therefore correctly and reliably do the intended functionality. We
also add one final embedded newline to avoid producing a file without an
end-of-line character on the last line of the file.

Fixes: https://github.com/ckolivas/lrzip/issues/257
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
2025-02-06 10:53:48 -05:00
Ahmed Eldaly
15f5621928
Creating Dockerfile (#238) 2024-04-28 18:06:32 +10:00
Jonathan Birge
3f19396fba
fix warnings during autoconf (#254) 2024-04-28 18:04:47 +10:00
Con Kolivas
813f06becf Fix 'Unable to work from STDIO while reading password' when password is passed to command line parameters, courtesy of Emil Williams. 2023-06-29 15:52:01 +10:00
Bernhard M. Wiedemann
0c6f6b5723
Avoid executable stack (#243)
without this patch, the rpmlint check for executable stack
failed the build on openSUSE.
2023-04-28 10:25:04 +10:00
Sean
d713d86af1
Create dockerfile (#235)
* Create dockerfile

Credit goes to @andyceo for making the initial one, I fixed it so it works now.

* Update Dockerfile

add lz4-dev to last layer
2022-11-02 11:38:57 +11:00
Con Kolivas
7bd62530f9 Remove build requirement for deprecated header. 2022-07-14 09:57:42 +10:00
Con Kolivas
700ad23a2d Remove unused header. 2022-07-14 09:53:24 +10:00
Con Kolivas
dce1ab8ec8
Merge pull request #231 from tpwrules/fix-stdio
switch to chunk-wide read/write loops when loading and dumping in stdio mode
2022-07-14 09:36:53 +10:00
Thomas Watson
469074b4a5 switch to chunk-wide read/write loops when loading and dumping in stdio mode
This fixes the high CPU usage and slow speeds observed when using
stdio mode and temporary files need to be spilled to disk.
2022-07-10 13:33:46 -05:00
Con Kolivas
7c079abb17
Merge pull request #230 from rubenllorente/master
Added OpenBSD support (2nd attempt)
2022-06-26 20:25:09 +10:00
Rubén Llorente
2c50a224f8 Added OpenBSD support 2022-06-26 12:07:40 +02:00
Con Kolivas
3495188cd8 Check for invalid repeated head that can lead to infinite loop in info mode. 2022-04-12 19:05:59 +10:00
Con Kolivas
e5e9a61fcc Bump version and documentation. 2022-03-09 08:58:18 +11:00
Con Kolivas
cdec0951d7 Add warnings for low thread and memory usage. 2022-03-09 08:53:37 +11:00
Con Kolivas
80f7d91044
Merge pull request #221 from ib/master
Do not use locale for info output
2022-03-09 06:01:41 +11:00
Ingo Brückl
e816f1dece Do not use locale for info output
Also, remove all thousands separators from printf formats.
2022-03-08 14:19:24 +01:00
Con Kolivas
53029415df
Merge pull request #219 from atsampson/nopc
Don't install Lrzip.h or lrzip.pc.
2022-02-28 07:21:30 +11:00
Adam Sampson
7404f72afd Don't install Lrzip.h or lrzip.pc.
The library is no longer installed, so these files aren't needed either.
2022-02-27 15:28:27 +00:00
Con Kolivas
e08ead1e00 Bump version to 0.650. 2022-02-27 21:19:13 +11:00
Con Kolivas
74814b3183 Show output and progress with -P in lrz compatibility mode. 2022-02-27 21:18:47 +11:00
Con Kolivas
f0c31e7ebb Update documentation. 2022-02-27 21:14:10 +11:00
Con Kolivas
d000920ff7 Update copyright dates for affected files. 2022-02-27 21:05:15 +11:00
Con Kolivas
386b1c6669 Update manpage for very-quiet option. 2022-02-27 21:02:33 +11:00
Con Kolivas
41e8014d2c Add a -Q/--very-quiet option to suppress normal output to console. 2022-02-27 20:07:31 +11:00
Con Kolivas
1974d68407 Change -q to only silence progress as per documentation. 2022-02-27 18:35:10 +11:00
Con Kolivas
ec926c62b2 Fix and tidy up clear_rulist. 2022-02-27 18:13:42 +11:00
Con Kolivas
ec54339be6 Cleanup unused code. 2022-02-27 17:27:45 +11:00
Con Kolivas
09ceb85afa Fix stdout dumping to console when there is inadequate memory to compress in ram by properly using temporary files. 2022-02-26 15:14:52 +11:00
Con Kolivas
c873e52ec2 Do not restrict any reads or writes to 1GB on 64bit. 2022-02-26 10:58:52 +11:00
Con Kolivas
fb59467d11 There is no need to restrict read and write requests to 1GB on 64bit. 2022-02-26 10:46:10 +11:00
Con Kolivas
4b3942103b Fix possible race condition between zpaq_decompress_buf() and clear_rulist() function as reported by wcventure. 2022-02-26 10:11:49 +11:00
Con Kolivas
23407bc8f7 Revert "Fix control->suffix being deallocated as heap memory as reported by Pietro Borrello."
This reverts commit 5faf80cd53.

No longer needed without liblrzip.
2022-02-26 09:21:45 +11:00
Con Kolivas
23fc8a8f63 Deprecate and remove unused liblrzip. 2022-02-26 09:21:16 +11:00
Con Kolivas
bf11a54b99 Remove check for MD5_RELIABLE as md5 is reported to be reliable on macos according to Peter Hyman. 2022-02-25 23:07:47 +11:00
Peter Hyman
06b1c08228 Pretty format info output. 2022-02-25 23:03:38 +11:00
Con Kolivas
8843bdfeb9 Cope with android predefining PAGE_SIZE as reported by fpliu. 2022-02-25 22:56:15 +11:00
Con Kolivas
5faf80cd53 Fix control->suffix being deallocated as heap memory as reported by Pietro Borrello. 2022-02-25 22:35:20 +11:00