NetBSD/lib/libedit
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
..
TEST Rename TEST/test.c to avoid problems when doing a cleandir on case-insensitive 2006-08-31 20:20:38 +00:00
readline Add rl_completion_matches, fix remove_history 2007-05-27 19:45:37 +00:00
Makefile Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
chared.c The previous commit removed too much and forgot to reset the history event 2005-08-08 01:41:30 +00:00
chared.h Print the actual eofc, instead of ^D\b\b. 2006-03-06 21:11:56 +00:00
common.c Print the actual eofc, instead of ^D\b\b. 2006-03-06 21:11:56 +00:00
config.h
editline.3 PR/35411: Matthew Wala: inconsistency in editline(3): rename "num" to the 2007-01-12 16:31:13 +00:00
editrc.5 Change to a 3 clause copyright after permission of the holders. 2006-08-21 12:45:30 +00:00
el.c add EL_GETFP, and EL_SETFP. 2006-12-15 22:13:33 +00:00
el.h add EL_GETFP, and EL_SETFP. 2006-12-15 22:13:33 +00:00
emacs.c Print the actual eofc, instead of ^D\b\b. 2006-03-06 21:11:56 +00:00
filecomplete.c don't use alloca with ssp. 2006-11-09 16:58:38 +00:00
filecomplete.h Change to a 3 clause copyright after permission of the holders. 2006-08-21 12:45:30 +00:00
hist.c Fixes from Otto Moerbeek otto at drijf dot net 2003-11-01 23:36:39 +00:00
hist.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
histedit.h add EL_GETFP, and EL_SETFP. 2006-12-15 22:13:33 +00:00
history.c Fix memory leak found by valgrind (Julien Torres) 2006-09-28 13:52:51 +00:00
key.c move declaration to header file. 2006-03-23 20:22:51 +00:00
key.h move declaration to header file. 2006-03-23 20:22:51 +00:00
makelist change tr '[a-z]' '[A-Z]' to tr '[:lower:]' '[:upper:]' so that POSIX systems 2005-10-22 16:45:03 +00:00
map.c fix debugging printf format. 2006-04-09 01:36:51 +00:00
map.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
parse.c Update for recent parse__escape() prototype change 2005-05-29 04:58:15 +00:00
parse.h Update for recent parse__escape() prototype change 2005-05-29 04:58:15 +00:00
prompt.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
prompt.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
read.c Fix bug with multiple pending el_pushes. Reported by Julien Torres. 2007-03-01 21:41:45 +00:00
read.h Change to a 3 clause copyright after permission of the holders. 2006-08-21 12:45:30 +00:00
readline.c Add rl_completion_matches, fix remove_history 2007-05-27 19:45:37 +00:00
refresh.c Refresh bug reported by Julien Torres: 2005-11-09 22:11:10 +00:00
refresh.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
search.c Make EM_DELETE_PREV_CHAR behave like ED_DELETE_PREV_CHAR in incremental 2004-11-04 01:16:03 +00:00
search.h make forward incremental search work better. 2003-10-18 23:27:36 +00:00
shlib_version - Add more readline functions, enough for gdb-6.5 2006-11-24 00:01:17 +00:00
sig.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
sig.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
sys.h portability fixes. 2004-01-17 17:57:40 +00:00
term.c - Add more readline functions, enough for gdb-6.5 2006-11-24 00:01:17 +00:00
term.h - Add more readline functions, enough for gdb-6.5 2006-11-24 00:01:17 +00:00
tokenizer.c Tokenization function enhancements: 2003-12-05 13:37:48 +00:00
tty.c Coverity CID 597: remove dead code. 2006-03-18 09:09:41 +00:00
tty.h Don't use non-standard uint or u_int. 2005-06-01 11:37:52 +00:00
vi.c __weakref__ attribute can not be applied to anything when inside function 2006-10-22 07:48:13 +00:00