Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 May 2023 00:30:00 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: afc2b44c748d - stable/13 - ipfilter: Fix mismatch in array bounds.
Message-ID:  <202305030030.3430U0pY072402@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=afc2b44c748df289b1f030a85cea0ec54f13be76

commit afc2b44c748df289b1f030a85cea0ec54f13be76
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-12-07 20:32:38 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305030030.3430U0pY072402>