Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Sep 2019 14:12:02 -0700
From:      Conrad Meyer <cem@freebsd.org>
To:        Ed Maste <emaste@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>,  svn-src-head <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r351659 - in head: contrib/libc++/include contrib/netbsd-tests/lib/libc/ssp gnu/lib/libssp include lib/libc/stdio
Message-ID:  <CAG6CVpXo0TAayC1FW=soYB=7vq6ecKp%2BCLpzp4QvkVuG8JT81g@mail.gmail.com>
In-Reply-To: <201909011612.x81GC5DW097846@repo.freebsd.org>
References:  <201909011612.x81GC5DW097846@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 1, 2019 at 9:12 AM Ed Maste <emaste@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG6CVpXo0TAayC1FW=soYB=7vq6ecKp%2BCLpzp4QvkVuG8JT81g>