Commit graph

695 commits

Author SHA1 Message Date
Con Kolivas
9b7405e9cd Roll back inappropriately updated version with other patches 2015-02-09 09:03:37 +11:00
Peter Hyman
70c87cbc62 Fix for lrzip -i. Decompressed size wrong 2014-12-31 13:57:37 -05:00
Con Kolivas
2c151a0d1b Fix wrong README file being included in Makefile 2014-05-30 22:48:48 +10:00
Con Kolivas
b81b61cd40 Merge pull request #19 from haneefmubarak/patch-1
Full Rewrite (except for FAQ, minor changes there)
2014-05-30 22:12:41 +10:00
Con Kolivas
4aa69a104a Pass strict sizes to decompress length, rounding up only the amount we're allocating to not confuse decompression libraries 2014-05-30 22:05:51 +10:00
Con Kolivas
22496bdd5a Convert the thread locking to use cksems 2014-05-30 21:27:21 +10:00
Con Kolivas
298d6a6715 Add cksems to util.h 2014-05-30 21:05:05 +10:00
Con Kolivas
f80512cb29 Merge pull request #27 from Maeyanie/patch-1
Fix 'Failed to malloc ckbuf in hash_search2' with very large files.
2013-11-04 18:41:02 -08:00
Maeyanie
2e1fc25543 Fix 'Failed to malloc ckbuf in hash_search2' with very large files.
lrzip was trying to malloc() enough memory to fit the entire length of file it was going to hash, instead of just the size of one chunk. This caused problems when combined with extremely large files.
2013-11-04 18:10:15 -05:00
Con Kolivas
6c8525893b Round up compression and decompression buffers to page size since malloc will allocate them that large anyway. 2013-09-14 12:58:31 +10:00
Con Kolivas
47de07affb Increase the compressed buffer size given to libzpaq in case of incompressible data since it does not check if it's trying to write beyond the end of the buffer. 2013-09-14 11:45:23 +10:00
Con Kolivas
6bb837761f Provide a helper function to round a value up to the nearest page size for malloc optimisations. 2013-09-14 11:41:57 +10:00
Con Kolivas
d5c00f96f7 Bump version number to 0.616 2013-09-09 09:43:30 +10:00
Con Kolivas
84665b758f Update changelogs. 2013-09-09 09:43:06 +10:00
Con Kolivas
35c615db92 Merge pull request #23 from irrequietus/master
Simplifying and refactoring lrztar logic.
2013-09-08 06:51:39 -07:00
George Makrydakis
5f572c75d0 Making things more homogeneous in checks, some space removed. 2013-09-08 16:50:09 +03:00
George Makrydakis
0a63179529 Simplifying and refactoring logic, alignment edits, empty semantic rewire. 2013-09-08 16:11:59 +03:00
Con Kolivas
821221c8f9 Merge pull request #22 from irrequietus/master
Making -O and -f modus operandi semantically consistent.
2013-09-08 04:34:26 -07:00
George Makrydakis
66ae7c85bf Target directories must always exist and -f should not create them. 2013-09-08 14:20:06 +03:00
George Makrydakis
b196440c9d Deferring output directory after -f check has taken place. 2013-09-08 13:20:54 +03:00
Con Kolivas
418791fd55 Merge pull request #21 from irrequietus/master
Preserve extraction semantics without resorting to tar stripping.
2013-09-06 16:01:05 -07:00
George Makrydakis
9ded009ac1 Preserve extraction semantics without resorting to tar stripping. 2013-09-07 01:57:14 +03:00
Con Kolivas
497641e951 Merge pull request #20 from irrequietus/master
Forward slash and force overwrite checkpoint fixes.
2013-09-06 14:44:12 -07:00
George Makrydakis
897430d8cc Making sure last forward slash is removed from input path. 2013-09-07 00:36:14 +03:00
George Makrydakis
1959fad869 Removing pointless forced overwrite point check. 2013-09-07 00:35:04 +03:00
Haneef Mubarak
c1f445308c Full Rewrite (except for FAQ, minor changes there)
- Cleanup
 - Rewrite of most of document
 - Added GitHub Flavored Markdown
 - Contributors Table
 - Tl;DR
 - Misc.
 - etc.
