Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Oct 2021 06:20:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 206176] Non-null-terminated arrays in descriptions of strn* and wcsn* functions
Message-ID:  <bug-206176-227-riZfxWdo0K@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-206176-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-206176-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206176

Felix Johnson <felix.the.red@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #228303|                            |maintainer-approval?(felix.
              Flags|                            |the.red@gmail.com)

--- Comment #1 from Felix Johnson <felix.the.red@gmail.com> ---
Created attachment 228303
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D228303&action=
=3Dedit
Patch for strcasecmp(3), strcat(3), strcmp(3), strcpy(3), strdup(3)

Update documentation for strcasecmp(3), strcat(3), strcmp(3), strcpy(3), and
strdup(3) for length-limited operations (strncasecmp, strncat, strncmp, etc=
.):
- Mention that characters after a null character are not compared or copied
- Mention that inputs may or may not be null-terminated
- Refer to inputs as arrays instead of strings as appropriate
- Update standards references to C11 where appropriate

Note: There is no mdoc standards macro for C17 as of this posting, or I wou=
ld
have used it.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206176-227-riZfxWdo0K>