This PR changes the computation of number of interfaces of the devices. Sometimes devices seem to report less interfaces than are really visible and check_interfaces just allocated memory for the reported number.
Execution of check_interfaces was unstable in that case, since some writes then occured beyond the borders of allocated memory.
This PR changes the computation of number of interfaces of the devices. Sometimes devices seem to report less interfaces than are really visible and
check_interfaces
just allocated memory for the reported number.Execution of
check_interfaces
was unstable in that case, since some writes then occured beyond the borders of allocated memory.This could possibly the reason for #4