HomeFreeBSD

ral: rt2860: fix wcid2ni access/size issue

Description

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.

Submitted by: Augustin Cavalier <waddlesplash@gmail.com> (basically)
Obtained from: Haiku (58d16d9fe2d5a209cf22823359a8407d138e1a87)
Differential Revision: 3 days

Details

Provenance
kevansAuthored on Aug 6 2019, 8:21 PM
Parents
rG9cb069b552b2: loader.efi: efilib.h and libefi.c were left out of 350654
Branches
Unknown
Tags
Unknown

Event Timeline