Page MenuHomeFreeBSD

nd6: Fix the array size in union nd_opts
AcceptedPublic

Authored by markj on Fri, Sep 4, 2:59 PM.
Tags
None
Referenced Files
F170879090: D59392.id.diff
Mon, Sep 7, 6:10 AM
F170801473: D59392.id185824.diff
Sun, Sep 6, 5:37 PM
F170797861: D59392.diff
Sun, Sep 6, 4:55 PM
Unknown Object (File)
Sun, Sep 6, 8:01 AM
Unknown Object (File)
Sat, Sep 5, 9:39 PM

Details

Reviewers
glebius
pouria
Group Reviewers
network
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 76499
Build 73382: arc lint + arc unit