Date: Tue, 12 Dec 2000 04:50:22 -0800 From: Julian Elischer <julian@elischer.org> To: Poul-Henning Kamp <phk@critter.freebsd.dk> Cc: Matt Dillon <dillon@earth.backplane.com>, kris@citusc.usc.edu, Dag-Erling Smorgrav <des@ofug.org>, arch@FreeBSD.ORG Subject: Re: Safe string formatting in the kernel Message-ID: <3A361F0E.F015A262@elischer.org> References: <18190.976606205@critter>
next in thread | previous in thread | raw e-mail | index | archive | help
Poul-Henning Kamp wrote:
>
> In message <200012120259.eBC2xfb99004@earth.backplane.com>, Matt Dillon writes:
>
> > sprintf(), strcpy(), and strcat(). But why not just replace those
> > functions with an snprintf() equivalent? I don't think we really need
> > a dynamic string allocation mechanism in the kernel, there is virtually
> > nowhere where it would actually be of any use.
>
> There are several places where this new API would make the code
> simpler and less prone to overflowable errors. procfs and various
> netgraph nodes spring to mind immediately.
hmmm such as?
>
> --
> 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
--
__--_|\ Julian Elischer
/ \ julian@elischer.org
( OZ ) World tour 2000
---> X_.---._/ presently in: Budapest
v
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?3A361F0E.F015A262>
