All of lore.kernel.org
 help / color / mirror / Atom feed
* Outdated scare text in snprintf man page
@ 2014-06-29  3:45 Rich Felker
       [not found] ` <20140629034549.GX179-C3MtFaGISjmo6RMmaWD+6Sb1p8zYI1N1@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Rich Felker @ 2014-06-29  3:45 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages)
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

The following text appears under BUGS in the snprintf man page:

       Linux libc4.[45] does not have a snprintf(), but provides a
       libbsd that contains an snprintf() equivalent to sprintf(),
       that is, one that ignores the size argument. Thus, the use of
       snprintf() with early libc4 leads to serious security problems.

I've had people cite this as a reason to be wary of using snprintf,
apparently unaware of what libc4 means. IMO it should just be removed;
it's way too old to be relevant.

Rich
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-29  6:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-29  3:45 Outdated scare text in snprintf man page Rich Felker
     [not found] ` <20140629034549.GX179-C3MtFaGISjmo6RMmaWD+6Sb1p8zYI1N1@public.gmane.org>
2014-06-29  6:29   ` Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.