Skip to content
Commit e8ecb6c3 authored by Josuah Demangeon's avatar Josuah Demangeon Committed by Benjamin Cabé
Browse files

usb: host: check that descriptor is in bound before dereferencing



In the while loop parsing descriptors, check that the descriptor is past
the end just before dereferencing it to check if it is seemingly valid.

Signed-off-by: default avatarJosuah Demangeon <josuah.demangeon@nordicsemi.no>
parent a6faa0ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment