Peter Hyman
9f16f65705
Update and bring back Assembler code for CRC check.
2019-11-25 08:44:46 -06:00
Con Kolivas
02a7bdc6c4
Merge pull request #131 from pete4abw/infofix
...
Fix lrzip info display when last chunk has no compression
2019-11-04 08:31:09 +11:00
Peter Hyman
785562a753
Fix lrzip info display when last chunk has no compression
2019-11-03 15:18:48 -06:00
Con Kolivas
b922018128
Merge pull request #113 from pete4abw/master
...
update to lrzip.conf.5 manpage and example file.
2019-06-19 20:44:20 +10:00
Peter Hyman
2f012cb3ea
Fix to allow override of compression set in lrzip.conf
2019-06-19 05:36:21 -05:00
Peter Hyman
67ddcae772
Merge branch 'master' of https://github.com/ckolivas/lrzip
2019-05-30 06:46:16 -05:00
Con Kolivas
edb357ecde
Merge pull request #114 from danieldjewell/master
...
Fix Android Detection in lrzip_private.h
2019-05-28 13:50:05 +10:00
Daniel Jewell
a8f0dc3a31
Fix Android Detection in lrzip_private.h
...
lrzip_private.h was checking for "ANDROID" but
it should be __ANDROID__
lrzip now compiles just fine on android, it seems
2019-05-27 20:34:50 -07:00
Peter Hyman
b1b5f81d81
update to lrzip.conf.5 manpage and example file.
2019-05-12 12:35:13 -05:00
Con Kolivas
79f505165b
Merge pull request #106 from areading/ar/thread_race_segfault
...
Fix thread race causing segfault during decompression
2019-02-24 17:14:54 +11:00
Andrew Reading
c2714b9eab
Compile with -pthread instead of just -lpthread.
...
In Linux, GCC appears to process -pthread as '-D_REENTRANT -lpthread'.
Just in case the _REENTRANT still does something useful on a target
platform, this commit adds this missing -pthread flag during
compilation.
2019-02-23 21:15:38 -08:00
Andrew Reading
8eba9a202e
Make threaded decompression more robust on failure.
...
This changes the decompression worker thread to signal the main thread
in case of failure, allowing the main thread to handle this
appropriately instead of just assuming the resulting data is always good.
2019-02-23 21:09:44 -08:00
Andrew Reading
1a1723834b
Fix segfault from thread race condition during decompression.
...
This fixes an issue where the main thread would not wait for all worker
threads to fully join before attempting to process their result buffers:
new_thread was true up until to the final N-1 calls, at which point the
input stream will have ended and new_thread would be false, then
bypassing the pthread_join()s.
The new_thread condition isn't actually necessary at all, so it has been
entirely removed.
2019-02-23 21:01:24 -08:00
Con Kolivas
9819e861a5
Merge pull request #101 from emallickhossain/patch-1
...
Fix tar cowardly failing
2018-09-18 22:19:02 +10:00
Mallick Hossain
de08f0ef40
Fix tar cowardly failing
...
Since .tar archive was not specified, compression was failing.
2018-09-13 09:36:24 -04:00
Con Kolivas
a81248e47d
Cope with corrupt/crafted archive stream overruns.
2018-05-28 15:06:04 +10:00
Con Kolivas
3cadc63e39
Minor memleak clean ups on failures.
2018-05-28 14:39:26 +10:00
Con Kolivas
907b66b8cb
Check for invalid expected sizes and abort.
2018-05-25 13:12:54 +10:00
Con Kolivas
ed51e14a4b
Fix lrztar error when no arguments given.
2018-05-22 14:06:11 +10:00
Con Kolivas
cd456aa70e
Fix failure to pthread join on corrupt archives calling fill_buffer again at the end of a stream.
2018-05-18 14:29:44 +10:00
Con Kolivas
399336eba4
Check for invalid last_head entries, avoiding infinite loops.
2018-05-17 15:21:40 +10:00
Con Kolivas
257186a865
Fix zero sized archive decompression.
2018-05-17 15:06:31 +10:00
Con Kolivas
95688b0833
Silence tiny leak warning.
2018-05-17 14:38:12 +10:00
Con Kolivas
d9aea489b9
Silence possibly inadequate space warning with -f and -q options.
2018-05-16 19:28:43 +10:00
Con Kolivas
50cfb3b9f6
Prevent infinite loop from crafted/corrupt archive in unzip_match.
2018-05-16 19:26:15 +10:00
Con Kolivas
b84c710902
Prevent infinite loop in runzip_fd with crafted/damaged archive.
2018-05-16 19:14:56 +10:00
Con Kolivas
07bb66e284
Clean up error warnings.
2018-05-16 19:07:29 +10:00
Con Kolivas
7123f5545b
Add more sanity checks for chunk data.
2018-05-16 17:20:26 +10:00
Con Kolivas
f12c4a35f9
Add sanity checking for chunk data in the file header, fixing stack overflow.
2018-05-16 17:12:50 +10:00
Con Kolivas
4893e869e3
Add sanity check for invalid values during decompression, addressing CVE-2017-8845.
2018-05-16 16:55:41 +10:00
Con Kolivas
89d7b33e6a
Add sanity checking on chunk data on decompression.
2018-05-16 16:51:03 +10:00
Con Kolivas
33a6bf6234
Add invalid chunk data testing in info mode.
2018-05-16 16:44:50 +10:00
Con Kolivas
3f375385a5
Avoid crash from corrupt archive reading matches beyond end of stream.
2018-05-16 16:30:54 +10:00
Con Kolivas
1cf4460412
Missed one decomp clean up.
2018-05-16 15:13:55 +10:00
Con Kolivas
a94aeb7503
Further s_buf dealloc fixes on failed decompression.
2018-05-16 14:35:06 +10:00
Con Kolivas
dc57230636
Cope with compressed length being longer than uncompressed and rounding up, attending to CVE-2017-8844.
2018-05-16 14:30:15 +10:00
Con Kolivas
d26970135c
Minor memory cleanups for failed decompressions.
2018-05-16 14:20:38 +10:00
Con Kolivas
1971c00950
Fix assignment to deallocated buffer in failed decompression.
2018-05-16 14:16:49 +10:00
Con Kolivas
d212cc1115
Use dealloc() wrapper to minimise risk of local use after free.
2018-05-16 14:12:22 +10:00
Con Kolivas
3b61d97233
Minor alloc cleanup.
2018-05-16 14:03:14 +10:00
Con Kolivas
38386bd482
CVE-2017-8842 Fix divide-by-zero in bufRead::get
2018-03-09 17:39:40 +11:00
Con Kolivas
74b735ab68
Fix misleading indentation.
2018-03-09 17:29:01 +11:00
Con Kolivas
0e76d5d67c
Silence fallthrough warning.
2018-03-09 17:27:36 +11:00
Ingo Brückl
ad20a41940
Prevent lrunzip from decompressing with option 'i'
...
There must not be a decompression when requesting file information.
2018-03-09 15:48:33 +11:00
Ingo Brückl
6b50431410
Enable specifying the passphrase as an argument to option 'encrypt'
...
For various use cases it is desirable to be able to specify the
passphrase for a password protected encryption on the command line.
So allow option 'encrypt' to have an optional argument and set
control->passphrase to this argument if it is given.
Read the passphrase (and prompt for it) only from standard input
if not given on the command line.
Additionally, update documentation.
This fixes github issue #72 , reported by aivanise.
2018-03-09 15:48:33 +11:00
Con Kolivas
a91cfd16d2
Merge pull request #92 from gitmask-anonymous/gitmask-b393f649e36b7021670c
...
Gitmask Anonymous PR
2018-03-06 22:06:59 +11:00
ghost
14d95c7966
anonymous commit
2018-03-06 11:05:30 +00:00
ckolivas
4d8e60a912
Control window must be a positive value.
2017-12-18 09:08:27 +11:00
Con Kolivas
1a30639d7c
Merge pull request #77 from kata198/master
...
Allow liblrzip to work with FILE (other than stdin) and fix memory leak
2017-06-04 15:32:32 +10:00
Tim Savannah
1510f4a26a
Fix large memleak in decompression when output does not go to stdout. Same sort of logic already exists in compression.
2017-06-04 01:29:17 -04:00