1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-30 12:04:07 +00:00
freebsd/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 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
interactive.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
main.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
Makefile sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:33:01 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
restore.8 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
restore.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
restore.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
symtab.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
tape.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
utilities.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00