From nobody Fri Nov 11 18:36:40 2022 X-Original-To: dev-commits-src-branches@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 4N86qY167Sz4dbbV; Fri, 11 Nov 2022 18:36:41 +0000 (UTC) (envelope-from git@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 4N86qX65WMz3vJ7; Fri, 11 Nov 2022 18:36:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ekVFewqWx8eFZISPSIhtFRG7l3/R8M9Zm4bIG9vnwcg=; b=QcLvfaMQ3AUiOsieo+ajECgGMKE5OUUlbdDAt76tnvGPcSNym26q8RSyFcMh9HDR7XP2n9 pvy3yTfopK69zbclhqicwYrUHKma6mKMRtaxQTg8ZIvf3j2nUw3z6iqXoONhumRsX1at/c T2bxqYxrFXpFhhCOFp/Ng4BN26s6t7/8cZUrdyNfbGEr54FR8v8N5QdJAWgWacrCK7blla o+5113RZLNFTUllASlAswVtP84JUkHncqx9Xp5WBrnR4+bIgOfv3aprEy9dByuatdqoZSu afsT8yMXhkcbQnJU0RvCeOYb7bWhSwhNyl4OONUGRDnsbVPfzBIX1232z/vSpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ekVFewqWx8eFZISPSIhtFRG7l3/R8M9Zm4bIG9vnwcg=; b=nbZulbE2t6UQQvKlyZJNTybzYJxwu1VcjCU4TrhqYUqmhIrxdj717Apt2RkSXcpGNTZetJ 4GQChDtXVI6alnCiCMksaKCEPAv9dKt0EKsq28qO2luxK9H2JS5Duj49YSscOLDaFjEWgx wqw6FrJabAR0FACAw+acWU0xpdFgbJhW3PeSdoKJyHFVqDvoS9Mwp3ezEAov195vpJhUKA nb05VDEQ15q4oSUqmAP1heu0r6XrdR38XIxKZcq+n1LGhZEoWaI+zYZVpF4I6H1P/kZlNj R41qY1AJ+O4c+4LpFxZzqbY3lPOsWuMpeAX8lz05aVAZX9MmUhJxEV/y2Ts1Sg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668191800; a=rsa-sha256; cv=none; b=GTu9VahU0s/mvuJxtNqS0Q0TMHwpfOQxqM1rs5YJMvSdp3pbp3tSsS+2MDPDOcoxJuDtRQ scEb96PiSIK9iXzM1OI/2A0E6Mwgzo+wUDr5uvTzYoEDf9yQfD1WnP+MqPh6xbxnsOLxoA dO5Y8MTDkOK+mNoKZAbAXFAiriVVHUMa+GcDexCkR2suLBvOODSL6YWnnJCaYXqv5rpLI7 Y+yywxlxo9co+t5XFHD++xwil9hctLoEOXi7YzUBVGJWeMjrtyVT2HuChIJo2evLqfB8hU X4HGX/UdRIYFmjW77MIaa2BA2o2sIamzNKt1efkTVZja0d9p2uUX+LgLZy5Yhw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4N86qX51WJztJn; Fri, 11 Nov 2022 18:36:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2ABIae5j003905; Fri, 11 Nov 2022 18:36:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABIaeNJ003904; Fri, 11 Nov 2022 18:36:40 GMT (envelope-from git) Date: Fri, 11 Nov 2022 18:36:40 GMT Message-Id: <202211111836.2ABIaeNJ003904@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: efe264f2c2ef - stable/13 - newkey: Fix mismatch in array bounds in for adjust(). List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: efe264f2c2eff0c197138410b19c12d7b4961b22 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=efe264f2c2eff0c197138410b19c12d7b4961b22 commit efe264f2c2eff0c197138410b19c12d7b4961b22 Author: John Baldwin AuthorDate: 2022-09-28 21:06:16 +0000 Commit: John Baldwin CommitDate: 2022-11-11 18:18:53 +0000 newkey: Fix mismatch in array bounds in for adjust(). Reviewed by: emaste Reported by: GCC -Warray-parameter Differential Revision: https://reviews.freebsd.org/D36762 (cherry picked from commit 536f7d84cd061bd5667a4d93fed3f41772197c79) --- usr.bin/newkey/generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/newkey/generic.c b/usr.bin/newkey/generic.c index 368b051155a4..324cb5b604ad 100644 --- a/usr.bin/newkey/generic.c +++ b/usr.bin/newkey/generic.c @@ -52,7 +52,7 @@ __FBSDID("$FreeBSD$"); #include "extern.h" -static void adjust(char[], char *); +static void adjust(char[HEXKEYBYTES + 1], char *); static void getseed(char *, int, unsigned char *); /*