Con Kolivas
95688b0833
Silence tiny leak warning.
2018-05-17 14:38:12 +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
33a6bf6234
Add invalid chunk data testing in info mode.
2018-05-16 16:44:50 +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
74b735ab68
Fix misleading indentation.
2018-03-09 17:29:01 +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
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
64afd02a7d
Preserve times on compression
2016-10-17 21:36:13 +11: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
32c7fa82a2
Tidy
2016-06-09 18:18:14 +10:00
Con Kolivas
73213b9796
Merge branch 'master' into compat
2016-06-09 15:01:44 +10:00
Con Kolivas
56a84987dd
Update copyright dates
2016-06-09 11:16:41 +10:00
Con Kolivas
c7a111bd32
Base temporary output buffer on maximum mallocable, not maxram
2016-06-09 10:51:55 +10:00
Con Kolivas
fcb64e6dbb
Do not fail if we are unable to write temporary files, giving a warning only that it might fail if we don't have enough ram
2015-04-16 16:38:20 +10:00
Con Kolivas
788a70e6f6
Try /tmp/ if none of the temporary environment directories or the current directory are writeable
2015-04-16 16:20:27 +10:00
Con Kolivas
d7ebee9640
Style police
2015-04-16 15:47:31 +10:00
Con Kolivas
0005c1cd95
Fix false warning on decompressing from stdin without keep files
2015-04-16 15:31:23 +10:00
Con Kolivas
773df5436c
Fix false warning on compressing from stdin without keep files
2015-04-16 15:28:01 +10:00
Con Kolivas
591e106d57
Don't show extra message in compat mode decompress
2015-04-16 15:22:43 +10:00
Peter Hyman
4a24a6dd10
Correct adding slash to control->tmpdir. off-by-one error.
2015-03-10 11:30:37 -07:00
Con Kolivas
3dbf13f92d
Use PRId64 instead of lld in fscanf
2015-03-10 20:08:00 +11:00
Con Kolivas
2e3eed5d77
Fix ISO C warning in lrzip.c
2015-03-10 20:03:21 +11:00
Peter Hyman
9a3d2f887a
control->tmpdir fixes
2015-03-09 20:36:19 -07:00
Con Kolivas
5a6271c85d
Fix inverse logic
2015-03-10 12:27:17 +11:00
Con Kolivas
99ac472095
Honour the proper unix environment variable for temporary directory and then try variations
2015-03-10 12:10:50 +11:00
Con Kolivas
8551a43c73
Attempt to decompress file in ram only if we are unable to create temporary files when decompressing to stdout
2015-03-10 12:05:55 +11:00
Con Kolivas
c14f9ccab3
Increase maxram when we abandon use of temporary input/output buffers
2015-03-03 14:15:09 +11:00
Con Kolivas
e21bd815a7
Merge pull request #35 from cspiegel/master
...
A couple of small fixes
2015-02-09 09:04:56 +11:00
Chris Spiegel
e6338e9f9e
Fix parenthesis placement inside of unlikely().
2015-01-31 23:05:27 -08:00
Peter Hyman
70c87cbc62
Fix for lrzip -i. Decompressed size wrong
2014-12-31 13:57:37 -05:00
Con Kolivas
d8df50c9b7
Update various copyright dates.
2013-09-02 12:21:54 +10:00
Con Kolivas
66cf21db3a
Merge pull request #7 from CAFxX/patch-1
...
silly cosmetic change
2013-09-01 07:11:15 -07:00
Con Kolivas
db1788f987
Fix get_ram compilation on osx.
2012-07-07 21:44:00 +10:00
Con Kolivas
30bfe06f1a
Preserve the compressed time on decompression where suitable.
2012-03-08 00:15:58 +11:00
Con Kolivas
086265c83f
Update copyright notices and style to 1TBS for return codes.
2012-03-07 22:04:24 +11:00
ckolivas
2abda4acd6
Fix scanf warnings for %Lu.
2012-03-07 16:09:19 +11:00
ckolivas
f225f9f173
Move to c99 in preparation for pedantic warning compatibility.
2012-03-07 12:42:42 +11:00
Carlo Alberto Ferraris
81f89fe4ca
silly cosmetic change
2011-12-05 15:23:54 +01:00
Con Kolivas
d9fb70bffc
Fixes.
2011-09-16 23:06:17 +10:00
Con Kolivas
18105bbf7c
Merge branch 'master' into liblrzip
...
Conflicts:
lrzip.c
2011-09-16 22:55:34 +10:00
Con Kolivas
00700c1d42
Change permission and owner warning to verbose logging only instead of error.
2011-09-16 21:14:21 +10:00
discomfitor
3316dd5505
remove trailing whitespace
2011-08-17 20:59:41 +10:00
discomfitor
949c6d7a97
another semi-clusterfuck commit: *new logging macros *allow compression to and from any FILE, not just stdin/stdout *update main.c to work with the above
2011-08-17 20:59:41 +10:00
discomfitor
6dd20d735b
giant clusterfuck commit: *add and use alloca/strdupa in some spots *implement return values on almost every function *free() is now a macro which also nulls the freed pointer *when in 'library mode', fatal_exit() will not be called *fatal()/failure() are now macros which add line number and file for logging *all occurrences of fatal/failure in files other than main.c are now wrapped to use a logging callback (if specified) and then return *functions now clean up resources on returning with an error
2011-08-17 20:59:40 +10:00
discomfitor
133b201867
move more code out of main.c, allocate outfile suffix
2011-08-17 20:59:40 +10:00
discomfitor
08d2294e5e
add password callback hook
2011-08-17 20:59:40 +10:00
discomfitor
cbff8faef7
move liblrzip.h contents to lrzip_private.h global variables-----
2011-08-17 20:59:40 +10:00