Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Oct 2019 17:52:08 -0300
From:      =?UTF-8?Q?S=c3=a9rgio_Siegrist?= <barulheira@gmail.com>
To:        freebsd-virtualization@freebsd.org
Subject:   sysutils/grub2-bhyve: CURRENT build breaks on "gets" security hole
Message-ID:  <b5dee193-1b45-0438-2d84-1e9ecb7297c5@gmail.com>

next in thread | raw e-mail | index | archive | help
Log from Trident build (13-CURRENT):


grub2-bhyve fails to compile with this error:
gcc8 -DHAVE_CONFIG_H -I. -I../.. -I../../intl -MT argp-eexst.o -MD -MP 
-MF .deps/argp-eexst.Tpo -c -o argp-eexst.o argp-eexst.c
In file included from argp.h:22,
from argp-eexst.c:25:
./stdio.h:456:1: error: 'gets' undeclared here (not in a function); did 
you mean 'getw'?
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^~~~~~~~~~~~~~~
gmake[5]: *** [Makefile:1030: argp-eexst.o] Error 1


I suppose replacing 'gets' with 'fgets' should fix it.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b5dee193-1b45-0438-2d84-1e9ecb7297c5>