]>
granicus.if.org Git - zziplib/log
Patrick Steinhardt [Tue, 21 May 2019 11:15:36 +0000 (13:15 +0200)]
zzip: format: explicitly mark header length constants as unsigned
The various different `headerlength` macros in "format.h" are defined as
simple additions of all the field lengths of its struct representation.
While it is obvious that the resulting constants are always positive,
the C language specifies the result as a signed integer, causing
warnings at several places due to comparisons with different signedness.
Fix the issue by explicitly marking the constants as unsigned. A simpler
fix would just replace those constants with `sizeof`, which should be
fine due to the struct's being marked as packed. But for the sake of
simplicitly, let's just stay with the more obvious fix.
Patrick Steinhardt [Tue, 21 May 2019 11:10:22 +0000 (13:10 +0200)]
zzip: string: fix comparison with different signs
When subtracting two pointers, the result is signed as the subtrahend
may point at a position after the minuend, in which case it is bigger
and the result would be negative. This causes a warning in
`_zzip_strnlen`, which is supposed to return an unsigned `size_t`.
As the minuend is computed by using `memchr` on the subtrahend, we know
that it is always either `NULL` or bigger than the subtrahend. And due
to the subtraction only being performed when it is non-`NULL`, we may
simply cast the result to `size_t` to fix the issue, fixing the warning.
Patrick Steinhardt [Tue, 21 May 2019 11:04:03 +0000 (13:04 +0200)]
zzip: string: fix invalid malloc attribute
The `_zzip_strnlen` function is annotated with the `zzip_new__` macro,
which is defined to `__attribute__((malloc))` on systems which support
this attribute. The malloc attribute can be applied to functions that
return a pointer value, indicating that a returned non-NULL pointer
cannot alias and that its contents have undefined content. But as
`_zzip_strnlen` neither performs an allocation nor returns a pointer to
memory, we cannot use that attribute here.
Remove it to fix a compiler warning.
Guido Draheim [Sun, 26 May 2019 11:28:26 +0000 (13:28 +0200)]
azure master/develop
Guido Draheim [Sun, 26 May 2019 11:14:31 +0000 (13:14 +0200)]
publish testresults.xml
Guido Draheim [Sun, 26 May 2019 11:14:21 +0000 (13:14 +0200)]
change testresults.xml
Guido Draheim [Sun, 26 May 2019 11:04:35 +0000 (13:04 +0200)]
xmlresults
Guido Draheim [Sun, 26 May 2019 10:57:11 +0000 (12:57 +0200)]
cmake zziptest
Guido Draheim [Sun, 26 May 2019 10:53:27 +0000 (12:53 +0200)]
cmake ZZIP_PACKAGE_VERSION and NAME
Guido Draheim [Sun, 26 May 2019 10:52:45 +0000 (12:52 +0200)]
replace ZZIP_VERSION/ZZIP_PACKAGE_VERSION ZZIP_PACKAGE/ZZIP_PACKAGE_NAME
Guido Draheim [Sun, 26 May 2019 10:24:15 +0000 (12:24 +0200)]
make check xmlrunner
Guido Draheim [Sun, 26 May 2019 10:12:08 +0000 (12:12 +0200)]
binary-dir for zzip/_config.h
Guido Draheim [Sun, 26 May 2019 10:07:18 +0000 (12:07 +0200)]
try-to-install-sdl
Guido Draheim [Sun, 26 May 2019 10:05:32 +0000 (12:05 +0200)]
try-to-install-sdl
Guido Draheim [Sun, 26 May 2019 10:00:25 +0000 (12:00 +0200)]
try-to-install-sdl
Guido Draheim [Sun, 26 May 2019 09:58:12 +0000 (11:58 +0200)]
try-to-install-sdl
Guido Draheim [Sun, 26 May 2019 09:51:40 +0000 (11:51 +0200)]
try-toinstall-sdl
Guido Draheim [Sun, 26 May 2019 09:49:40 +0000 (11:49 +0200)]
try-to-install-sdl
Guido Draheim [Sun, 26 May 2019 09:47:43 +0000 (11:47 +0200)]
correcting cmake zzipwrap includes
Guido Draheim [Sun, 26 May 2019 09:45:34 +0000 (11:45 +0200)]
verbose-azure
Guido Draheim [Sun, 26 May 2019 09:43:41 +0000 (11:43 +0200)]
correcting cmake zzipwrap includes
Guido Draheim [Sun, 26 May 2019 09:40:38 +0000 (11:40 +0200)]
correcting cmake zzipwrap includes
Guido Draheim [Sun, 26 May 2019 09:02:03 +0000 (11:02 +0200)]
azure cmake
Guido Draheim [Sun, 26 May 2019 08:58:11 +0000 (10:58 +0200)]
azure cmake
Guido Draheim [Sun, 26 May 2019 08:55:19 +0000 (10:55 +0200)]
azure cmake
Guido Draheim [Sun, 26 May 2019 08:52:32 +0000 (10:52 +0200)]
Merge branch 'master' into develop
Guido Draheim [Sun, 26 May 2019 08:45:51 +0000 (10:45 +0200)]
Merge branch 'master' of github.com:gdraheim/zziplib
Guido Draheim [Sun, 26 May 2019 08:45:41 +0000 (10:45 +0200)]
azure classic
Guido U. Draheim [Sun, 26 May 2019 08:40:18 +0000 (10:40 +0200)]
Set up CI with Azure Pipelines
develop [skip ci]
Guido Draheim [Sun, 26 May 2019 08:39:05 +0000 (10:39 +0200)]
azure
Guido U. Draheim [Sun, 26 May 2019 08:33:52 +0000 (10:33 +0200)]
Set up CI with Azure Pipelines
configure && cd build && make [skip ci]
Guido U. Draheim [Sun, 14 Oct 2018 11:58:11 +0000 (13:58 +0200)]
Merge pull request #65 from jmoellers/bins-code-cleanup
Bins code cleanup
Guido U. Draheim [Sun, 14 Oct 2018 11:57:08 +0000 (13:57 +0200)]
Merge pull request #64 from jmoellers/testcase-CVE-2018-17828
Added test case for CVE-2018-17828.
Josef Moellers [Fri, 12 Oct 2018 14:45:47 +0000 (16:45 +0200)]
Code cleanup in "bins".
Josef Moellers [Wed, 10 Oct 2018 15:14:20 +0000 (17:14 +0200)]
Added test case for CVE-2018-17828.
Guido U. Draheim [Thu, 4 Oct 2018 13:11:27 +0000 (15:11 +0200)]
Merge pull request #63 from jmoellers/CVE-2018-17828
Fix issue #62
Josef Moellers [Thu, 4 Oct 2018 12:21:48 +0000 (14:21 +0200)]
Fix issue #62: Remove any "../" components from pathnames of extracted files.
[CVE-2018-17828]
Guido Draheim [Sun, 16 Sep 2018 21:00:09 +0000 (23:00 +0200)]
adding alocal/zziplib.m4 install
Guido Draheim [Sun, 16 Sep 2018 20:22:23 +0000 (22:22 +0200)]
one more bins/unzip-mem
Guido Draheim [Sun, 16 Sep 2018 19:19:49 +0000 (21:19 +0200)]
correct test_90000 to work without libtool (but cmake)
Guido Draheim [Sun, 16 Sep 2018 18:47:53 +0000 (20:47 +0200)]
adjust result sizes of zziptests
Guido Draheim [Sun, 16 Sep 2018 18:41:05 +0000 (20:41 +0200)]
skip test_6545x as the test.zip was only provided by mail
Guido Draheim [Sun, 16 Sep 2018 18:27:28 +0000 (20:27 +0200)]
need to ensure that test0.zip is built
Guido Draheim [Sun, 16 Sep 2018 18:17:29 +0000 (20:17 +0200)]
need to always set LANGUAGES to avoid c++ checks
Guido Draheim [Sun, 16 Sep 2018 13:02:02 +0000 (15:02 +0200)]
make an explicit ZZIPLIBTOOL compatibility flag to highlight the feature
Guido Draheim [Sun, 16 Sep 2018 12:53:34 +0000 (14:53 +0200)]
derive VERNUM from PROJECT_VERSION_MINOR and set FIXNUM only where it is used for add_library(VERSION) settings
Guido Draheim [Sun, 16 Sep 2018 12:36:12 +0000 (14:36 +0200)]
set project(VERSION) and reference PROJECT_VERSION after that
Guido Draheim [Sun, 16 Sep 2018 12:18:39 +0000 (14:18 +0200)]
generated and install pkgconfig files
Guido Draheim [Sat, 15 Sep 2018 19:13:29 +0000 (21:13 +0200)]
create symlinks to librelease which cmake does not do itself
Guido Draheim [Sat, 15 Sep 2018 18:27:26 +0000 (20:27 +0200)]
use RELEASE_POSTFIX to add the RELNUM to libraries
Guido Draheim [Sat, 15 Sep 2018 14:51:46 +0000 (16:51 +0200)]
add largefile support detection
Guido Draheim [Sat, 15 Sep 2018 12:55:13 +0000 (14:55 +0200)]
generate and install ZZIPCOMPAT headers
Guido Draheim [Sat, 15 Sep 2018 12:19:01 +0000 (14:19 +0200)]
- cleanup
Guido Draheim [Sat, 15 Sep 2018 12:14:27 +0000 (14:14 +0200)]
actually do install libzzipwrap, and move options to topdir
Guido Draheim [Sat, 15 Sep 2018 12:10:44 +0000 (14:10 +0200)]
add missing /usr/include/zzip headers to cmake install()
Guido Draheim [Sat, 15 Sep 2018 11:44:04 +0000 (13:44 +0200)]
if not relnum
Guido Draheim [Sat, 15 Sep 2018 11:41:42 +0000 (13:41 +0200)]
more .gitignore
Guido Draheim [Sat, 15 Sep 2018 11:39:54 +0000 (13:39 +0200)]
move build of libzzip from topdir into zzip/
Guido Draheim [Sat, 15 Sep 2018 01:51:16 +0000 (03:51 +0200)]
evaulate checks
Guido Draheim [Sat, 15 Sep 2018 01:42:22 +0000 (03:42 +0200)]
and add 'make checks'
Guido Draheim [Sat, 15 Sep 2018 00:57:43 +0000 (02:57 +0200)]
migrate rules for xmlto pdf and make site
Guido Draheim [Fri, 14 Sep 2018 23:20:51 +0000 (01:20 +0200)]
PythonInterp and UnixCommands for portability
Guido Draheim [Fri, 14 Sep 2018 22:21:48 +0000 (00:21 +0200)]
make htmpages
Guido Draheim [Fri, 14 Sep 2018 21:18:47 +0000 (23:18 +0200)]
add docs/CMakeLists.txt to generate manpages.tar and to install man/man3 pages
Guido Draheim [Fri, 14 Sep 2018 17:37:31 +0000 (19:37 +0200)]
add test/CMakeLists.txt including special 'make sfx' command
Guido Draheim [Fri, 14 Sep 2018 16:32:07 +0000 (18:32 +0200)]
make subdir libs&bins to depend on toplevel libzzip via cmake targets
Guido Draheim [Fri, 14 Sep 2018 16:21:24 +0000 (18:21 +0200)]
refere to gnu bindir
Guido Draheim [Fri, 14 Sep 2018 15:56:24 +0000 (17:56 +0200)]
add base makefile targets
Guido Draheim [Fri, 14 Sep 2018 15:25:01 +0000 (17:25 +0200)]
add bins/CMakeLists.txt and adjust libzzip imports
Guido Draheim [Fri, 14 Sep 2018 13:48:35 +0000 (15:48 +0200)]
add SDL/CMakeLists.txt and make ZZIPWRAP / ZZIPSDL options
Guido Draheim [Fri, 14 Sep 2018 13:09:49 +0000 (15:09 +0200)]
adding zzipwrap/CMakeLists.txt
Guido Draheim [Fri, 14 Sep 2018 11:26:28 +0000 (13:26 +0200)]
make ZZIPMMAPPED and ZZIPFSEEKO optional builds
Guido Draheim [Fri, 14 Sep 2018 03:37:18 +0000 (05:37 +0200)]
correcting to detect the source *.so.x lib
Guido Draheim [Fri, 14 Sep 2018 03:33:59 +0000 (05:33 +0200)]
adapt libversion detection
Guido Draheim [Fri, 14 Sep 2018 03:32:42 +0000 (05:32 +0200)]
align naming to automake release_info / version_info tags as RELNUM/VERNUM
Guido Draheim [Fri, 14 Sep 2018 00:57:49 +0000 (02:57 +0200)]
make static
Guido Draheim [Thu, 13 Sep 2018 23:54:10 +0000 (01:54 +0200)]
make it
Guido Draheim [Thu, 13 Sep 2018 23:49:05 +0000 (01:49 +0200)]
breaking down VERSION to APIVERSION+RELVERSION, and make symlinks for the old releases as it was for automake's libtool
Guido Draheim [Thu, 13 Sep 2018 18:13:36 +0000 (20:13 +0200)]
install zzipfseeko and libzzipmmapped as well
Guido Draheim [Thu, 13 Sep 2018 18:10:16 +0000 (20:10 +0200)]
use GNUInstallDirs to install to /lib64 by default
Guido Draheim [Thu, 13 Sep 2018 17:28:01 +0000 (19:28 +0200)]
start Makefile for other build targets
Guido Draheim [Thu, 13 Sep 2018 17:25:50 +0000 (19:25 +0200)]
we can default to building sharedlibs in cmake
Guido Draheim [Thu, 13 Sep 2018 17:08:53 +0000 (19:08 +0200)]
an explict '-Wdeclaration-after-statement' defeats the ifdef-c99 detection adding the '___' blocks
Guido Draheim [Thu, 13 Sep 2018 17:07:07 +0000 (19:07 +0200)]
include zzip/zzip32.h to avoid some missing-declaration warnings
Guido Draheim [Thu, 13 Sep 2018 17:06:35 +0000 (19:06 +0200)]
cmake - use target_include_directories
Guido U. Draheim [Thu, 13 Sep 2018 16:28:17 +0000 (18:28 +0200)]
Merge pull request #55 from paroj/master
add basic CMake based build .... but first on /develop to have it extended.
Guido U. Draheim [Thu, 13 Sep 2018 09:49:21 +0000 (11:49 +0200)]
Merge pull request #57 from tgurr/pkg-config
do not hardcode the pkg-config command
Guido U. Draheim [Fri, 7 Sep 2018 12:10:55 +0000 (14:10 +0200)]
Merge pull request #60 from jmoellers/master
One more free() to avoid memory leak.
jmoellers [Fri, 7 Sep 2018 11:55:35 +0000 (13:55 +0200)]
One more free() to avoid memory leak.
Guido U. Draheim [Fri, 7 Sep 2018 10:04:15 +0000 (12:04 +0200)]
Merge pull request #59 from jmoellers/master
Avoid memory leak from __zzip_parse_root_directory().
jmoellers [Fri, 7 Sep 2018 09:49:28 +0000 (11:49 +0200)]
Avoid memory leak from __zzip_parse_root_directory().
jmoellers [Fri, 7 Sep 2018 09:32:04 +0000 (11:32 +0200)]
Avoid memory leak from __zzip_parse_root_directory().
Timo Gurr [Fri, 17 Aug 2018 10:54:15 +0000 (12:54 +0200)]
do not hardcode the pkg-config command
Pavel Rojtberg [Sat, 21 Jul 2018 13:48:23 +0000 (15:48 +0200)]
add basic CMake based build
Guido U. Draheim [Sat, 5 May 2018 09:38:16 +0000 (11:38 +0200)]
Merge pull request #51 from keneanung/FixZzipStrndup
Fix _zzip_strndup if strndup is not available
keneanung [Thu, 26 Apr 2018 08:42:14 +0000 (10:42 +0200)]
Fix _zzip_strndup strndup is not available
Guido U. Draheim [Mon, 26 Mar 2018 10:44:28 +0000 (12:44 +0200)]
Merge pull request #49 from jmoellers/master
zzip_mem_entry_new(): if compressed size is too big, bail out.
Josef Möllers [Mon, 26 Mar 2018 10:27:34 +0000 (12:27 +0200)]
zzip_mem_entry_new(): if compressed size is too big, bail out.
Guido Draheim [Sun, 25 Mar 2018 23:36:15 +0000 (01:36 +0200)]
print mails correctly in dbk2htm now
Guido Draheim [Sun, 25 Mar 2018 23:35:36 +0000 (01:35 +0200)]
print mails correctly in dbk2htm