Commit graph

766 commits

Author SHA1 Message Date
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 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
Con Kolivas 21496ded07 Enable subdir objects for future automake compatibility 2016-06-09 10:18:26 +10:00
Con Kolivas 7808f3dcbc Add support for -m option in lrztar 2016-06-09 09:56:17 +10:00
Con Kolivas 38161805fb Merge branch 'master' of github.com:ckolivas/lrzip 2016-06-09 09:49:52 +10:00
Con Kolivas b8c1e9ca63 Big endian fix for Solaris Sparc courtesy of joelfredrikson. 2016-06-09 09:49:43 +10:00
Con Kolivas 9e84152485 Merge pull request #43 from orthographic-pedant/spell_check/accommodate
Fixed typographical error, changed accomodate to accommodate in README.
2016-06-09 09:48:50 +10:00
orthographic-pedant 0639d10de5 Fixed typographical error, changed accomodate to accommodate in README. 2015-09-30 15:23:03 -04:00
George Makrydakis bbb3058cc3 A whitespace fix on lrztar.
Signed-off-by: ckolivas <kernel@kolivas.org>
2015-05-06 08:52:50 +10:00
Con Kolivas 3dfcde4a82 Add sanity check to prevent trying to malloc more ram than a system/environment is capable of 2015-05-01 12:47:16 +10:00
Con Kolivas 3a53bec832 Merge pull request #38 from pete4abw/master
Correct adding slash to control->tmpdir. off-by-one error.
2015-03-11 07:18:08 +11:00
Peter Hyman 4a24a6dd10 Correct adding slash to control->tmpdir. off-by-one error. 2015-03-10 11:30:37 -07:00
Con Kolivas 7caef3ef85 Update manpage for long options 2015-03-10 21:49:04 +11:00
Con Kolivas c3bbeb99d4 Bump version to 0.621 2015-03-10 21:41:49 +11:00
Con Kolivas 573606c950 Update documentation 2015-03-10 21:41:49 +11:00
Con Kolivas a9fadeec1c Fix libzpaq.cpp warnings 2015-03-10 21:29:04 +11:00
Con Kolivas 2e36d2a580 Fix warnings in LzmaLib.c 2015-03-10 21:24:45 +11:00
Con Kolivas 9a17a54c49 Making the high buffer only one page size is faster for sliding mmap mode 2015-03-10 21:10:24 +11:00
Con Kolivas d5a339335b Fix incompatible log callback in liblrzip 2015-03-10 20:27:38 +11:00
Con Kolivas 3dbf13f92d Use PRId64 instead of lld in fscanf 2015-03-10 20:08:00 +11:00
Con Kolivas 5c5a8c6cc5 Use int64_t for i64 2015-03-10 20:05:51 +11:00
Con Kolivas e3598a7b96 Fix ISO C warning in lrzip.c 2015-03-10 20:04:14 +11:00
Con Kolivas 2e3eed5d77 Fix ISO C warning in lrzip.c 2015-03-10 20:03:21 +11:00
Con Kolivas 90f7228507 Fix ISO C warning in runzip.c 2015-03-10 20:02:27 +11:00
Con Kolivas 9756dd3785 Fix ISO C warnings in rzip.c 2015-03-10 19:58:10 +11:00
Con Kolivas efe3f679ca Fix iso c warning in util.c 2015-03-10 18:33:10 +11:00
Con Kolivas e962197cbf Fix EOL to unix on libzpaq 2015-03-10 18:23:00 +11:00
Con Kolivas ecbdd8504c Merge pull request #37 from pete4abw/master
control->tmpdir fixes
2015-03-10 15:37:01 +11:00
Peter Hyman 9a3d2f887a control->tmpdir fixes 2015-03-09 20:36:19 -07:00
Con Kolivas e6669cf156 Null terminate long options to find unhandled options 2015-03-10 14:02:51 +11:00
Con Kolivas c951b17a20 Trivial date 2015-03-10 14:00:24 +11:00
Con Kolivas 9ac3990812 Add long option support 2015-03-10 13:52:22 +11:00
Con Kolivas e590d781f3 Brace failure lead to broken dump to stdout 2015-03-10 13:26:14 +11:00
Con Kolivas 79cebb663b fflush messages on print_err 2015-03-10 13:01:16 +11: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 c3bc42e2c8 Avoid checking return values repeatedly on compress that only lead to failures anyway 2015-03-10 09:46:35 +11:00
Con Kolivas aa753fee53 Microoptimisation 2015-03-09 21:24:50 +11:00
Con Kolivas edc7f5a7ce Don't check for failure condition that can no longer occur 2015-03-09 21:10:48 +11:00
Con Kolivas 420a483a30 Don't check twice for failure conditions that are fatal in hot paths 2015-03-09 21:03:10 +11:00
Con Kolivas 6e31fc621e Cache the chunk bytes value to avoid setting it on each read_header call 2015-03-09 11:46:24 +11:00
ckolivas 707ca69d31 fake_mremap is only used when defined to mremap 2015-03-08 23:30:04 +11:00
ckolivas 1a323770c7 Remove unused cksem functions 2015-03-08 10:11:42 +11:00
ckolivas f690750340 Fix remaining use of mutexes lock/unlocking in different threads with cksems, corecting cksem usage on osx 2015-03-08 10:10:38 +11:00