Date: Thu, 02 Sep 2021 21:30:01 +0000 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: jo@bruelltuete.com, Johannes Totz via freebsd-hackers <freebsd-hackers@FreeBSD.org> Subject: Re: String functions considered unsafe in kernel Message-ID: <202109022130.182LU19L072509@critter.freebsd.dk> In-Reply-To: <2b59c3ae-8330-facd-def9-c0640c56cf3a@bruelltuete.com> References: <2b59c3ae-8330-facd-def9-c0640c56cf3a@bruelltuete.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-------- Johannes Totz via freebsd-hackers writes: > there are a few string (copy, formatting) functions I would consider > unsafe when used in kernel, in particular when used with untrusted input > coming from user space. This is precisely why des@ and I designed at created <sys/sbuf.h>. Use it. -- 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109022130.182LU19L072509>