Page MenuHomeFreeBSD

ipfilter: Fix mismatch in array bounds.
ClosedPublic

Authored by jhb on Nov 29 2022, 7:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 14, 3:27 AM
Unknown Object (File)
Mon, Jan 13, 2:52 PM
Unknown Object (File)
Nov 16 2024, 2:48 AM
Unknown Object (File)
Nov 16 2024, 1:53 AM
Unknown Object (File)
Nov 15 2024, 11:52 PM
Unknown Object (File)
Nov 15 2024, 7:32 PM
Unknown Object (File)
Oct 2 2024, 3:32 AM
Unknown Object (File)
Sep 27 2024, 3:55 PM

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.