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
F171091503: D59392.id185824.diff
Tue, Sep 8, 3:50 PM
F171032520: D59392.id185824.diff
Tue, Sep 8, 7:29 AM
F171021638: D59392.diff
Tue, Sep 8, 6:00 AM
F170988091: D59392.diff
Tue, Sep 8, 1:04 AM
Unknown Object (File)
Mon, Sep 7, 7:52 PM
Unknown Object (File)
Mon, Sep 7, 7:04 PM
Unknown Object (File)
Mon, Sep 7, 6:58 PM
Unknown Object (File)
Mon, Sep 7, 6:20 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