Commit Graph

9 Commits

Author SHA1 Message Date
simonb c878fedaf6 Pull in decompression error checking from bzip2-1.0.0. Fixes PR bin/8237.
bzip2-1.0.0 is a complete API change and will no be integrated just now...
2000-06-13 14:12:28 +00:00
fvdl 7941fc97fb Revert changes made in version 1.6. They introduced a heuristic for
detecting corruption, which may have prevented coredumps for
real corruption cases, but in practice caused false positives.
1999-11-02 21:16:55 +00:00
simonb a4b6230f87 Use single underscore instead of double underscore for namespace
protection, as per dicussion with Klaus Klein last week.
1999-08-30 05:12:58 +00:00
simonb 5ed3048893 How lame is this - a decompression library SHOULD NOT use a SIGSEGV
or SIGBUS to indicate corruption in the compressed file!

Do some error checking on the array indices in the MTF macro to
return "data error" if we get outrageous values.  Some of these
values are by observation, and have been tested on all bz2 files
in the distfiles directory and a range of bz2 files up to 44MB
in size.

Should fix problem reported in PR bin/8237 by NAKAJIMA Yoshihiro.
1999-08-20 06:13:00 +00:00
simonb 5907998e39 Prefix all private functions and variables with "__BZ" so as not to
pollute namespace.
1999-08-20 02:21:48 +00:00
simonb 10b4ca41b4 Revert white space changes for imported sources. 1999-07-03 12:30:16 +00:00
simonb 6bf3aa19f9 More trailing white space. 1999-07-02 15:46:05 +00:00
ross ec61451f99 Adding NetBSD rcs id keywords. 1998-09-14 03:08:17 +00:00
ross 6610fc2af7 Initial import of bzip2-0.9.0b from Julian Seward. 1998-09-14 03:01:19 +00:00