HardenedBSD/sbin/restore
Conrad Meyer 63298eb19c restore(8): Prevent some heap overflows
The environment variable TMPDIR was copied unchecked into a fixed-size heap
buffer.  Use a length-limiting snprintf in place of ordinary sprintf to
prevent the overflow.  Long TMPDIR variables can still cause odd truncated
filenames, which may be undesirable.

Reported by:	Coverity (CWE-120)
CIDs:		1006706, 1006707
Sponsored by:	Dell EMC Isilon
2017-04-14 00:14:40 +00:00
..
dirs.c restore(8): Prevent some heap overflows 2017-04-14 00:14:40 +00:00
extern.h
interactive.c
main.c
Makefile
Makefile.depend
restore.8
restore.c
restore.h
symtab.c
tape.c
utilities.c