Ticket #12005: stdio.patch

File stdio.patch, 1.2 KB (added by danitool <dgcbueu@…>, 4 years ago)
  • tools/m4/patches/stdio.in.patch

     
     1--- a/lib/stdio.in.h 
     2+++ b/lib/stdio.in.h 
     3@@ -143,7 +143,9 @@ 
     4    so any use of gets warrants an unconditional warning.  Assume it is 
     5    always declared, since it is required by C89.  */ 
     6 #undef gets 
     7+#if HAVE_RAW_DECL_GETS 
     8 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); 
     9+#endif 
     10  
     11 #if @GNULIB_FOPEN@ 
     12 # if @REPLACE_FOPEN@ 
  • tools/bison/patches/stdio.in.patch

     
     1--- a/lib/stdio.in.h 
     2+++ b/lib/stdio.in.h 
     3@@ -143,7 +143,9 @@ 
     4    so any use of gets warrants an unconditional warning.  Assume it is 
     5    always declared, since it is required by C89.  */ 
     6 #undef gets 
     7+#if HAVE_RAW_DECL_GETS 
     8 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); 
     9+#endif 
     10  
     11 #if @GNULIB_FOPEN@ 
     12 # if @REPLACE_FOPEN@