From nobody Fri Oct 1 06:20:39 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 240F017E1E8C for ; Fri, 1 Oct 2021 06:20:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HLKjg5Cj0z4Z2C for ; Fri, 1 Oct 2021 06:20:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 94CA61A534 for ; Fri, 1 Oct 2021 06:20:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1916Kd4g022358 for ; Fri, 1 Oct 2021 06:20:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1916Kd2q022357 for bugs@FreeBSD.org; Fri, 1 Oct 2021 06:20:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 206176] Non-null-terminated arrays in descriptions of strn* and wcsn* functions Date: Fri, 01 Oct 2021 06:20:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: easy, patch, standards X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: felix.the.red@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: flagtypes.name attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206176 Felix Johnson changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #228303| |maintainer-approval?(felix. Flags| |the.red@gmail.com) --- Comment #1 from Felix Johnson --- 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.=