Commit Graph

49 Commits

Author SHA1 Message Date
Marty E. Plummer
9e8d164446 bzip2: fix mingw compilation
https://bugs.gentoo.org/393573

Signed-off-by: Marty E. Plummer <hanetzer@protonmail.com>
2019-06-07 12:35:05 -07:00
Dylan Baker
bd548eebae meson: fix name of library 2019-06-07 12:35:05 -07:00
Federico Mena Quintero
22b6c782f4 Merge branch 'dcbaker/bzip2-mesonify' 2019-06-07 10:40:08 -05:00
Erich Cordoba
fd4c8ac7a8 Merge branch 'alatiera/ci-2' into 'master'
CI: Minor extra tweaks

See merge request federicomenaquintero/bzip2!11
2019-06-06 23:16:16 +00:00
Dylan Baker
0769a76273 .gitlab-ci: Add meson build jobs 2019-06-06 14:18:47 -07:00
Dylan Baker
0a464db0fd move documentation into a docs/ folder 2019-06-06 14:18:47 -07:00
Dylan Baker
b4d062ec93 Move man files into a man/ directory 2019-06-06 14:18:47 -07:00
Dylan Baker
f6f3326c69 Move tests into a tests/ directory
I've updated autotools, meson, and the makefile.msc, though I haven't
verified tat the nmake file works.
2019-06-06 14:18:47 -07:00
Dylan Baker
736902410a add meson build system 2019-06-06 11:10:32 -07:00
Dylan Baker
9780d98afb gitignore: Add autotools generated files 2019-06-06 11:10:32 -07:00
Jordan Petridis
3e3d6f0fe4
CI: use gitlab's 'extends' instead of yaml anchors
'extneds' keyword is more flexible and
better suited for creating job templates
like we do.

Introduced fairly recently.
https://docs.gitlab.com/ee/ci/yaml/#extends
2019-06-06 19:20:05 +03:00
Jordan Petridis
073120fd63
CI: use upstream fedora images
Use the upstream fedora registry instead
of dockerhub.
2019-06-06 19:20:05 +03:00
Dylan Baker
6b00476951 bzip2.c: mingw wants sys/stat.h, not sys\stat.h
MSVC (at least recent versions) doesn't seem to care about / vs \
either.
2019-06-06 08:48:47 -07:00
Federico Mena Quintero
47e52d990e Merge branch 'enable-ci' into 'master'
Add initial CI

