Page MenuHomeFreeBSD

ipfilter: Fix mismatch in array bounds.
ClosedPublic

Authored by jhb on Nov 29 2022, 7:57 PM.
Tags
None
Referenced Files
F161549468: D37548.diff
Sat, Jul 4, 6:47 PM
F161511884: D37548.diff
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)
Wed, Jun 17, 10:20 AM
Unknown Object (File)
Tue, Jun 16, 10:42 AM
Unknown Object (File)
Apr 21 2026, 6:32 PM
Unknown Object (File)
Apr 10 2026, 12:25 AM

Details

Summary

Reported by: GCC -Warray-parameter

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 48549
Build 45435: arc lint + arc unit

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.