Closed pwnorbitals closed 3 months ago
Does CanFdSocket::read_raw_frame
need the same fix? https://github.com/socketcan-rs/socketcan-rs/blob/master/src/socket.rs#L617
Does
CanFdSocket::read_raw_frame
need the same fix? https://github.com/socketcan-rs/socketcan-rs/blob/master/src/socket.rs#L617
I think so. Fixed it too
Oof. Sorry, my bad. I was hacking on this update before I got an FD controller.
Reading a standard CAN frame through the
CanFdSocket
leads to a crash due to mismatching sizes in the frame construction’scopy_from_slice
. Thix fix has been tested and builds valid CAN frames.