HomeFreeBSD

MFC r350630, r350657: static analysis fixes from Haiku

Description

MFC r350630, r350657: static analysis fixes from Haiku

r350630:
oce(4): potential out of bounds access before vector validation

r350657:
ral: rt2860: fix wcid2ni access/size issue

RT2860_WCID_MAX is supposed to describe the max STA index for wcid2ni, and
was instead being used as the size -- off-by-one.

rt2860_drain_stats_fifo was range-checking wcid only after accessing
out-of-bounds potentially.

Details

Provenance
kevansAuthored on
Parents
rS351142: MFC r350464: kern_shm_open: push O_CLOEXEC into caller control
Branches
Unknown
Tags
Unknown