From nobody Wed May 03 00:30:00 2023 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 4Q9yWr2trXz48Nhm; Wed, 3 May 2023 00:30:00 +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 4Q9yWr2N6Zz3nPw; Wed, 3 May 2023 00:30:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073800; 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=xa1TnHUWs2vZLhCgtrZd0kMqLAxgktnVo9UmOaNo7t8=; b=u1aSGHUbdVON3HrPZvhvJj0UYSRcoN0NM5a5Pjl87MMWKEEtAKW3TcpukYnZiYzh8fWr9i VDKvupQ3nxakhDB+8hvumE1KHaj+fjW4IuRmh5wYsY9UjeQgYqiWfF3rUS96/dYrEnFCnR B1bdI21h+ZI7SDrKbzgo/NTBKkv8LuxtWtnFWa34P+IqQZAI0G3AenWTlfz4fIqDTOTCEl 5DTJEE9Y1xl4HU1b1xdxio0fJzusI7lRZsrqMBTsR9X1tq4kGKjySEK07I9ZyWlziZO6QK sQiAjrc11ce4DLWcL9knrNZRXCAqfId7b3GFoq3aZi63EJFyRkOL+taquTy0CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073800; 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=xa1TnHUWs2vZLhCgtrZd0kMqLAxgktnVo9UmOaNo7t8=; b=Di/jQuJTPVVE54iqXx0DVeGoB79T7OVwrQvyAncXQIeaI3nUBh5+RRnHeF4wtdTE6LzscQ A6E2fq+Yym6yaSCUuHwJvzCGYBQilAQRNiaZj3l19g2GCGsNH3mgr3TbRdLlhUub5NjMOI 702VBruk0TS5MXxRhNtY6F/pYgCYx4Jsf/RQtHrybnxAkZu0ObNbeJU41LV1u0oWuf/dAg Symnk3IlLM7zvabq34uCiEKn2OG+9vz/45F6IUVpauXu5MuINLcLIWajpjlySPNsybs9y0 mrjNISu+bdfv56dGum3f8ZonKNSSmNBaAVT5MsV5UTr9C/ZK1KdQoDSnh0Q6Sg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683073800; a=rsa-sha256; cv=none; b=txwOB51CG6s+VEYof69HFYo/0UJmHychnFs9ntk9A2qKHsE7Xquaeq9uv9+h9UNMrBumNl 2GxwCIm4ENr6Vx5yIxi9TDD9aXCzlz9masIWpJd3JVylTU8FhEITMcRijStWfPQL5aMrkG cwW3ddRqxzG4LV090ochaTBZj63mpQ8fV65U/S/QYv1lN91UEs3HHgQ3/hWv6WXHzV8Yjt r/5OMpX+BB9lhFICYWkK0aMuTQFYRoVXfU0kCrgArCWKQqysAGE2xYP1+os9JcUx5nFwj/ ds0zMlippleOCUkIWkfvifSPGi4B4872Xa7g8lwKOECseKDp26wE6W0k9WZjNw== 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 4Q9yWr1RLKz18LK; Wed, 3 May 2023 00:30:00 +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 3430U0lU072403; Wed, 3 May 2023 00:30:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3430U0pY072402; Wed, 3 May 2023 00:30:00 GMT (envelope-from git) Date: Wed, 3 May 2023 00:30:00 GMT Message-Id: <202305030030.3430U0pY072402@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: afc2b44c748d - stable/13 - ipfilter: Fix mismatch in array bounds. 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: afc2b44c748df289b1f030a85cea0ec54f13be76 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=afc2b44c748df289b1f030a85cea0ec54f13be76 commit afc2b44c748df289b1f030a85cea0ec54f13be76 Author: John Baldwin AuthorDate: 2022-12-07 20:32:38 +0000 Commit: John Baldwin CommitDate: 2023-05-03 00:23:27 +0000 ipfilter: Fix mismatch in array bounds. Reported by: GCC -Warray-parameter Reviewed by: imp, cy, emaste Differential Revision: https://reviews.freebsd.org/D37548 (cherry picked from commit 415ccf51122eab7b55978a1db00b484a06ffc84b) --- sys/netpfil/ipfilter/netinet/radix_ipf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netpfil/ipfilter/netinet/radix_ipf.c b/sys/netpfil/ipfilter/netinet/radix_ipf.c index 0ab4431c21ca..5db7f761ac06 100644 --- a/sys/netpfil/ipfilter/netinet/radix_ipf.c +++ b/sys/netpfil/ipfilter/netinet/radix_ipf.c @@ -318,7 +318,7 @@ ipf_rx_attach_mask(ipf_rdx_node_t *node, ipf_rdx_mask_t *mask) /* by the netmask. */ /* ------------------------------------------------------------------------ */ static ipf_rdx_node_t * -ipf_rx_insert(ipf_rdx_head_t *head, ipf_rdx_node_t *nodes, int *dup) +ipf_rx_insert(ipf_rdx_head_t *head, ipf_rdx_node_t nodes[2], int *dup) { ipf_rdx_mask_t **pmask; ipf_rdx_node_t *node;