From owner-freebsd-current Tue Nov 24 13:35:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA09714 for freebsd-current-outgoing; Tue, 24 Nov 1998 13:35:16 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA09709 for ; Tue, 24 Nov 1998 13:35:14 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id NAA15703; Tue, 24 Nov 1998 13:30:45 -0800 (PST) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpdw15696; Tue Nov 24 21:30:38 1998 Date: Tue, 24 Nov 1998 13:30:09 -0800 (PST) From: Julian Elischer To: Archie Cobbs cc: Matthew Dillon , bde@zeta.org.au, freebsd-current@FreeBSD.ORG, grog@lemis.com, rnordier@nordier.com Subject: Re: snprintf() in the kernel In-Reply-To: <199811242106.NAA05958@bubba.whistle.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 24 Nov 1998, Archie Cobbs wrote: > > > Personally, I think we need to move to length-limited copies for all > > string operations. The code may be correct as is, and it may seem obvious > > to the people who wrote it, but FreeBSD is a collective effort and the > > more mistakes we can prevent in the future without compromising code > > effectiveness the better. > code that doesn't obviously do what it does should be either heavily commented or considered a bug.. It will eventually trick someone.. julian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message