From ec0362631d3cf7e4175bf8c8962fa0cc5952c52a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 25 Jun 2023 20:42:59 +0200 Subject: [PATCH] strncat: Update doc regarding Solaris 11.4. * doc/posix-functions/strncat.texi: Mention that the bug still exists on Solaris 11.4. * m4/strncat.m4 (gl_FUNC_STRNCAT): Update comments. --- ChangeLog | 7 +++++++ doc/posix-functions/strncat.texi | 2 +- m4/strncat.m4 | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 55d348d3c3..7f4367b0b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2023-06-25 Bruno Haible + + strncat: Update doc regarding Solaris 11.4. + * doc/posix-functions/strncat.texi: Mention that the bug still exists on + Solaris 11.4. + * m4/strncat.m4 (gl_FUNC_STRNCAT): Update comments. + 2023-06-25 Bruno Haible thread: Avoid compiler warnings on Solaris. diff --git a/doc/posix-functions/strncat.texi b/doc/posix-functions/strncat.texi index 365c37ee65..4926f28c9d 100644 --- a/doc/posix-functions/strncat.texi +++ b/doc/posix-functions/strncat.texi @@ -10,7 +10,7 @@ Portability problems fixed by Gnulib: @itemize @item This function dereferences too much memory on some platforms: -Solaris 10 on SPARC, Solaris 11.0 on x86. +Solaris 11.4 on SPARC, Solaris 11.0 on x86. @item This function cannot be called from plain inline or extern inline functions on some platforms: diff --git a/m4/strncat.m4 b/m4/strncat.m4 index d8101457f8..1cef7aade0 100644 --- a/m4/strncat.m4 +++ b/m4/strncat.m4 @@ -1,4 +1,4 @@ -# strncat.m4 serial 6 +# strncat.m4 serial 7 dnl Copyright (C) 2002-2004, 2009-2023 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -15,7 +15,7 @@ AC_DEFUN_ONCE([gl_FUNC_STRNCAT], AC_CHECK_HEADERS_ONCE([sys/mman.h]) AC_CHECK_FUNCS_ONCE([mprotect]) - dnl Detect bug in Solaris 8..10 on SPARC and Solaris 11.0 on x86: + dnl Detect bug in Solaris 8..11.4 on SPARC and Solaris 11.0 on x86: dnl strncat should not dereference more than n bytes, but always dereferences dnl n+1 bytes if the first n bytes don't contain a NUL byte. dnl Assume that strncat works on platforms that lack mprotect. -- 2.39.5