bug-gnu-libiconv
[Top][All Lists]
Advanced

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

Re: [bug-gnu-libiconv] Cannot assume that "gets" is declared


From: Bruno Haible
Subject: Re: [bug-gnu-libiconv] Cannot assume that "gets" is declared
Date: Sat, 01 Oct 2016 17:28:29 +0200
User-agent: KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; )

Erik Schnetter wrote on 2016-08-08:
> The file “stdio.in.h” of libiconv contains these lines:
> 
> /* It is very rare that the developer ever has full control of stdin,
>    so any use of gets warrants an unconditional warning.  Assume it is
>    always declared, since it is required by C89.  */
> _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
> 
> This is wrong. “gets” is not part of C11 any more, and hence is not declared
> on some systems

Thanks for the report. This has been fixed in gnulib, meanwhile:
http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00186.html

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]