From owner-cvs-all Tue Nov 21 11:58:59 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C131C37B4CF; Tue, 21 Nov 2000 11:58:56 -0800 (PST) Received: (from imp@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA50502; Tue, 21 Nov 2000 11:58:56 -0800 (PST) (envelope-from imp@FreeBSD.org) Message-Id: <200011211958.LAA50502@freefall.freebsd.org> From: Warner Losh Date: Tue, 21 Nov 2000 11:58:56 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/config main.c mkheaders.c mkmakefile.c mkoptions.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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