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

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

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


From: Erik Schnetter
Subject: [bug-gnu-libiconv] Cannot assume that "gets" is declared
Date: Mon, 8 Aug 2016 13:32:46 -0400

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 when e.g. the gcc flag “-std=c11” is used. This breaks my build; I 
have to manually remove these lines.

-erik

—
Erik Schnetter <address@hidden> 
http://www.perimeterinstitute.ca/personal/eschnetter/

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


reply via email to

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