HomeFreeBSD

bpf_getdltlist: Don't overrun 'lst'

Description

bpf_getdltlist: Don't overrun 'lst'

'lst' is allocated with 'n1' members. 'n' indexes 'lst'. So 'n == n1' is an
invalid 'lst' index. This is a follow-up to r296009.

Reported by: Coverity
CID: 1352743
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
cemAuthored on
Parents
rS298327: Partially revert the change on r298325 where there is an
Branches
Unknown
Tags
Unknown