NetBSD/games
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
..
adventure don't try to switch a char and have a case of EOF - use an int. 2006-05-18 18:42:59 +00:00
arithmetic Add (unsigned char) cast to ctype functions 2004-11-05 21:30:31 +00:00
atc s/exceded/exceeded/, from Zafer. 2006-11-24 21:14:55 +00:00
backgammon It's "its." 2006-04-24 18:00:53 +00:00
banner Bump date for previous. Use mdoc macros. 2006-12-23 09:47:30 +00:00
battlestar Use standard AUTHORS section header. From YOMURA Masanori in private mail 2005-09-15 02:09:41 +00:00
bcd sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
boggle PR# 4305: [dM] boggle uses very incomplete wordlist. 2006-09-24 01:38:57 +00:00
caesar Simplify error checking. 2005-11-19 18:01:42 +00:00
canfield Fix typo in the instructions. 2006-02-25 02:06:08 +00:00
ching Quote macro. 2005-07-05 08:48:47 +00:00
countmail Use standard AUTHORS section header. From YOMURA Masanori in private mail 2005-09-15 02:09:41 +00:00
cribbage remove duplicate #include <stdlib.h> 2006-03-20 12:32:21 +00:00
dab Add a virtual destructor to avoid "future ABI issues". I love c++. 2006-05-14 06:38:04 +00:00
dm read config more strictly, from Maximillian Dornseif 2006-05-25 07:11:54 +00:00
factor Fixed a comment that said the factors in the output would be strictly 2005-06-27 20:49:31 +00:00
fish KNF conversion 2005-07-02 08:35:29 +00:00
fortune NetBSD JIHBED 2007-02-26 06:49:00 +00:00
gomoku avoid a pointer sign difference. 2006-05-11 00:17:07 +00:00
hack Update my previous commit to better match the original code, including 2007-01-17 02:35:28 +00:00
hangman Add (unsigned char) cast to ctype functions 2004-11-05 21:30:31 +00:00
hunt PR/18906: roskens at elfin dot net: misc. select() to poll() updates. 2006-10-07 17:27:57 +00:00
larn Per PR 36185, OKed by martin@ 2007-04-22 02:09:02 +00:00
mille Coverity CID 695: Remove impossible condition. This changes the scoring as 2006-03-19 00:29:27 +00:00
monop Coverity CID 998: Possible NULL pointer deref. Actually this was a bug 2006-03-19 00:19:31 +00:00
morse Encode and decode more characters. Don't put commas after every 2004-02-13 23:16:11 +00:00
number Add (unsigned char) cast to ctype functions 2004-11-05 21:30:31 +00:00
phantasia Coverity CID 3508: Fix file leak. 2006-05-13 22:29:53 +00:00
pig Add (unsigned char) cast to ctype functions 2004-11-05 21:30:31 +00:00
pom - ANSIfy 2007-01-12 22:43:05 +00:00
ppt Remove uses of __P. 2004-01-27 20:30:28 +00:00
primes |fmt; add single quotes around a plus. 2004-02-09 23:25:47 +00:00
quiz Replve duplicate #includes 2007-01-17 00:30:23 +00:00
rain Use standard AUTHORS section header. From YOMURA Masanori in private mail 2005-09-15 02:09:41 +00:00
random Xref shuffle(1) from random(6), and vice versa 2007-03-20 16:12:40 +00:00
robots If getpwuid() returns null, its not usually a good idea to dereference 2006-03-17 23:11:47 +00:00
rogue XXX: GCC uninitialized 2006-05-14 03:15:50 +00:00
sail don't try to switch a char and have a case of EOF - use an int. 2006-05-18 18:42:59 +00:00
snake Replve duplicate #includes 2007-01-17 00:30:23 +00:00
tetris don't discard const. GCC 4.1-20061021 doesn't like that... 2006-10-22 08:09:24 +00:00
trek Coverity CID 1197: Don't pass -1 to close. 2006-03-19 01:00:35 +00:00
wargames Use standard AUTHORS section header. From YOMURA Masanori in private mail 2005-09-15 02:09:41 +00:00
worm Remove uses of __P. 2004-01-27 20:30:28 +00:00
worms Slimy worms are clean enough for level 3. 2004-11-13 10:22:13 +00:00
wtf - Don't call basename $0 at many places. Use variable $PROGNAME 2007-01-24 13:17:42 +00:00
wump Bump date for previous. 2006-01-22 21:22:30 +00:00
Makefile moduli utils moved from games to usr.bin. 2006-01-24 19:01:45 +00:00
Makefile.inc Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00