fix length boundary checks for incoming packets in iwm/iwx
authorstsp <stsp@openbsd.org>
Tue, 4 Jan 2022 15:55:28 +0000 (15:55 +0000)
committerstsp <stsp@openbsd.org>
Tue, 4 Jan 2022 15:55:28 +0000 (15:55 +0000)
commit0df2aed8ec8403ff1eb2a82ffe4ade4d74598690
treeba5bdf7f0b263143d8310655042334fb7c1616df
parenta048bec5bc77344b61951dc1da6a1106424f61d1
fix length boundary checks for incoming packets in iwm/iwx

The minimum length and the maximum length required were both too low,
due to an error in accounting for the 4-byte packet length+flags header.

Patch by Christian Ehrhardt
sys/dev/pci/if_iwm.c
sys/dev/pci/if_iwx.c