printf behaviour with illegal or malformed format string
Poul-Henning Kamp
phk at phk.freebsd.dk
Mon Dec 12 08:19:03 PST 2005
In message <84dead720512120816t7c907c3aq9add32c5dc8b9a38 at mail.gmail.com>, Joseph Koshy writes:
>Why not just print the warning for both cases, and
>stop interpreting the format string any further.
>
>What do we gain by having a uid 0 process dump core?
I'm not very keen on producing wrong output from uid0 programs without
giving the programmer a way to handle the problem correctly.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at 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.
More information about the freebsd-arch
mailing list