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:
Josuah Demangeon <josuah.demangeon@nordicsemi.no>
Loading
Please sign in to comment