Commit Graph

28 Commits

Author SHA1 Message Date
gmcgarry
3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
tsutsui
51e440b3e3 Use -fno-loop-optimize rather than -O0 for gcc4-sh3-bz2 hack. 2008-05-16 13:13:00 +00:00
bjs
0b40e16c9a Change version suffix back to 1.1 at request of christos@@ so that
users know whether or not their library has the security
vulnerability.
2008-03-19 17:10:52 +00:00
christos
0738e9e28d no more texinfo files. 2008-03-18 14:48:39 +00:00
tls
4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
mrg
e795c5750a use -O0 for blocksort.o on sh3 & GCC4. 2006-05-21 03:34:57 +00:00
lukem
ebb6fc9eb8 Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc).
(Reduces make output by ~ 20%)
2002-08-19 09:41:27 +00:00
thorpej
45bf1f0dd9 Work around compiler problem on VAX by building with -O0 on that
platform.
2002-06-27 21:03:37 +00:00
mjl
6ff1da15a3 Munge 1.0.2 texinfo file a bit more 2002-03-15 01:50:40 +00:00
tv
001067bbd1 Readability cleanups; MKfoo=no -> NOfoo. 2001-12-12 00:51:00 +00:00
simonb
6a1c62c440 Update to bzip2 v1.0.1, building with reachover Makefiles to dist/bzip2.
Complete API change, library major bumped. *sigh*
2001-06-03 13:41:59 +00:00
wiz
1c35e133b0 Install html documentation for libbz2/bzip2.
Reviewed by Simon Burge.
2000-11-10 02:00:09 +00:00
wiz
3f39888ac6 Install (lib)bzip2 info file, as requested by NAKAJIMA Yoshihiro in PR 7402. 2000-11-08 02:15:13 +00:00
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
abs
edc1a24a56 Add a note to update src/distrib/sets/lists/base/shl.*, and add a missing
RCS Id.
1999-02-25 08:02:19 +00:00
lukem
dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
christos
ac193186ef char -> unsigned char 1998-11-06 22:49:30 +00:00
ross
ef23d408ed These are more trouble than they are worth. They belonged in regress anyway. 1998-09-30 07:50:11 +00:00
ross
43b9fa8f01 New files specific to the NetBSD libbz2. 1998-09-14 03:18:12 +00:00
ross
cede6f3c99 More rcs id keywords. 1998-09-14 03:13:53 +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