2013-09-02 23:05:55 -07:00
Con Kolivas
acf81ead70 Bump version to 0.615 2013-09-02 12:21:54 +10:00
Con Kolivas
e3264fe117 Update NEWS and ChangeLog. 2013-09-02 12:21:54 +10:00
Con Kolivas
d8df50c9b7 Update various copyright dates. 2013-09-02 12:21:54 +10:00
Con Kolivas
e32636826b Merge pull request #18 from irrequietus/master
Adjusting -O flag semantics, options help update.
2013-09-01 16:50:47 -07:00
George Makrydakis
8e1411b4ae Adjusting -O flag semantics, options help update. 2013-09-02 02:30:53 +03:00
Con Kolivas
8a0078a4e5 Merge pull request #17 from irrequietus/master
Updating and fixing lrztar, lrzuntar for some of their flags.
2013-09-01 13:59:40 -07:00
George Makrydakis
ed6be83fcc Making -O flag operative for lrztar, whitespace path fix, lrzuntar fix, other minor. 2013-09-01 23:07:15 +03: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
8244513719 Further tighten up ram restrictions with stdin/stdout to prevent running out of memory with all the buffers involved. 2013-09-02 00:07:30 +10:00
Con Kolivas
21925e4a9c Massive files fail with -U due to trying to allocate the whole lot in ram while doing checksums. Do it piecemeal to avoid the problem. Patch and debugging courtesy of Adam Tkáč. 2013-09-01 15:46:48 +10:00
Con Kolivas
5c811a9311 We have to run through the clear buffer function even for empty buffers or corrupt archives with empty match streams. 2013-09-01 15:02:52 +10:00
Con Kolivas
568dffafbc MD5 code uses little endian so remove arbitrary SWAP macro and explicitly use htole32. 2013-09-01 12:50:14 +10:00
Con Kolivas
eff1efdbc5 Rewrite the magic if we receive lzma properties and have not yet written them yet during stdout operation. 2013-09-01 12:25:06 +10:00
Con Kolivas
b076dbb59d Set the control lzma properties only once. 2013-09-01 12:17:51 +10:00
Con Kolivas
4db4641dae Add a control lock mutex for protecting certain control variables. 2013-09-01 12:11:51 +10:00
Con Kolivas
37ef39e70a Fix stdin fake mremap creating null bytes on osx, patch courtesy of John Boyle. 2013-09-01 08:43:28 +10:00
Con Kolivas
2c1dda7b73 Cache frequently used indirectly referenced variables in the sliding mmap code. 2013-03-19 00:17:52 +11:00
Con Kolivas
87fe625829 Micro-optimise sliding_get_sb_range. 2013-03-18 23:58:10 +11:00
Con Kolivas
2df8968e75 A fix for a bug where large files containing the same non-zero bytes which requires a sliding window, courtesy of Serge Belyshev. 2013-03-18 23:50:32 +11:00
Con Kolivas
ccf225f710 Put vchar should take a 64 bit integer and is used from more than one call site so uninline it. 2012-12-31 16:02:54 +11:00
Con Kolivas
6f0410d28f Microoptimise in hash_search. 2012-12-31 15:02:49 +11:00
Con Kolivas
e1fd5d6d11 Inline rzip functions used from only one caller. 2012-12-31 13:24:33 +11:00
Con Kolivas
0b8c0818a0 Check for successful calloc of hash table only after performing it. 2012-12-31 13:16:03 +11:00
Con Kolivas
5591639863 stdin_eof is just a bool 2012-12-31 13:09:47 +11:00