2
1

grub2-remove-gets.patch 878 B

123456789101112131415161718192021
  1. ISO C11 removes the specification of gets() from the C language, eglibc 2.16+ removed it
  2. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  3. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  4. Upstream-Status: Pending
  5. Index: grub-1.99/grub-core/gnulib/stdio.in.h
  6. ===================================================================
  7. --- grub-1.99.orig/grub-core/gnulib/stdio.in.h 2010-12-01 06:45:43.000000000 -0800
  8. +++ grub-1.99/grub-core/gnulib/stdio.in.h 2012-07-04 12:25:02.057099107 -0700
  9. @@ -140,8 +140,10 @@
  10. /* It is very rare that the developer ever has full control of stdin,
  11. so any use of gets warrants an unconditional warning. Assume it is
  12. always declared, since it is required by C89. */
  13. +#if defined gets
  14. #undef gets
  15. _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
  16. +#endif
  17. #if @GNULIB_FOPEN@
  18. # if @REPLACE_FOPEN@