freebsd-skq/sys/ddb
archie 982e80577d Examine all occurrences of sprintf(), strcat(), and str[n]cpy()
for possible buffer overflow problems. Replaced most sprintf()'s
with snprintf(); for others cases, added terminating NUL bytes where
appropriate, replaced constants like "16" with sizeof(), etc.

These changes include several bug fixes, but most changes are for
maintainability's sake. Any instance where it wasn't "immediately
obvious" that a buffer overflow could not occur was made safer.

Reviewed by:	Bruce Evans <bde@zeta.org.au>
Reviewed by:	Matthew Dillon <dillon@apollo.backplane.com>
Reviewed by:	Mike Spengler <mks@networkcs.com>
1998-12-04 22:54:57 +00:00
..
db_access.c
db_access.h
db_aout.c We don't compile this on an elf kernel (and explicitly not on alpha in 1998-10-09 23:29:44 +00:00
db_break.c Fixed db_printf format errors. 1998-07-08 06:43:57 +00:00
db_break.h Fixed missing ifdefs and disordering in previous commit. 1998-06-08 02:12:19 +00:00
db_command.c Use not-so-new printf formats %r and/or %z instead of %n and/or %+x. 1998-07-08 10:53:58 +00:00
db_command.h
db_elf.c At the moment, the alpha tentatively uses the ddb elf code rather than KLD, 1998-10-09 23:32:03 +00:00
db_examine.c Use not-so-new printf formats %r and/or %z instead of %n and/or %+x. 1998-07-08 10:53:58 +00:00
db_expr.c
db_input.c
db_kld.c Forgot to commit this; the alpha uses the kld symbol interface now. The 1998-10-15 02:01:50 +00:00
db_lex.c Fixed bogus type of valuep in struct db_variable. It was `int *' and 1998-07-08 09:11:43 +00:00
db_lex.h Fixed bogus type of valuep in struct db_variable. It was `int *' and 1998-07-08 09:11:43 +00:00
db_output.c Fixed bogus type of valuep in struct db_variable. It was `int *' and 1998-07-08 09:11:43 +00:00
db_output.h
db_print.c Use not-so-new printf formats %r and/or %z instead of %n and/or %+x. 1998-07-08 10:53:58 +00:00
db_ps.c Fixed db_printf format errors. 1998-07-08 06:43:57 +00:00
db_run.c Remove the two single step breakpoints in the reverse order of setting to 1998-07-05 10:12:18 +00:00
db_sym.c Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
db_sym.h Supply the symbol table as an argument to X_db_symbol_values (required for elf). 1998-06-28 00:55:02 +00:00
db_trap.c
db_variables.c Fixed bogus type of valuep in struct db_variable. It was `int *' and 1998-07-08 09:11:43 +00:00
db_variables.h Fixed bogus type of valuep in struct db_variable. It was `int *' and 1998-07-08 09:11:43 +00:00
db_watch.c Fixed db_printf format errors. 1998-07-08 06:43:57 +00:00
db_watch.h
db_write_cmd.c Use not-so-new printf formats %r and/or %z instead of %n and/or %+x. 1998-07-08 10:53:58 +00:00
ddb.h Added macros __printflike() and __scanflike() to <sys/cdefs.h>. 1998-07-13 06:45:23 +00:00