Commit Graph

24 Commits (f385e7be8adb620ca7eb89f84abe4d1df94c1029)

Author SHA1 Message Date
Dave Vasilevsky f385e7be8a fix linkage 4 years ago
Dave Vasilevsky 4a03d0a1fe fix indent 4 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
steini2000 26e4b77b9e
fix decompressing files >4gb on 32bit systems
On 32bit systems, size_t is only 32bit and overflows on file size >4GB.
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 8 years ago
Christian Krause cbeac7cd5f Merge branch 'master' of github.com:vasi/pixz 9 years ago
Christian Krause 7504c11378 adds missing newline in help 9 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>
9 years ago
Christian Krause 936d8068ae option to not build man page
fixes #56
9 years ago
Christian Krause c8f14d0f06 fixes #55 9 years ago
Christian Krause 7fb07efef7 print fseeko error 9 years ago
Christian Krause 5d831e6d1b autoconf checks for htole64 and le64toh
- addresses #52
9 years ago
Christian Krause ebebf82439 include man page in release tarball
- adds man page to `EXTRA_DIST`
- `configure` checks for `a2x` only if the man page does not exist (poor
  mans way of checking if we build from git or release tarball)
- fixes #50
9 years ago
Christian Krause a12755fd16 fixes out-of-tree build manpage generation
Unfortunately, a2x generates the manpage only in the directory where the
source file is located and it does not offer a command line option to
change the output directory. I hope, the `if ! test -f` hack I
implemented works everywhere.
9 years ago
Christian Krause 033fa93a76 update download link in man page 9 years ago
Christian Krause b98e2a74d0 update TODO comment 9 years ago
Christian Krause 8cfd6bb9e7 Merge branch 'master' into cppcheck-test 9 years ago
Christian Krause 56fba37518 better error message on incorrect input path 9 years ago
Christian Krause e5ba30f9c0 creates output file with permissions of input file
- also some more detailed error messages, some duplication, though,
  maybe clean up later
- fixes #15
9 years ago
Christian Krause 35a2f67be9 implements cppcheck test
- fixes #8
9 years ago
Christian Krause d7d1b9ce0f fixes #34
for now this just adds the `-c` option and completely ignores it
9 years ago
Christian Krause bc9a3b8d5a complete autotools build
- `__APPLE__` vs `__OS2__` - does this actually work? Would some please test on apple and give feedback?
- pthread via `AX_PTHREAD`
- version via `PACKAGE_VERSION` in `config.h`
- large file support via `AC_SYS_LARGEFILE`
9 years ago
Christian Krause de6fdf888d move sources to src 9 years ago