Date: Wed, 13 Dec 2000 09:51:32 +0100 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Terry Lambert <tlambert@primenet.com> Cc: kris@citusc.usc.edu, des@ofug.org (Dag-Erling Smorgrav), arch@FreeBSD.ORG Subject: Re: Safe string formatting in the kernel Message-ID: <79446.976697492@critter> In-Reply-To: Your message of "Wed, 13 Dec 2000 08:25:37 GMT." <200012130825.BAA26231@usr08.primenet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <200012130825.BAA26231@usr08.primenet.com>, Terry Lambert writes: >I've been a fan of this approach, ever since I fixed a memory >leak in the failure path (submitted via Matt Day in 1997). It >is much more robust; I've been troubled by the mount option >cruft in BSD, and the more string stuff goes into the kernel, >the less happy I become with it. I don't necessarily see that as a bad thing :-) The main trouble is bad syscall API design: All strings should be passed by pointer+length, rather than asciiz sematics. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?79446.976697492>