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)
Mar 10 2024, 10:47 PM
Unknown Object (File)
Mar 10 2024, 10:31 PM
Unknown Object (File)
Mar 10 2024, 10:27 PM
Unknown Object (File)
Mar 10 2024, 10:15 PM
Unknown Object (File)
Jan 10 2024, 8:36 AM
Unknown Object (File)
Jan 3 2024, 3:09 AM
Unknown Object (File)
Dec 23 2023, 12:14 AM
Unknown Object (File)
Nov 4 2023, 6:53 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.