Re: String functions considered unsafe in kernel
- In reply to: Johannes Totz via freebsd-hackers : "String functions considered unsafe in kernel"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Sep 2021 21:30:01 UTC
-------- 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.