From nobody Wed Dec 07 20:34:15 2022 X-Original-To: dev-commits-src-all@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 4NS8CD3ZRrz4jmPn; Wed, 7 Dec 2022 20:34:16 +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 4NS8CD1Tf8z3jJv; Wed, 7 Dec 2022 20:34:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670445256; 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=miVHGonx6L2ySO///ujFgl8EdzRyef69cV+WleZ4R0c=; b=fU0KhkAbFKvy0aysmGtDvZ3d2zRhjJl8c7LHV92LfsceSZdbqTp9mjvNfoz1qaXqnp9kSn HW+4Al1FeUwB7BNc1K9Z5vVyNJW0vCcRYjmZm/UjbLym2dY1KfpT9bBqQY+8IXYh2FQdtp tNszf6GzDx9CUBTJJNuZoWIznoWQNFn2fxHVWX+eISAE9hSzDRaY2oN/uo13wm1PMzA6tn sBlarmjhMDMlMx9UbZfRvGNmuWsqx7XvDKqKXcEaCk4eF2Uv1TsyiE268Xh9zELaVH/Q9o Mx2fLgA4ap5pfCH/FkgQ934yrFdZZlLJTNlaZcXaxAYorD2jFC5SyKhw13HMEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670445256; 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=miVHGonx6L2ySO///ujFgl8EdzRyef69cV+WleZ4R0c=; b=Q8THJgaUsPPCOHYifsF60Vxq/fWtKhNKXNSiefA82W672w3xgnjitMghojj6pRj0rdbtkg 3B9ogVut61KAXw0+zb118N1AUGLibdZ+2pJRJWic8f82YQraTuF8GD4JKajr0ej3M5WlGK r+VdbUCnF7b06zFPdJp/XUo9yZ4DovnO9XJIAa9S6zSNs8gqnG0GcsfGr69v2zWr5v8Au+ 2XM57yJS0bFGlwk3Cfmj6cFRnnk87DJZDfZimeQerG3kHVFb2xLN4s9rYwgTfBuaLeNKg0 Trvb11xtPWAE0y+M4tINjsYRA83i3dmU7wQDmMDRBErqgX/5ueJEgh3DxfBb2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670445256; a=rsa-sha256; cv=none; b=K19Lm+Ci+jnRGyVq+VaB141lie84chQYPOCvuPcbRqDm1ZjjT2gbDeQFXWDYvOeiLvyxh7 DrBYPfzXbcTvCpFMe4+SHhAgkZUmbo9uNUQuvjRZIeATd81w3S0+NbwNwyVh3k3BTIOvbe igTFRUpVZMN+HATEhhynza0p9lHS22jOtv+Nkf2XmwRB+bD1DcGT9usDgyvQO+JsjpmSYl dgJ1drS+bHCcKNmWM2uOqybE4/ZeM4ElaQVnQWr6cumDiiNGLy+HKQXMWUg3eRRGtNYpyz oUgUUN+QMCNQDCJHKwMyDNMdtn1dv7fJU+cf38Lkkh80Pnf0A5xmJdtGZo/Nog== 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 4NS8CC6YMXzTcZ; Wed, 7 Dec 2022 20:34:15 +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 2B7KYFxA088681; Wed, 7 Dec 2022 20:34:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B7KYFkb088680; Wed, 7 Dec 2022 20:34:15 GMT (envelope-from git) Date: Wed, 7 Dec 2022 20:34:15 GMT Message-Id: <202212072034.2B7KYFkb088680@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 415ccf51122e - main - ipfilter: Fix mismatch in array bounds. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 415ccf51122eab7b55978a1db00b484a06ffc84b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=415ccf51122eab7b55978a1db00b484a06ffc84b commit 415ccf51122eab7b55978a1db00b484a06ffc84b Author: John Baldwin AuthorDate: 2022-12-07 20:32:38 +0000 Commit: John Baldwin CommitDate: 2022-12-07 20:32:38 +0000 ipfilter: Fix mismatch in array bounds. Reported by: GCC -Warray-parameter Reviewed by: imp, cy, emaste Differential Revision: https://reviews.freebsd.org/D37548 --- 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;