memset() is used incorrectly causing corruption and/or not nulling the struct(s). For now, it appears an annoyance for debugging though definitely errant code. I recommend fixing.
Setup
all os, platforms, compilers
xlink that is used in depthai-core v2.21.2 b7c3aca2ba8b9d598be886a8076a875b50f5184f and current master
Repro
found in code review during isolation of device closing errant behavior
memset()
is used incorrectly causing corruption and/or not nulling the struct(s). For now, it appears an annoyance for debugging though definitely errant code. I recommend fixing.Setup
Repro
found in code review during isolation of device closing errant behavior
https://github.com/luxonis/XLink/blob/d209b7eeb8ac68435df5097e57e1dfd8ea1d0e83/src/pc/PlatformDeviceSearch.c#L52
should be