See merge request federicomenaquintero/bzip2!2
2019-06-06 13:35:29 +00:00
Erich Cordoba
6950019e95 Add initial CI
This initial CI uses debian, ubuntu, fedora and opensuse docker images
to build bzip2.
2019-06-05 23:16:06 -05:00
Wenzong Fan
a7700e70df (#10): fix bunzip2 -qt returns 0 for corrupt archives
"bzip2 -t FILE" returns 2 if FILE exists, but is not a valid bzip2 file.
"bzip2 -qt FILE" returns 0 when this happens, although it does print out
an error message as is does so.

This has been fix by Debian, just port changes from Debian patch file
"20-legacy.patch".

Debian defect:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=279025

Fix item from changelog:
http://archive.debian.net/changelogs/pool/main/b/bzip2/bzip2_1.0.2-7/changelog

Fixes https://gitlab.com/federicomenaquintero/bzip2/issues/10

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
2019-06-05 19:52:28 -05:00
Federico Mena Quintero
f516a7d2fb Update README.autotools 2019-06-05 18:59:32 -05:00
Federico Mena Quintero
5a018ceab4 Remove pre-autotools Makefile-libbz2_so and README.COMPILATION.PROBLEMS 2019-06-05 18:59:32 -05:00
Federico Mena Quintero
ed1be115f9 Removed hardcoded "1.0.6" in manual.xml
Use the entity instead.
2019-06-05 18:55:59 -05:00
Federico Mena Quintero
8eba8137aa Bump version to 1.0.7 2019-06-05 18:55:59 -05:00
Federico Mena Quintero
fdab0f5426 Move the "make test" bits to be part of the standard "make check" 2019-06-05 18:55:59 -05:00
Federico Mena Quintero
cebe990273 bzopen_or_bzdopen() - Open files with O_CLOEXEC with the "e" mode 2019-06-05 18:55:59 -05:00
Federico Mena Quintero
39fddb72e8 Change a magic number for a constant 2019-06-05 18:55:59 -05:00
Albert Astals Cid
74de1e2e6f Make sure nSelectors is not out of range
nSelectors is used in a loop from 0 to nSelectors to access selectorMtf
which is
	UChar    selectorMtf[BZ_MAX_SELECTORS];
so if nSelectors is bigger than BZ_MAX_SELECTORS it'll do an invalid memory
access

Fixes out of bounds access discovered while fuzzying karchive
2019-06-05 18:55:59 -05:00
Federico Mena Quintero
5381b4f2f8 Don't put CFLAG_VISIBILITY in AM_CFLAGS
Otherwise symbols meant to be extern are hidden
2019-06-05 18:55:59 -05:00
Federico Mena Quintero
b0267429ae Have a smarter autogen.sh 2019-06-05 18:55:59 -05:00
Federico Mena Quintero
586a67cc92 Add AUTHORS from the NEWS file 2019-06-05 18:55:59 -05:00
Federico Mena Quintero
2d2322f071 Delete Makefile; it's generated by autotools now 2019-06-05 18:55:59 -05:00
Federico Mena Quintero
8cfd87aed5 Make autogen.sh executable 2019-06-05 18:54:50 -05:00
Federico Mena Quintero
3cf4f6e9cd Rename CHANGES to NEWS 2019-06-05 18:54:50 -05:00
Federico Mena Quintero
1528a55a83 Rename LICENSE to COPYING 2019-06-05 18:54:50 -05:00
Federico Mena Quintero
a81ba197df List patches from openSUSE not included in this git repository 2019-06-05 18:54:50 -05:00
Federico Mena Quintero
25c3dfee12 CVE-2016-3189 - fix use-after-free in bzip2recover
Patch by Jakub Martisko <jamartis@redhat.com>
2019-06-05 18:54:50 -05:00
Federico Mena Quintero
1e8b0d1044 Fix bzgrep so it doesn't always return a 0 exit code
Bzgrep used to always returns 0 as an exit code when grepping multiple
archives; this fixes it.

Patch from Kristýna Streitová <kstreitova@suse.com>
2019-06-05 18:54:50 -05:00
Federico Mena Quintero
010e90ddee Fix unsafe strcpy in bzip2recover
Patch from Red Hat
2019-06-05 18:54:50 -05:00
Federico Mena Quintero
d25ff6fa78 Fix bashisms in bzgrep
Patch by Led <ledest@gmail.com>
2019-06-05 18:54:50 -05:00
Federico Mena Quintero
70ec984159 Add an autotools framework and pkg-config data
This is a patch from Stanislav Bravec <sbrabec@suse.cz> that adds an autotools
build environment to bzip2.  This lets libtool handle the construction of
the shared library.

The patch also adds a bzip2.pc.in template to build data for the pkg-config tool.
2019-06-05 18:54:50 -05:00
Mark Wielaard
032a25eee8 Change all bzip.org URLs to sourceware.org/bzip2 2019-03-30 22:56:16 +01:00
Mark Wielaard
5b923861db Change Julian's email address to jseward@acm.org 2019-03-30 22:56:16 +01:00
Julian Seward
962d60610c bzip2-1.0.6 2010-09-06 22:13:13 +02:00
Julian Seward
a1d78c5501 bzip2-1.0.5 2007-12-10 22:13:13 +01:00
Julian Seward
f10a33538e bzip2-1.0.4 2006-12-20 22:13:13 +01:00
Julian Seward
4d540bfc95 bzip2-1.0.3 2005-02-15 22:13:13 +01:00
Julian Seward
099d844292 bzip2-1.0.2 2001-12-30 22:13:13 +01:00
Julian Seward
795b859eee bzip2-1.0.1 2000-06-24 22:13:13 +02:00
Julian Seward
f93cd82a9a bzip2-0.9.5d 1999-09-04 22:13:13 +02:00
Julian Seward
977101ad5f bzip2-0.9.0c 1998-08-23 22:13:13 +02:00
Julian Seward
1eb67a9d8f bzip2-0.1pl2 1997-08-29 22:13:13 +02:00
Julian Seward
33d1340302 bzip2-0.1 1997-08-07 22:13:13 +02:00