Commit Graph

257 Commits (master)
 

Author SHA1 Message Date
Dave Vasilevsky d0e61be329 escape newline 2 months ago
Dave Vasilevsky 294875b108
Merge pull request #112 from vasi/wincpu
msys2 support
5 months ago
Dave Vasilevsky ebeb225a07 win can return >1 for isatty 5 months ago
Dave Vasilevsky 7ed15497be check for seekability on win 5 months ago
Dave Vasilevsky 446087ed7a use binary mode for win files 5 months ago
Dave Vasilevsky cb961a54b0 detect windows cpus 5 months ago
Dave Vasilevsky 670ddc7c90
Merge pull request #108 from Redfoxymoon/master
midipix support
8 months ago
Dave Vasilevsky 8155addb46
Merge pull request #105 from usefulcat/master
Bug fix for segfault
8 months ago
Ørjan Malde 84e6df8d0c midipix support 1 year ago
Dave Vasilevsky d2131cc19f
Merge pull request #107 from wsldankers/sched_getaffinity
Only use available CPUs
2 years ago
Wessel Dankers 6a9443d955
Only use available CPUs
Not all online CPUs may be available for the current process,
especially when CPU affinity is involved. In such cases too many
threads will be created, which will unnecessarily compete for CPU
time.

Use sched_getaffinity() (if available) to determine the correct
number of threads to create.
2 years ago
Scott McCaskill 57d9add97f minor optimization
Don't hold queue mutex while calling malloc/free
2 years ago
Scott McCaskill 9c3aab2f5d Bug fix for segfault
In read_thread(), in the "Do we need this block?" block, it failed
to advance to the next wanted_t when w->end is exactly equal to uend.

In the particular case I looked at, this resulted in read_thread()
erroneously putting two blocks into the queue (pipeline_split(),
read.c:570) instead of one.

This resulted in a subsequent crash in tar_read() at read.c:660,
where gArWanted was null (when clearly the code does not expect it
to be null at that point).

My use case:

I have several hundred large .tar.xz files (created by pixz). Each
archive contains over 200k files. I frequently need to extract a lot
of files from each archive, but not all files, only a specific subset.
So I am making heavy use of the -x option to pixz.
2 years ago
Dave Vasilevsky f1b1b5f8af
Merge pull request #104 from silwol/dev/cppcheck-uninitialized-variables
Fix cppcheck 2.8 uninitialized variables warnings
2 years ago
Wolfgang Silbermayr 2f4db11558 Fix cppcheck 2.8 uninitialized variables warnings 2 years ago
Dave Vasilevsky 1eb74e8ee8
Merge pull request #101 from teran/add-version-flag
Add -V flag to print application version
2 years ago
Igor Shishkin 631c916068
Add -V flag to print application version
Signed-off-by: Igor Shishkin <me@teran.ru>
2 years ago
Dave Vasilevsky 0829c7315c more portable permission test 3 years ago
Dave Vasilevsky 3c7e8bc68c
Merge pull request #91 from kit-ty-kate/patch-1
Do not return exit status 2 when given -h
3 years ago
Kate 57de570db7
Do not return exit status 2 when given -h
This is rather surprising for pixz to "fail" when giving `--help`/`-h`.
3 years ago
Dave Vasilevsky ec33de7b18
Merge pull request #90 from vasi/vasi-small-concat
fix decompressing concatenated small files
4 years ago
Dave Vasilevsky 1aeb09b868 fix decompressing concatenated small files 4 years ago
Dave Vasilevsky 1d2cec0b61
Merge pull request #88 from ffontaine/master
configure.ac: replace AC_CHECK_FILE
4 years ago
Fabrice Fontaine 4ddfdca841 configure.ac: replace AC_CHECK_FILE
AC_CHECK_FILE can't be used when cross-compiling so replace it by a
simple test -f

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
4 years ago
Dave Vasilevsky 1e3f509148 update dates 4 years ago
Dave Vasilevsky 573e4a8d2c release 1.0.7 4 years ago
Dave Vasilevsky 29e57ec102 Make building clean on linux, use config.h 4 years ago
Dave Vasilevsky 49acde1e50 Change include on Macs, why was this changed to OS/2? 4 years ago
Dave Vasilevsky f385e7be8a fix linkage 4 years ago
Dave Vasilevsky 4a03d0a1fe fix indent 4 years ago
Dave Vasilevsky 6b74c1f81f
Merge pull request #82 from mattst88/unaligned
Avoid unaligned accesses
5 years ago
Matt Turner 8b9a198d86 Avoid unaligned accesses
Architectures like SPARC do not allow unaligned accesses. Avoid them by
memcpy()ing the data to an aligned buffer. On x86 systems where
unaligned loads are fast, the memcpy() will be compiled away and the
same code generated as before.
5 years ago
Dave Vasilevsky 00e62fe45a
Merge pull request #77 from steini2000/master
fix decompressing files >4gb on 32bit systems
5 years ago
Dave Vasilevsky a2d9b67f40
Merge pull request #78 from clandmeter/bashism
use posix shell for tests
5 years ago
Carlo Landmeter e33f9a5454 use posix shell for tests 6 years ago
steini2000 26e4b77b9e
fix decompressing files >4gb on 32bit systems
On 32bit systems, size_t is only 32bit and overflows on file size >4GB.
6 years ago
Christian Krause 4f079c33a2
update travis instructions
This now uses the faster, docker-based infrastructure of Travis.
7 years ago
Philipp Kern 943932c0e8 Fix an off-by-one error that causes memory corruption.
We read up to bsize bytes from gInFile, so allocate as much memory.
7 years ago
Christian Krause 75f27d8850 fixes pkg-config flags 7 years ago
Christian Krause cbeac7cd5f Merge branch 'master' of github.com:vasi/pixz 8 years ago
Christian Krause 7504c11378 adds missing newline in help 8 years ago
Christian Krause d2d7203969 Merge pull request #61 from kraj/master
Musl inspired general fixes
8 years ago
Khem Raj 5ed67fc86f endian: Use macro bswap_64 instead of __bswap_64
byteswap.h defines then as public APIs on all libc
on linux including musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
8 years ago
Khem Raj a224836798 configure: Detect headers before using them
Current logic does not work when system does not have
sys/endian.h, since it tried to reuse the cached results
from first try of detecting htole64 in sys/endian.h which is
'no' and hence the second try to look into endian.h also
comes out negative.

So we check for header and then run the test for symbols
and these symbols are not standard and we need to define _GNU_SOURCE
for it to work, this issue is exposed by systems using musl e.g.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
8 years ago
Christian Krause 936d8068ae option to not build man page
fixes #56
8 years ago
Christian Krause e044a6d041 release version 1.0.6 9 years ago
Christian Krause c8f14d0f06 fixes #55 9 years ago
Christian Krause 7fb07efef7 print fseeko error 9 years ago
Christian Krause 8879834e8a release version 1.0.5 9 years ago
Christian Krause b263b1c6e1 Merge pull request #53 from wookietreiber/endian-conversion-checks
autoconf checks for htole64 and le64toh
9 years ago