Con Kolivas
|
cea59cd568
|
No need for all those backspaces on decompression progress.
|
2012-03-07 23:16:43 +11:00 |
|
Con Kolivas
|
086265c83f
|
Update copyright notices and style to 1TBS for return codes.
|
2012-03-07 22:04:24 +11:00 |
|
Con Kolivas
|
d9fb70bffc
|
Fixes.
|
2011-09-16 23:06:17 +10:00 |
|
Con Kolivas
|
a0fe1a8c8e
|
Merge branch 'master' into liblrzip
Conflicts:
runzip.c
stream.h
|
2011-09-15 08:31:00 +10:00 |
|
Con Kolivas
|
e1f2138060
|
Make sure to read to the end of all streams when closing down an rzip stream.
This would have made lrzip unable to decompress some rare archives if they ended up stream 0.
|
2011-09-15 08:28:30 +10:00 |
|
Con Kolivas
|
a39b57a1e7
|
Add lots more debugging in maxverbose mode about where data is being written.
|
2011-09-15 08:26:07 +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
|
cbff8faef7
|
move liblrzip.h contents to lrzip_private.h global variables-----
|
2011-08-17 20:59:40 +10:00 |
|
Con Kolivas
|
103d2ce11e
|
Add sanity check for meaningless chunk_byte value on runzip.
|
2011-05-08 00:29:58 +10:00 |
|
Con Kolivas
|
915edb78a2
|
Remove unused variables and functions.
|
2011-03-23 08:16:07 +11:00 |
|
Con Kolivas
|
f7a1c14e28
|
Put warning about possibly wrong password at appropriate place in stream.c
Use char to be consistent in open_stream_in.
Fail to failure() instead of fatal() should open_stream_in fail.
|
2011-03-23 01:13:15 +11:00 |
|
Con Kolivas
|
70e7866271
|
Include arpa/inet.h for those OSs that have endian details elsewhere.
|
2011-03-22 21:47:24 +11:00 |
|
Con Kolivas
|
2736118f82
|
Check for different endian.h includes and variants of le32toh.
|
2011-03-22 07:57:32 +11:00 |
|
Con Kolivas
|
a30efcaa55
|
Portable generic byteswap for BE.
|
2011-03-22 00:13:29 +11:00 |
|
Con Kolivas
|
c533b031bc
|
Fix trivial compiler warnings.
|
2011-03-21 23:36:39 +11:00 |
|
Con Kolivas
|
8c8f5bdd48
|
lrz_crypt tweaks courtesy of Serge Belyshev.
|
2011-03-21 20:54:53 +11:00 |
|
Con Kolivas
|
2982cb7121
|
Yet yet more BE fixes.
|
2011-03-21 16:12:51 +11:00 |
|
Con Kolivas
|
19cbaaf8df
|
Simplify read_vchars since it's always stored in little endian.
|
2011-03-21 13:33:45 +11:00 |
|
Con Kolivas
|
81bdbaf066
|
Yet more BE fixes.
|
2011-03-21 13:00:57 +11:00 |
|
Con Kolivas
|
77d44ce108
|
Disable output when it's not known. More endian fixes.
|
2011-03-20 22:22:54 +11:00 |
|
Con Kolivas
|
ff5a5ed054
|
Use separate lrz_encrypt and lrz_decrypt wrappers to lrz_crypt.
|
2011-03-19 14:04:22 +11:00 |
|
Con Kolivas
|
0b1db75a44
|
Cleanups.
|
2011-03-19 13:53:43 +11:00 |
|
Con Kolivas
|
63fb1bafea
|
Modify the file format further to make all block header information only encode the number of bytes determined in chunk_bytes instead of 8 full bytes all the time.
|
2011-03-18 23:18:36 +11:00 |
|
ckolivas
|
e856d481bf
|
Discard hash_iv entirely, using passphrase hash and centralise key generation.
Patch by Serge Belyshev.
|
2011-03-18 10:22:58 +11:00 |
|
Con Kolivas
|
a3e80871c2
|
Add 8 bytes of random data to the start of every encrypted compressed block and use it along with 8 bytes from the stored salt to make a unique key and IV for encryption.
|
2011-03-18 00:06:11 +11:00 |
|
ckolivas
|
4bc23ee001
|
Centralise where all encryption/decryption is done, and whether to carry over the IV or not.
|
2011-03-17 14:10:58 +11:00 |
|
ckolivas
|
ae63349e3c
|
We do need to seek to read the MD5 correctly on very small files so support seeking to end and then seek to the md5 start.
|
2011-03-17 11:53:29 +11:00 |
|
Con Kolivas
|
f61632670e
|
Encrypt the md5 value as well to make the file unidentifiable.
|
2011-03-16 00:29:10 +11:00 |
|
ckolivas
|
e26d0d1381
|
Clear the temporary infile where possible as well when we have falen back to it.
|
2011-03-15 11:27:07 +11:00 |
|
ckolivas
|
65a681a254
|
Relative offset is not required in tmp inbuf, it can be safely zeroed.
|
2011-03-15 11:21:26 +11:00 |
|
Con Kolivas
|
8a83741c32
|
Clear tmpinbuf between chunks.
|
2011-03-14 22:03:13 +11:00 |
|
Con Kolivas
|
3a8c0b6689
|
Remove seeks that aren't required and don't work on tmp input buffers.
Clean up open_stream_in.
|
2011-03-14 21:51:27 +11:00 |
|
Con Kolivas
|
c832e80085
|
More infrastructure to read from temporary buffers on stdin decompression.
|
2011-03-14 21:19:57 +11:00 |
|
Con Kolivas
|
36e09f206e
|
Begin massive read changes to support using temporary file for STDIN.
|
2011-03-14 20:22:45 +11:00 |
|
Con Kolivas
|
684959efed
|
Add fields for temporary input buffer and clamp memory accordingly in preparation.
|
2011-03-14 14:47:26 +11:00 |
|
Con Kolivas
|
9e772d3140
|
Make ALL decompression use temporary in-ram buffer whenever possible.
|
2011-03-14 12:48:40 +11:00 |
|
Con Kolivas
|
b644240152
|
write_1g always uses control->fd_out so don't pass fd to it.
|
2011-03-14 11:15:35 +11:00 |
|
Con Kolivas
|
7eabb5e7de
|
Check seek hasn't made the pseudo file longer.
|
2011-03-14 11:12:12 +11:00 |
|
Con Kolivas
|
4a6fa7602f
|
Begin decompressing to stdout via temporary buffer by creating a read/write wrapper.
|
2011-03-14 10:07:51 +11:00 |
|
Con Kolivas
|
f2ddd9022c
|
Ignore the eof flag if the file size is known.
|
2011-03-13 21:31:03 +11:00 |
|
Con Kolivas
|
b17540d32e
|
Fix decompressing single chunk stdout chunked archives.
|
2011-03-13 18:14:50 +11:00 |
|
Con Kolivas
|
8756fe91e2
|
Enable decompression when file has been chunked stdout and display progress only when expected size is known.
|
2011-03-13 17:52:23 +11:00 |
|
Con Kolivas
|
c75a50f723
|
Being modifying write_1g function to be able to write to a temporary buffer instead of straight to fd_out.
Split out make_magic to be able to write magic wherever we want later.
|
2011-03-12 14:13:28 +11:00 |
|
Con Kolivas
|
1a7c409e10
|
header-mangling-part-X-move-all-headers-defines-into
|
2011-03-09 08:37:26 +11:00 |
|
Con Kolivas
|
99c3ea2ab9
|
header-mangling-part-3-remove-ugly-hacks-for-liblrzi
|
2011-03-09 08:36:07 +11:00 |
|
Con Kolivas
|
1511c27aad
|
header-mangling-part-2-move-all-function-prototypes
|
2011-03-09 08:34:44 +11:00 |
|
Con Kolivas
|
f6f0a25ef6
|
rebase-of-function-split-and-control-additions-to-fu
|
2011-03-09 08:32:14 +11:00 |
|
ckolivas
|
59e5bc0492
|
Remove all open coded strerrors when they're going to be shown by fatal().
|
2011-03-08 12:05:03 +11:00 |
|
Con Kolivas
|
13a6fb5b43
|
Dump the temporary file generated to emulate stdout at the end of each chunk on decompression and then truncate the file instead of writing the whole file before dumping it.
|
2011-03-07 17:14:07 +11:00 |
|