Page MenuHomeFreeBSD

ipfilter: Fix mismatch in array bounds.
ClosedPublic

Authored by jhb on Nov 29 2022, 7:57 PM.
Tags
None
Referenced Files
F162916544: D37548.id113635.diff
Sat, Jul 18, 6:58 AM
F162908946: D37548.id113923.diff
Sat, Jul 18, 5:13 AM
Unknown Object (File)
Sat, Jul 4, 6:47 PM
Unknown Object (File)
Sat, Jul 4, 10:39 AM
Unknown Object (File)
Thu, Jul 2, 8:29 PM
Unknown Object (File)
Thu, Jun 25, 12:06 AM
Unknown Object (File)
Jun 17 2026, 10:20 AM
Unknown Object (File)
Jun 16 2026, 10:42 AM

Details

Summary

Reported by: GCC -Warray-parameter

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp added inline comments.
sys/netpfil/ipfilter/netinet/radix_ipf.c
321

Is '2' the right way to spell [2] here? :)

This revision is now accepted and ready to land.Nov 29 2022, 8:22 PM
sys/netpfil/ipfilter/netinet/radix_ipf.c
33

It matches the spelling here, so yes. :)

sys/netpfil/ipfilter/netinet/radix_ipf.c
363

This function is also full of explicit nodes[0] and nodes[1] references with magic numbers.

sys/netpfil/ipfilter/netinet/radix_ipf.c
363

Sounds good to go then. Thanks for the reason.

cy added inline comments.
sys/netpfil/ipfilter/netinet/radix_ipf.c
363

It is. Input and output.

BTW I am in the process of rewriting this source file to support IPv6.

This revision was automatically updated to reflect the committed changes.