Date: Sun, 9 Jun 1996 05:25:05 -0400 From: Gene Stark <gene@starkhome.cs.sunysb.edu> To: ac199@freenet.hamilton.on.ca Cc: freebsd-bugs@freefall.freebsd.org Subject: docs/1303: printf(3) manpage lies patently Message-ID: <199606090925.FAA10047@starkhome.cs.sunysb.edu> In-Reply-To: Tim Vanderhoek's message of Sat, 8 Jun 1996 20:52:03 -0400 (EDT) References: <4pdnb5$8aq@starkhome.cs.sunysb.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
>"Because sprintf() and vsprintf() assume an infinitely long string, >callers must be careful not to overflow the actual space; this is often >impossible to assure." > > The last statement in the quote is a patent lie, as the >following code will readily demonstrate. It is never impossible >to assure that sprintf() and vsprintf() do not overflow the actual >space available to them. Your code is very clever and all, but you run the risk of deadlock when a process sends data to itself over a pipe. - Gene Stark
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606090925.FAA10047>