summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Prepare for 1.0.7 release.bzip2-1.0.7Mark Wielaard2019-06-2727-37/+51
|
* Add prepare-release.sh script.Mark Wielaard2019-06-256-26/+86
| | | | | | | | | | | | | | | | | | | Script to run to prepare a new release. It will update the release number and tell you to update the CHANGES file and to double check everything looks before doing the release commit and tagging. Afterwards you probably want to run release-update.sh to upload the release and update the website at https://sourceware.org/bzip2/ There are embedded version strings and dates in a couple of places. To keep the script simple remove some that aren't absolutely necessary. README now just points to CHANGES. README.COMPILATION.PROBLEMS only mentions the version once at the top. bzip2.c only mentions the version once when doing --version. manual.xml now doesn't have any embedded versions, just uses &bz-version; everywhere.
* Change a magic number (6) for a constant (BZ_N_GROUPS).Federico Mena Quintero2019-06-241-1/+1
| | | | decompress.c (BZ2_decompress): Check nGroups against BZ_N_GROUPS.
* Make sure nSelectors is not out of rangeAlbert Astals Cid2019-06-241-1/+1
| | | | | | | | | | | | | | 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 This was reported as CVE-2019-12900 BZ2_decompress in decompress.c in bzip2 through 1.0.6 has an out-of-bounds write when there are many selectors.
* Fix undefined behavior in the macros SET_BH, CLEAR_BH, & ISSET_BHPaul Kehrer2019-06-241-3/+3
| | | | | | | | | | These macros contain this pattern: 1 << ((Int32_value) & 31 This causes the undefined behavior sanitizers in clang and gcc to complain because the shift, while ultimately stored to an unsigned variable, is done as a signed value. Adding a cast to unsigned for the int32 value resolves this issue.
* bzip2: Fix return value when combining --test,-t and -q.Mark Wielaard2019-06-241-6/+8
| | | | | | | | | | When passing -q to get quiet output --test would not display an error message, but would also suppress the exit 2 code to indicate the file was corrupt. Only suppress the error message with -q, not the exit value. This patch comes from Debian. "bunzip2 -qt returns 0 for corrupt archives" https://bugs.debian.org/279025
* bzip2recover: Fix use after free issue with outFile.Mark Wielaard2019-06-241-0/+1
| | | | | | | | | | bzip2recover.c (main): Make sure to set outFile to NULL when done. This was reported as CVE-2016-3189 and found in multiple distributions. https://seclists.org/oss-sec/2016/q2/568 Some more analysis can be found in: https://bugzilla.redhat.com/show_bug.cgi?id=1319648
* bzip2recover: Fix buffer overflow for large argv[0].Mark Wielaard2019-06-241-1/+2
| | | | | | | | bzip2recover.c (main) copies argv[0] to a statically sized buffer without checking whether argv[0] might be too big (> 2000 chars). This patch comes from Fedora and was originally reported at https://bugzilla.redhat.com/show_bug.cgi?id=226979
* bzip2.c (testStream): Remove set, but not used nread variable.Mark Wielaard2019-06-231-2/+2
| | | | | | | | | | | | | Modern GCC warns: bzip2.c: In function ‘testStream’: bzip2.c:557:37: warning: variable ‘nread’ set but not used [-Wunused-but-set-variable] Int32 bzerr, bzerr_dummy, ret, nread, streamNo, i; ^~~~~ GCC is correct. In testStream we don't care about the number of bytes read by BZ2_bzRead. So just remove the variable and the assignment.
* Add release-update.sh script.Mark Wielaard2019-06-231-0/+85
| | | | | | | | | Script to run after a release has been tagged, signed and pushed to git. Will do a fresh checkout, verify the git tag, do fresh build/dist, sign the dist with gpg, create a backup copy in HOME, upload the tar.gz and sig to sourceware, checkout bzip2-htdocs, copy over the new changes, manual, etc. and git push that to update https://sourceware.org/bzip2/
* Use UTF-8 encoding and include bzip.css as link for HTML manual.Mark Wielaard2019-06-231-4/+7
|
* Adjust bzip.css images to new https://sourceware.org/bzip2/ location.Mark Wielaard2019-06-231-2/+2
|
* Change all bzip.org URLs to sourceware.org/bzip2Mark Wielaard2019-03-305-6/+6
|
* Change Julian's email address to jseward@acm.orgMark Wielaard2019-03-3028-34/+34
|
* bzip2-1.0.6bzip2-1.0.6Julian Seward2010-09-0628-89/+122
|
* bzip2-1.0.5bzip2-1.0.5Julian Seward2007-12-1025-61/+77
|
* bzip2-1.0.4bzip2-1.0.4Julian Seward2006-12-2036-875/+593
|
* bzip2-1.0.3bzip2-1.0.3Julian Seward2005-02-1530-2636/+3947
|
* bzip2-1.0.2bzip2-1.0.2Julian Seward2001-12-3031-625/+1464
|
* bzip2-1.0.1bzip2-1.0.1Julian Seward2000-06-2427-915/+2160
|
* bzip2-0.9.5dbzip2-0.9.5dJulian Seward1999-09-0427-2152/+32912
|
* bzip2-0.9.0cbzip2-0.9.0cJulian Seward1998-08-2333-4104/+8332
|
* bzip2-0.1pl2bzip2-0.1pl2Julian Seward1997-08-299-95/+118
|
* bzip2-0.1bzip2-0.1Julian Seward1997-08-0722-0/+6550