Date: Tue, 21 Nov 2000 11:58:56 -0800 (PST) From: Warner Losh <imp@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/config main.c mkheaders.c mkmakefile.c mkoptions.c Message-ID: <200011211958.LAA50502@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp 2000/11/21 11:58:56 PST Modified files: usr.sbin/config main.c mkheaders.c mkmakefile.c mkoptions.c Log: Fix buffer overflows in filenames. If you had a path > 80 characters for your /usr/obj/path/to/my/files path to the kernel, then weird things happened. make buildkernel would fail because config was dumping core or generating bad file names (depending on the lenght of the path). While I was here, also use strlcpy, strlcat and snprintf (or asprintf) as necessary. Minor format policing for the snprintf calls as well. Revision Changes Path 1.41 +10 -12 src/usr.sbin/config/main.c 1.17 +4 -4 src/usr.sbin/config/mkheaders.c 1.56 +10 -6 src/usr.sbin/config/mkmakefile.c 1.21 +11 -10 src/usr.sbin/config/mkoptions.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011211958.LAA50502>