Commit graph

876 commits

Author SHA1 Message Date
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
Tim Savannah
6e0016daf7 Make liblrzip work when FILE provided is anything other than stdin. This will allow bindings to be created to lrzip 2017-06-04 01:28:18 -04:00
Con Kolivas
ac393eff44 Merge pull request #60 from zetok/readme
Fix FAQ formatting in README.md
2016-11-13 21:19:21 +11:00
Zetok Zalbavar
61331daa82
Fix FAQ formatting in README.md
Looks like automatic conversion of FAQ to markdown messed things up
slightly.
2016-11-13 10:12:48 +00:00
Con Kolivas
9de7ccbd33 Bump version to 0.631 2016-10-21 12:09:03 +11:00
Con Kolivas
64afd02a7d Preserve times on compression 2016-10-17 21:36:13 +11:00
Con Kolivas
5a5c5cd425 Merge branch 'master' of github.com:ckolivas/lrzip 2016-10-17 19:53:02 +11:00
Con Kolivas
321c80f382 Add parsing of license option in compat mode and delete parsing of unused parameters where appropriate. 2016-10-17 19:50:45 +11:00
Con Kolivas
2c15f12dbb Merge pull request #58 from Patterner/master
fix getopt() call for 'p' by adding the missing colon (:)
2016-09-21 01:52:57 +02:00
Jörg Plate
ae69bc45e5 fix getopt() call for 'p' by adding the missing colon (:) 2016-09-21 01:50:37 +02:00
Con Kolivas
1306c809b8 Merge branch 'master' of github.com:ckolivas/lrzip 2016-06-14 13:47:51 +10:00
Con Kolivas
3d9b791214 Add a workaround in encryption loops calculation for CPUs no longer keeping up with Moore's law 2016-06-14 13:47:38 +10:00
Con Kolivas
98f87e6df9 Merge pull request #53 from ole-tange/master
Reformatted man page
2016-06-12 08:17:23 +10:00
Ole Tange
cd51d20bd4 Added regressiontest. 2016-06-11 23:25:27 +02:00
Ole Tange
1203a1853e main.c: Ignore --lzma. 2016-06-11 21:47:54 +02:00
Ole Tange
b0a6d87742 man/lrz.1.pod: Better POD formatting. 2016-06-11 21:47:13 +02:00
Con Kolivas
23ff5f921a Bump version to 0.630 2016-06-11 09:30:47 +10:00
Con Kolivas
b63c673ab8 Update changelog for v0.630 2016-06-11 09:30:10 +10:00
Con Kolivas
049ea5b35c Update man copyright notices 2016-06-11 09:24:14 +10:00
Con Kolivas
752c91c502 Update more copyright notices 2016-06-11 09:22:34 +10:00
Con Kolivas
4f53d36caa Merge branch 'compat' 2016-06-10 21:05:39 +10:00
Con Kolivas
d05334bd86 checksum.buf should only be changed after the semaphore wait 2016-06-10 21:04:42 +10:00
Con Kolivas
a2796607d9 Update README 2016-06-10 16:23:00 +10:00
Con Kolivas
3e178b4ede Add documentation for recursive mode 2016-06-10 16:17:11 +10:00
Con Kolivas
7a03965214 Implement gzip compatible -r recursive option 2016-06-10 16:10:03 +10:00
Con Kolivas
8853f2e449 Add initial argument processing for recursive option 2016-06-10 12:57:34 +10:00
Con Kolivas
2086185ed5 Merge branch 'compat' 2016-06-10 12:40:49 +10:00
Con Kolivas
32c7fa82a2 Tidy 2016-06-09 18:18:14 +10:00
Con Kolivas
2021d5e862 Add one more verbose for compat mode 2016-06-09 18:14:43 +10:00
Con Kolivas
9a351d1b50 Add support for various combinations in compat mode 2016-06-09 18:02:13 +10:00
Con Kolivas
d78c3bbd7a models is array of chars. char's signess is implementation specific.
It's unsigned on ARMv7. Unsigned char cannot represent negative values.
GCC 6 complains about it:

    narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]

This can be reproduced with older GCC or by:

   ./configure CXXFLAGS='-Wnarrowing -funsigned-char'

This patch casts the negative values explicitly because changing the
type to signed char[] would change prototypes of public methods.

Signed-off-by: Petr Písař <ppisar@redhat.com>
2016-06-09 15:25:49 +10:00
Con Kolivas
73213b9796 Merge branch 'master' into compat 2016-06-09 15:01:44 +10:00
Con Kolivas
7e92f4cb47 Fix decompression of multiple chunk encrypted archives 2016-06-09 15:00:58 +10:00
Con Kolivas
5627479c60 Tidy gotos 2016-06-09 13:56:54 +10:00
Con Kolivas
007bf5de93 Show correct lengths during testing on big endian and compressed archives 2016-06-09 11:48:04 +10:00
Con Kolivas
56a84987dd Update copyright dates 2016-06-09 11:16:41 +10:00
Con Kolivas
70bd5e9d3a Allow less than maxram to be malloced for checksum to fix Failed to malloc ckbuf in hash_search2 2016-06-09 11:04:40 +10:00
Con Kolivas
c7a111bd32 Base temporary output buffer on maximum mallocable, not maxram 2016-06-09 10:51:55 +10:00