svn commit: r557337 - head/security/openssh-portable

Piotr Kubaj pkubaj at FreeBSD.org
Wed Dec 9 02:46:43 UTC 2020


Author: pkubaj
Date: Wed Dec  9 02:46:43 2020
New Revision: 557337
URL: https://svnweb.freebsd.org/changeset/ports/557337

Log:
  security/openssh-portable at gssapi: fix build on GCC architectures
  
  gss-genr.c: In function 'ssh_gssapi_kex_mechs':
  gss-genr.c:175:9: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=]
    175 |    cp = strncpy(s, kex, strlen(kex));
        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cc1: all warnings being treated as errors

Modified:
  head/security/openssh-portable/Makefile

Modified: head/security/openssh-portable/Makefile
==============================================================================
--- head/security/openssh-portable/Makefile	Wed Dec  9 02:45:51 2020	(r557336)
+++ head/security/openssh-portable/Makefile	Wed Dec  9 02:46:43 2020	(r557337)
@@ -188,7 +188,7 @@ RC_SCRIPT_NAME=		openssh
 VERSION_ADDENDUM_DEFAULT?=	${OPSYS}-${PKGNAME}
 
 CFLAGS+=	${CFLAGS_${CHOSEN_COMPILER_TYPE}}
-CFLAGS_gcc=	-Wno-stringop-truncation
+CFLAGS_gcc=	-Wno-stringop-truncation -Wno-stringop-overflow
 
 post-patch:
 	@${REINPLACE_CMD} \


More information about the svn-ports-head mailing list