Page MenuHomeFreeBSD

nd6: Fix the array size in union nd_opts
ClosedPublic

Authored by markj on Sep 4 2026, 2:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 1, 5:14 PM
Unknown Object (File)
Thu, Oct 1, 6:09 AM
Unknown Object (File)
Thu, Oct 1, 2:34 AM
Unknown Object (File)
Sat, Sep 26, 3:42 PM
Unknown Object (File)
Sat, Sep 26, 10:43 AM
Unknown Object (File)
Fri, Sep 25, 11:04 PM
Unknown Object (File)
Thu, Sep 24, 1:37 PM
Unknown Object (File)
Thu, Sep 24, 7:33 AM

Details

Summary

ND_OPT_ROUTE_INFO is 24, so an access of that index is technically out
of bounds, though note that the per-option struct has an entry for this
option. Fix the array size to appease -fsanitize=array-bounds.

Diff Detail

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