svn commit: r351659 - in head: contrib/libc++/include contrib/netbsd-tests/lib/libc/ssp gnu/lib/libssp include lib/libc/stdio
Conrad Meyer
cem at freebsd.org
Sun Sep 1 21:12:15 UTC 2019
On Sun, Sep 1, 2019 at 9:12 AM Ed Maste <emaste at freebsd.org> wrote:
>
> Author: emaste
> Date: Sun Sep 1 16:12:05 2019
> New Revision: 351659
> URL: https://svnweb.freebsd.org/changeset/base/351659
>
> Log:
> libc: remove gets
>
> gets is unsafe and shouldn't be used (for many years now). Leave it in
> the existing symbol version so anything that previously linked aginst it
> still runs, but do not allow new software to link against it.
> ...
> Differential Revision: https://reviews.freebsd.org/D12298
Thanks, Ed!
I think I saw someone mention some incarnation of standard C++ removes
gets(), but to add context from the standard C side: it was present,
but obsolete and deprecated, in C99; and was removed in C11.
Best,
Conrad
More information about the svn-src-all
mailing list