3 ms·
It looks to me like this code will read off the end of short packets; the actual library interface (dumpulse_process_packet) probably needs to take a length, an
by tptacek 9y ago
It looks to me like this code will read off the end of short packets; the actual library interface (dumpulse_process_packet) probably needs to take a length, and sanity-check it.
I only looked for a moment and might be wrong.
- PinguTS 9y agoYes, there seems no length checking at all. All is assumed. Even on CAN you can't expect to receive only 8 bytes, because with a CAN FD controller it can be now 64 bytes.