Re: Outdated scare text in snprintf man page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rich,

On 06/29/2014 05:45 AM, Rich Felker wrote:
> 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.

Thanks reporting this.

Yes, I agree. I removed this text, and indeed all of the other libc4 
and lib5 pieces in the page. Linux libc is ancient history, and those
pieces of text are more clutter than help.

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux